php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67805 SplFileObject setMaxLineLength
Submitted: 2014-08-07 19:38 UTC Modified: -
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: tim_siebels_aurich at yahoo dot de Assigned:
Status: Closed Package: SPL related
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
 [2014-08-07 19:38 UTC] tim_siebels_aurich at yahoo dot de
Description:
------------
After setting SplFileObject::setMaxLineLen($length) every method will output lines up to length of $length-1 instead of $length.


Test script:
---------------
<?php
$fileobject = new SplFileObject(__FILE__);
$fileobject->setMaxLineLen(3);
echo $fileobject->getCurrentLine();

Expected result:
----------------
<?p

Actual result:
--------------
<?

Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-06-08 09:52 UTC] ab@php.net
Automatic comment on behalf of contact@willianveiga.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8e747f6833190d2fd189b037af6d7636abd4d7f4
Log: Fix bug #67805 - SplFileObject setMaxLineLength.
 [2015-06-08 09:52 UTC] ab@php.net
-Status: Open +Status: Closed
 [2015-06-08 10:13 UTC] ab@php.net
Automatic comment on behalf of contact@willianveiga.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b470d9a0d611bcaf91ab039e807891eda655f644
Log: Fix bug #67805 - SplFileObject setMaxLineLength.
 [2016-07-20 11:38 UTC] davey@php.net
Automatic comment on behalf of contact@willianveiga.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8e747f6833190d2fd189b037af6d7636abd4d7f4
Log: Fix bug #67805 - SplFileObject setMaxLineLength.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC