diff options
author | Marcus Boerger <helly@php.net> | 2003-05-24 15:51:24 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-05-24 15:51:24 +0000 |
commit | 135415ca8f207b98a1d05c76af7a04a75aa0cb90 (patch) | |
tree | 2e26c64fc4e1bce3ad04144e488ca48e98ecf845 | |
parent | 29a5535394da9dc359c72d870ba62e74196fe2e4 (diff) | |
download | php-git-135415ca8f207b98a1d05c76af7a04a75aa0cb90.tar.gz |
fix error resulting from strlen() -> sizeof() change in engine macros
-rwxr-xr-x | ext/spl/spl_functions.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/spl/spl_functions.c b/ext/spl/spl_functions.c index e6b2573b9d..70da239906 100755 --- a/ext/spl/spl_functions.c +++ b/ext/spl/spl_functions.c @@ -40,6 +40,7 @@ void spl_register_namespace(zend_namespace ** ppns, char * namespace_name TSRMLS 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 @@ void spl_register_interface(zend_class_entry ** ppce, zend_namespace * namespace 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 @@ void spl_register_std_class(zend_class_entry ** ppce, zend_namespace * namespace 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 */ |