Re: how to return an array of c++ objects
| From: | Michael Maclean | Date: | Wed, 19 May 2010 20:46:15 +0000 |
| Subject: | Re: how to return an array of c++ objects | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-7232@lists.php.net to get a copy of this message | ||
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