cvs: ZendEngine2 / zend_builtin_functions.c

From: Date: Tue, 01 Apr 2003 09:43:30 +0000
Subject: cvs: ZendEngine2 / zend_builtin_functions.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1090@lists.php.net to get a copy of this message
stas Tue Apr 1 04:43:30 2003 EDT Modified files: /ZendEngine2 zend_builtin_functions.c Log: improve namespace name hanfling Index: ZendEngine2/zend_builtin_functions.c diff -u ZendEngine2/zend_builtin_functions.c:1.178 ZendEngine2/zend_builtin_functions.c:1.179 --- ZendEngine2/zend_builtin_functions.c:1.178 Tue Apr 1 04:27:05 2003 +++ ZendEngine2/zend_builtin_functions.c Tue Apr 1 04:43:30 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_builtin_functions.c,v 1.178 2003/04/01 09:27:05 stas Exp $ */ +/* $Id: zend_builtin_functions.c,v 1.179 2003/04/01 09:43:30 stas Exp $ */ #include "zend.h" #include "zend_API.h" @@ -1079,6 +1079,7 @@ ZEND_WRONG_PARAM_COUNT(); } else { global_ns = 0; + convert_to_string_ex(namespace_name); } } @@ -1087,7 +1088,6 @@ } if(!global_ns) { - convert_to_string_ex(namespace_name); zend_str_tolower(Z_STRVAL_PP(namespace_name), Z_STRLEN_PP(namespace_name)); if(zend_hash_find(&EG(global_namespace_ptr)->class_table, Z_STRVAL_PP(namespace_name), Z_STRLEN_PP(namespace_name)+1, (void **)&pns) == FAILURE) { zend_error(E_WARNING, "Namespace '%s' is not defined!", Z_STRVAL_PP(namespace_name));

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