replaced zend_error_noreturn calls to zend_error as zend_error_noreturn is not exported (closes #554)

This commit is contained in:
Fabien Potencier
2011-12-22 14:17:52 +01:00
parent fc778405ff
commit c95fe91fc8
+2 -2
View File
@@ -149,7 +149,7 @@ zval *TWIG_GET_ARRAYOBJECT_ELEMENT(zval *object, zval *offset TSRMLS_DC)
if (!retval) {
if (!EG(exception)) {
zend_error_noreturn(E_ERROR, "Undefined offset for object of type %s used as array", ce->name);
zend_error(E_ERROR, "Undefined offset for object of type %s used as array", ce->name);
}
return NULL;
}
@@ -172,7 +172,7 @@ int TWIG_ISSET_ARRAYOBJECT_ELEMENT(zval *object, zval *offset TSRMLS_DC)
if (!retval) {
if (!EG(exception)) {
zend_error_noreturn(E_ERROR, "Undefined offset for object of type %s used as array", ce->name);
zend_error(E_ERROR, "Undefined offset for object of type %s used as array", ce->name);
}
return 0;
}