Private data requiring custom object creation error

From: Date: Sat, 04 Mar 2006 22:03:42 +0000
Subject: Private data requiring custom object creation error
Groups: php.internals 
Request: Send a blank email to internals+get-22110@lists.php.net to get a copy of this message
I'm working through George Schlossnagle's Advanced PHP Programming, (which I'm happy to plug. Excellent). Having successfully used C++ to generate extensions (per Jay Smith tutorial) I am now checking out the facility to store custom objects - packaged private data alongside the native zend object, per George S. example. An example based closely on the example noted in the book, compiles fine, but generates the following error and backtrace: Program received signal SIGSEGV, Segmentation fault. 0x0822d12b in zend_std_get_constructor (object=0x8459a48, tsrm_ls=0x835e018) at /src/php-5.1.1/Zend/zend_object_handlers.c:884 884 zend_function *constructor = zobj->ce->constructor; If constructor was simply null, would not be an issue. Suggests either the object or object ce are inappropriate. Any thoughts? Cheers, Andrew.

« previous php.internals (#22110) next »