]> granicus.if.org Git - php/commit
Fix bug 61671 ext\spl\tests\fileobject_003.phpt fails
authorAnatoliy Belsky <ab@php.net>
Thu, 19 Apr 2012 09:20:16 +0000 (11:20 +0200)
committerAnatoliy Belsky <ab@php.net>
Thu, 19 Apr 2012 09:33:12 +0000 (11:33 +0200)
commitadfb4c62b76ef241978814e10cae70498f52ea29
treeda06e71a293fd7cf6988a360215888e9aafc8ecf
parent4650b2164b641ba3fd9d733e8cc82e386aa98772
Fix bug 61671 ext\spl\tests\fileobject_003.phpt fails

The solution was already introduced in 5.4 by Etienne Kneuss and
Pierre but wasn't merged back into 5.3 . SplFileObject should
not be used with directories. So just putting together all the
necessary pieces from 5.4
ext/spl/spl_directory.c
ext/spl/tests/SplFileObject_fflush_basic_001.phpt
ext/spl/tests/SplFileObject_ftruncate_error_001.phpt
ext/spl/tests/fileobject_003.phpt