mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-21 07:37:43 +00:00
replaced zend_error_noreturn calls to zend_error as zend_error_noreturn is not exported (closes #554)
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user