Re: Fwd: [PECL-DEV] problems compiling new PECL module

From: Date: Sun, 09 Jan 2011 10:34:07 +0000
Subject: Re: Fwd: [PECL-DEV] problems compiling new PECL module
References: 1 2 3 4 5  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-7932@lists.php.net to get a copy of this message
On 01/09/2011 06:47 AM, Tim Gustafson wrote: >> That seems to work, and calling SetSourceModule returns TRUE, but then >> when I call GetValue, PHP core dumps. I'm guessing that the value >> being returned by zend_object_store_get_object is invalid. Am I >> calling zend_object_store_get_object correctly? > > I think I've gotten past this now. SetSourceModule appears to be > working properly. > > However, the GetSourceModule function is not working because I don't > understand how to embed a C++ object into a zval. That's why I recommend you too look into other modules' sources. PECL/sphinx, for example, stores C struct in PHP object. -- Wbr, Antony Dovgal --- http://pinba.org - realtime statistics for PHP

« previous php.pecl.dev (#7932) next »