Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22110 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43725 invoked by uid 1010); 4 Mar 2006 22:03:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 43710 invoked from network); 4 Mar 2006 22:03:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Mar 2006 22:03:44 -0000 X-Host-Fingerprint: 194.73.73.227 c2bthomr11.btconnect.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from ([194.73.73.227:6138] helo=c2bthomr11.btconnect.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 6C/D7-35203-FBE0A044 for ; Sat, 04 Mar 2006 17:03:44 -0500 Received: from va517slx ([81.134.174.53]) by c2bthomr11.btconnect.com (MOS 3.7.2-GA) with ESMTP id ACE08377; Sat, 4 Mar 2006 22:03:35 GMT To: internals@lists.php.net Date: Sat, 4 Mar 2006 22:03:42 +0000 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200603042203.42738.an.dromeda@btconnect.com> Subject: Private data requiring custom object creation error From: an.dromeda@btconnect.com ("Andrew Mather (BT Std)") 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.