Re: Segfault in CVS : Namespace related.

From: Date: Tue, 20 May 2003 06:54:54 +0000
Subject: Re: Segfault in CVS : Namespace related.
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-1764@lists.php.net to get a copy of this message
At 08:20 20.05.2003, l0t3k wrote:
the problem is that the ns->builtin_functions table is not properly
NO, the problem is on your side. Look at the following code snippet from SPL:
        void spl_register_namespace(zend_namespace ** ppns, char * namespace_name TSRMLS_DC)
        {
                zend_namespace ns;
                INIT_NAMESPACE(ns, namespace_name);
                *ppns = zend_register_internal_namespace(&ns TSRMLS_CC);
        }
As you can see the macro INIT_NAMESPACE is needed. regards marcus

« previous php.internals (#1764) next »