cvs: ZendEngine2 / zend_API.c

From: Date: Sun, 03 Aug 2003 21:04:39 +0000
Subject: cvs: ZendEngine2 / zend_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1591@lists.php.net to get a copy of this message
zeev Sun Aug 3 17:04:39 2003 EDT Modified files: /ZendEngine2 zend_API.c Log: Default to public Index: ZendEngine2/zend_API.c diff -u ZendEngine2/zend_API.c:1.193 ZendEngine2/zend_API.c:1.194 --- ZendEngine2/zend_API.c:1.193 Sun Aug 3 16:49:27 2003 +++ ZendEngine2/zend_API.c Sun Aug 3 17:04:39 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_API.c,v 1.193 2003/08/03 20:49:27 helly Exp $ */ +/* $Id: zend_API.c,v 1.194 2003/08/03 21:04:39 zeev Exp $ */ #include "zend.h" #include "zend_execute.h" @@ -1170,7 +1170,11 @@ internal_function->num_args = 0; internal_function->pass_rest_by_reference = 0; } - internal_function->fn_flags = ptr->flags; + if (ptr->flags) { + internal_function->fn_flags = ptr->flags; + } else { + internal_function->fn_flags = ZEND_ACC_PUBLIC; + } if (!internal_function->handler) { zend_error(error_type, "Null function defined as active function"); zend_unregister_functions(functions, count, target_function_table TSRMLS_CC);

« previous php.zend-engine.cvs (#1591) next »