cvs: spl / spl_functions.c

From: Date: Sat, 24 May 2003 15:51:24 +0000
Subject: cvs: spl / spl_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-21244@lists.php.net to get a copy of this message
helly Sat May 24 11:51:24 2003 EDT Modified files: /spl spl_functions.c Log: fix error resulting from strlen() -> sizeof() change in engine macros Index: spl/spl_functions.c diff -u spl/spl_functions.c:1.2 spl/spl_functions.c:1.3 --- spl/spl_functions.c:1.2 Sat May 24 09:47:49 2003 +++ spl/spl_functions.c Sat May 24 11:51:24 2003 @@ -40,6 +40,7 @@ zend_namespace ns; INIT_NAMESPACE(ns, namespace_name); + ns.name_length = strlen(namespace_name); *ppns = zend_register_internal_namespace(&ns TSRMLS_CC); } /* }}} */ @@ -50,6 +51,7 @@ zend_class_entry ce; INIT_CLASS_ENTRY(ce, class_name, NULL); + ce.name_length = strlen(class_name); *ppce = zend_register_internal_ns_class(&ce, NULL, namespace_entry, NULL TSRMLS_CC); /* entries changed by initialize */ @@ -64,6 +66,7 @@ memset(&ce, 0, sizeof(zend_class_entry)); INIT_CLASS_ENTRY(ce, class_name, NULL); + ce.name_length = strlen(class_name); *ppce = zend_register_internal_ns_class(&ce, NULL, namespace_entry, NULL TSRMLS_CC); /* entries changed by initialize */

« previous php.cvs (#21244) next »