Re: [PHP-DEV] zend_API.c patch

2002-11-22 Thread Derick Rethans
On Thu, 21 Nov 2002, Marcus Börger wrote:

 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.

Committed.

Derick

-- 

---
 Derick Rethans   http://derickrethans.nl/ 
 JDI Media Solutions
--[ if you hold a unix shell to your ear, do you hear the c? ]-


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] zend_API.c patch

2002-11-21 Thread Marcus Börger
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 -   1.134
+++ zend_API.c  21 Nov 2002 22:37:28 -
@@ -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);