![]() ![]() | ![]() |
5.4.17
--TEST-- SPL: SplFileObject::getFlags error 001 --CREDITS-- Erwin Poeze <erwin.poeze@gmail.com> --FILE-- <?php file_put_contents('testdata.csv', 'eerste;tweede;derde'); $fo = new SplFileObject('testdata.csv'); $fo->setFlags(SplFileObject::READ_CSV); $fo->getFlags('fake'); ?> --CLEAN-- <?php unlink('testdata.csv'); ?> --EXPECTF-- Warning: SplFileObject::getFlags() expects exactly 0 parameters, 1 given in %s on line %d