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
