#47172 [NEW]: new interface suggest

From: Date: Tue, 20 Jan 2009 18:34:50 +0000
Subject: #47172 [NEW]: new interface suggest
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-133077@lists.php.net to get a copy of this message
From: info at netmosfera dot it Operating system: irrelevant PHP version: 5.3.0alpha3 PHP Bug Type: SPL related Bug description: new interface suggest Description: ------------ hello please read the code! hth Reproduce code: --------------- interface FirstLast //? lol! { public function (Boolean) isFirst(); public function (Boolean) isLast(); } $x= new ArrayObject(Array(1,2,3,4,5,6,7)); // implements this.. foreach($x as $item) { if($x->isFirst()) echo "<ul>"; echo "<li>" . $item . "</li>"; if($x->isLast()) echo "</ul>"; } -- Edit bug report at http://bugs.php.net/?id=47172&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47172&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47172&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47172&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47172&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47172&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47172&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47172&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47172&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47172&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47172&r=support Expected behavior: http://bugs.php.net/fix.php?id=47172&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47172&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47172&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47172&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47172&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47172&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47172&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47172&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47172&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47172&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47172&r=mysqlcfg

« previous php.bugs (#133077) next »