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. 

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

Reply via email to