Edit report at https://bugs.php.net/bug.php?id=55807&edit=1
ID: 55807 Updated by: bj...@php.net Reported by: jgotti at modedemploi dot fr Summary: Wrong value for splFileObject::SKIP_EMPTY Status: Assigned Type: Feature/Change Request Package: SPL related Operating System: linux PHP Version: 5.3.8 Assigned To: colder Block user comment: N Private report: N New Comment: Heh. Excellent point :) Previous Comments: ------------------------------------------------------------------------ [2011-09-30 14:17:02] bj...@php.net Automatic comment from SVN on behalf of bjori Revision: http://svn.php.net/viewvc/?view=revision&revision=317501 Log: Fixed bug #55807 (Wrong value for splFileObject::SKIP_EMPTY) ------------------------------------------------------------------------ [2011-09-28 15:21:05] jgotti at modedemploi dot fr 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 this bug report at https://bugs.php.net/bug.php?id=55807&edit=1