cvs: ZendEngine2 / zend_API.c

From: Date: Wed, 12 Mar 2003 21:43:42 +0000
Subject: cvs: ZendEngine2 / zend_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1041@lists.php.net to get a copy of this message
andrei Wed Mar 12 16:43:42 2003 EDT Modified files: /ZendEngine2 zend_API.c Log: Initialize the namespace when registering functions. # Correct me if I'm wrong.. Index: ZendEngine2/zend_API.c diff -u ZendEngine2/zend_API.c:1.156 ZendEngine2/zend_API.c:1.157 --- ZendEngine2/zend_API.c:1.156 Sun Mar 2 20:56:14 2003 +++ ZendEngine2/zend_API.c Wed Mar 12 16:43:42 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_API.c,v 1.156 2003/03/03 01:56:14 phanto Exp $ */ +/* $Id: zend_API.c,v 1.157 2003/03/12 21:43:42 andrei Exp $ */ #include "zend.h" #include "zend_execute.h" @@ -1164,6 +1164,7 @@ internal_function->function_name = ptr->fname; internal_function->scope = scope; internal_function->fn_flags = ZEND_ACC_PUBLIC; + internal_function->ns = EG(active_namespace); 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 (#1041) next »