zend_API.c patch

From: Date: Thu, 21 Nov 2002 22:43:19 +0000
Subject: zend_API.c patch
Groups: php.dev 
Request: Send a blank email to php-dev+get-91442@lists.php.net to get a copy of this message
In zend_API.c we do not initialize is_static for the registered function. Therefore sometime they are static and sometimes not. We must make those non static or provide the information in the call. Non static is required for things like ext/domxml. marcus cvs -z3 -q diff zend_API.c (in directory S:\php4-ZE2\Zend) Index: zend_API.c =================================================================== RCS file: /repository/ZendEngine2/zend_API.c,v retrieving revision 1.134 diff -u -r1.134 zend_API.c
--- zend_API.c  9 Oct 2002 14:21:40 -0000       1.134
+++ zend_API.c 21 Nov 2002 22:37:28 -0000 @@ -1055,6 +1055,7 @@
                internal_function->arg_types = ptr->func_arg_types;
                internal_function->function_name = ptr->fname;
                internal_function->scope = NULL;
+               internal_function->is_static = 0;
                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.dev (#91442) next »