Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7301 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96997 invoked by uid 1010); 23 Jan 2004 20:48:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 96972 invoked from network); 23 Jan 2004 20:48:43 -0000 Received: from unknown (HELO miranda.org) (209.58.150.153) by pb1.pair.com with SMTP; 23 Jan 2004 20:48:43 -0000 Received: (qmail 2421 invoked by uid 546); 23 Jan 2004 20:48:42 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 23 Jan 2004 20:48:42 -0000 Date: Fri, 23 Jan 2004 15:48:42 -0500 (EST) X-X-Sender: adam@miranda.org To: internals@lists.php.net Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: SPL Examples Broken? From: adam@trachtenberg.com (Adam Maccabee Trachtenberg) I'm trying to run the SPL examples and running into some problems. Some of these I was able to work around, but I eventually end up generating a 192 Mb core dump with a 1000+ line gdb backtrace. It's actually quite an impressive crash. :) First of all, I'm running under PHP 5 Beta 3 since the current CVS no longer allows an Interface to implement an Interface. (Maybe this is the biggest problem? I thought I rememebered Andi claim that Zeev will be fixing this RSN?) Second, there is a small typo in recursiveiteratoriterator.inc. Line 67 has one extra closing ')'. I fixed this. Next, I get an error that recursivedirectoryiterator.inc cannot be found. Based on some guess work, I created this file and placed the following PHP code inside: class RecursiveDirectoryIterator extends DirectoryTreeIterator { } I'm not sure if this is correct, but it allowed me to run the following without any warnings: ~/Documents/php/php-5.0.0b3/sapi/cli/php -d include_path=. -d auto_prepend_file=autoload.inc tree.php ../../dba Unfortunately, this gives a big core dump. :( If anyone has some suggestions I'm happy to try them. In the meantime I will start with a more basic example and see what pushes PHP over the edge. Maybe that will give a more reasonable backtrace. (Marcus: I will send you my current backtrace if you think it will be helpful.) -adam -- adam@trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today!