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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
29 - 20 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

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: Thu Apr 25 17:01:29 2024 UTC