Bug #67805 [NEW]: SplFileObject setMaxLineLength

From: Date: Thu, 07 Aug 2014 19:38:49 +0000
Subject: Bug #67805 [NEW]: SplFileObject setMaxLineLength
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187016@lists.php.net to get a copy of this message
From: tim_siebels_aurich at yahoo dot de Operating system: any PHP version: Irrelevant Package: SPL related Bug Type: Bug Bug description:SplFileObject setMaxLineLength 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 bug report at https://bugs.php.net/bug.php?id=67805&edit=1 --

« previous php.bugs (#187016) next »