return SUCCESS;
}
+ /* 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;
+ }
+
if (EG(in_autoload) == NULL) {
ALLOC_HASHTABLE(EG(in_autoload));
zend_hash_init(EG(in_autoload), 0, NULL, NULL, 0);
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);