Req #55807 [Asn]: Wrong value for splFileObject::SKIP_EMPTY
| From: | bjori@php.net | Date: | Fri, 30 Sep 2011 14:17:20 +0000 |
| Subject: | Req #55807 [Asn]: Wrong value for splFileObject::SKIP_EMPTY | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163995@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55807&edit=1
ID: 55807
Updated by: bjori@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] bjori@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