Bug #67805 [Opn->Csd]: SplFileObject setMaxLineLength

From: Date: Mon, 08 Jun 2015 09:52:50 +0000
Subject: Bug #67805 [Opn->Csd]: SplFileObject setMaxLineLength
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193189@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67805&edit=1 ID: 67805 Updated by: ab@php.net Reported by: tim_siebels_aurich at yahoo dot de Summary: SplFileObject setMaxLineLength -Status: Open +Status: Closed Type: Bug Package: SPL related Operating System: any PHP Version: Irrelevant Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2014-08-07 19:38:48] 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: -------------- <? ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67805&edit=1

« previous php.bugs (#193189) next »