1--TEST-- 2Bug #67805 SplFileObject setMaxLineLength 3--CREDITS-- 4Willian Gustavo Veiga <contact@willianveiga.com> 5--FILE-- 6<?php 7$splFileObject = new SplFileObject(__FILE__); 8$splFileObject->setMaxLineLen(3); 9$line = $splFileObject->getCurrentLine(); 10var_dump($line === '<?p'); 11var_dump(strlen($line) === 3); 12?> 13--EXPECTF-- 14bool(true) 15bool(true) 16