Re: [PECL-DEV] how to return an array of c++ objects

[email protected] (Michael Maclean) Wed, 19 May 2010 21:46:15 +0100
Newsgroups php.pecl.dev
Message-ID <[email protected]>
John Hayes wrote:

> (As you can see, the two-node long map is being traversed, the function
> exits, then the segfault.)

Have you tried getting a core dump and using gdb to get a backtrace?

In case you're not aware, try:

ulimit -c unlimited
php -r '$g = new Graph(); $g->getNodes();'
gdb /path/to/php/binary core

If you know that, ignore me :) It requires you to have build PHP with 
--enable-debug.

-- 
Cheers,
Michael