summaryrefslogtreecommitdiff
path: root/Zend/zend.c
diff options
context:
space:
mode:
authorStanley Sufficool <ssufficool@php.net>2013-10-05 09:57:13 -0700
committerStanley Sufficool <ssufficool@php.net>2013-10-05 09:57:13 -0700
commitd74b9cfee528936a50af7772c3dc56843a068c7f (patch)
tree42c00e21011c95d6f493805ea870f419b42e7880 /Zend/zend.c
parent690bbe170d9ed4597629e4e986575fbe0a2cb796 (diff)
parent3aaee86ee33af276d2e879f5a645cc6dc850de22 (diff)
downloadphp-git-d74b9cfee528936a50af7772c3dc56843a068c7f.tar.gz
Merge branch 'PHP-5.4' of https://git.php.net/push/php-src into PHP-5.4
* 'PHP-5.4' of https://git.php.net/push/php-src: - Fixed bug #65818 (Segfault with built-in webserver and chunked transfer encoding) - BFN Fix bug #65667: ftp_nb_continue produces segfault fix bug #64146 (serialize incorrectly saving objects when they are cloned) such a weird hack probably helps in finding regressions in the future Fixed bug #64230 (XMLReader does not suppress errors) typo: really fix bug #51936 Crash with clone xmlreader fix bug #59613 (Crash with clone XMLReader) fix bug #65808 the socket_connect() won't work with IPv6 address 5.4.22-dev now fix bug #62396 'make test' crashes starting with 5.3.14 (missing gzencode()) Fixed bug #61548 fix test fix memleak on resetting rebind_proc Fix bug #65322: compile time errors won't trigger auto loading 5.4.20 release date Add information about which INI file is which inside respective files - Updated to version 2013.6 (2013f)
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index 162922866b..0602c45042 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -1183,7 +1183,7 @@ ZEND_API void zend_error(int type, const char *format, ...) /* {{{ */
* such scripts recursivly, but some CG() variables may be
* inconsistent. */
- in_compilation = zend_is_compiling(TSRMLS_C);
+ in_compilation = CG(in_compilation);
if (in_compilation) {
saved_class_entry = CG(active_class_entry);
CG(active_class_entry) = NULL;
@@ -1195,6 +1195,7 @@ ZEND_API void zend_error(int type, const char *format, ...) /* {{{ */
SAVE_STACK(declare_stack);
SAVE_STACK(list_stack);
SAVE_STACK(context_stack);
+ CG(in_compilation) = 0;
}
if (call_user_function_ex(CG(function_table), NULL, orig_user_error_handler, &retval, 5, params, 1, NULL TSRMLS_CC) == SUCCESS) {
@@ -1219,6 +1220,7 @@ ZEND_API void zend_error(int type, const char *format, ...) /* {{{ */
RESTORE_STACK(declare_stack);
RESTORE_STACK(list_stack);
RESTORE_STACK(context_stack);
+ CG(in_compilation) = 1;
}
if (!EG(user_error_handler)) {