From: Andi Gutmans Date: Thu, 25 Mar 2004 11:30:02 +0000 (+0000) Subject: /* The compiler is not-reentrant. Make sure we __autoload() only during run-time X-Git-Tag: php-5.0.0RC2RC1~235 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6d52f6f2e5b3796076f5bb4a092ca86ebcad05e;p=php /* The compiler is not-reentrant. Make sure we __autoload() only during run-time * (doesn't impact fuctionality of __autoload() */ --- diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 42bfb46cde..6ecfe90b78 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -903,6 +903,14 @@ ZEND_API int zend_lookup_class(char *name, int name_length, zend_class_entry *** return FAILURE; } + /* The compiler is not-reentrant. Make sure we __autoload() only during run-time + * (doesn't impact fuctionality of __autoload() + */ + if (zend_is_compiling(TSRMLS_C)) { + free_alloca(lc_name); + return FAILURE; + } + ZVAL_STRINGL(&autoload_function, "__autoload", sizeof("__autoload")-1, 0); INIT_PZVAL(class_name_ptr);