Req #55807 [NEW]: Wrong value for splFileObject::SKIP_EMPTY

From: Date: Wed, 28 Sep 2011 15:21:05 +0000
Subject: Req #55807 [NEW]: Wrong value for splFileObject::SKIP_EMPTY
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-163955@lists.php.net to get a copy of this message
From: Operating system: linux PHP version: 5.3.8 Package: SPL related Bug Type: Feature/Change Request Bug description:Wrong value for splFileObject::SKIP_EMPTY Description: ------------ isn't this weird that splFileObject::SKIP_EMPTY=6. I think this should be 4 and not 6 as setting splFileObject flag to SKIP_EMPTY will report flag splFileObject::READ_AHEAD to be set even if not intended to be set Test script: --------------- $fileObj = new SplFileObject('/tmp/test.txt'); $fileObj->setFlags(SplFileObject::SKIP_EMPTY); if( $fileObj->getFlags() & SplFileObject::READ_AHEAD ){//<-- should not pass here we didn't set READ_AHEAD flag echo "READ_AHEAD on"; } -- Edit bug report at https://bugs.php.net/bug.php?id=55807&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55807&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55807&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55807&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55807&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55807&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55807&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55807&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55807&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55807&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55807&r=support Expected behavior: https://bugs.php.net/fix.php?id=55807&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55807&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55807&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55807&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55807&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55807&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55807&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55807&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55807&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55807&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55807&r=mysqlcfg

« previous php.bugs (#163955) next »