note 64930 rejected from ref.spl by bjori

From: Date: Sun, 23 Apr 2006 09:07:30 +0000
Subject: note 64930 rejected from ref.spl by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109134@lists.php.net to get a copy of this message
Note Submitter: dominics at gmail dot com ---- Look out! The mode constants for RecursiveIteratorIterator that you can see in some of the examples below (RIT_SELF_FIRST, RIT_LEAVES_ONLY, RIT_CHILD_FIRST) are no longer around in the latest versions of PHP. Instead, you can use the class constants: - RecursiveIteratorIterator::SELF_FIRST, - RecursiveIteratorIterator::CHILD_FIRST, and - RecursiveIteratorIterator::LEAVES ONLY If you use the old constants you'll get an InvalidArgumentException (which is to be expected), but the message - 'An instance of RecursiveIterator or IteratorAggregate creating it is required' - might mislead you as to what the problem is!

« previous php.notes (#109134) next »