From: Fabien Potencier Date: Thu, 22 Dec 2011 13:17:52 +0000 (+0100) Subject: replaced zend_error_noreturn calls to zend_error as zend_error_noreturn is not export... X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=c95fe91fc8cb32b5b307b03339f624938113008e;p=web%2Fkonrad%2Ftwig.git replaced zend_error_noreturn calls to zend_error as zend_error_noreturn is not exported (closes #554) --- diff --git a/ext/twig/twig.c b/ext/twig/twig.c index 267c013..e4e34c1 100644 --- a/ext/twig/twig.c +++ b/ext/twig/twig.c @@ -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; }