note 64930 added to ref.spl

From: Date: Sun, 23 Apr 2006 05:48:21 +0000
Subject: note 64930 added to ref.spl
Groups: php.notes 
Request: Send a blank email to php-notes+get-109117@lists.php.net to get a copy of this message
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! ---- Server IP: 210.55.230.123 (proxied: 202.89.36.242 1.0 proxy5.akl1.maxnet.net.nz:8080 (Squid/2.4.STABLE2)) Probable Submitter: 202.154.147.198 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/ref.spl.php Edit -- http://master.php.net/note/edit/64930 Del: integrated -- http://master.php.net/note/delete/64930/integrated Del: useless -- http://master.php.net/note/delete/64930/useless Del: bad code -- http://master.php.net/note/delete/64930/bad+code Del: spam -- http://master.php.net/note/delete/64930/spam Del: non-english -- http://master.php.net/note/delete/64930/non-english Del: in docs -- http://master.php.net/note/delete/64930/in+docs Del: other reasons-- http://master.php.net/note/delete/64930 Reject -- http://master.php.net/note/reject/64930 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#109117) next »