svn: /php/php-src/ branches/PHP_5_4/ext/spl/spl_directory.c branches/PHP_5_4/ext/spl/tests/SplFileObject_fflush_basic_001.phpt
branches/PHP_5_4/ext/spl/tests/SplFileObject_ftruncate_error_001.phpt branches/PHP_5_4/ext/spl/tests/fileobject_003.phpt trunk/ext/spl/spl_directory.c
trunk/ext/spl/tests/SplFileObject_fflush_basic_001.phpt trunk/ext/spl/tests/SplFileObject_ftruncate_error_001.phpt
trunk/ext/spl/tests/fileobject_003.phpt

From: Date: Thu, 08 Sep 2011 15:52:59 +0000
Subject: svn: /php/php-src/ branches/PHP_5_4/ext/spl/spl_directory.c branches/PHP_5_4/ext/spl/tests/SplFileObject_fflush_basic_001.phpt
branches/PHP_5_4/ext/spl/tests/SplFileObject_ftruncate_error_001.phpt branches/PHP_5_4/ext/spl/tests/fileobject_003.phpt trunk/ext/spl/spl_directory.c
trunk/ext/spl/tests/SplFileObject_fflush_basic_001.phpt trunk/ext/spl/tests/SplFileObject_ftruncate_error_001.phpt
trunk/ext/spl/tests/fileobject_003.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-66383@lists.php.net to get a copy of this message
colder Thu, 08 Sep 2011 15:52:59 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=316420 Log: SplFileObject does not accept directories. It did not check for that and blindly opened the directory, which works on linux but fails on windows. Now SplFileObject uses a stat() call to make sure it isn't a directory, if it is, it fails with an exception. Tests have been changed accordingly. Changed paths: U php/php-src/branches/PHP_5_4/ext/spl/spl_directory.c U php/php-src/branches/PHP_5_4/ext/spl/tests/SplFileObject_fflush_basic_001.phpt U php/php-src/branches/PHP_5_4/ext/spl/tests/SplFileObject_ftruncate_error_001.phpt U php/php-src/branches/PHP_5_4/ext/spl/tests/fileobject_003.phpt U php/php-src/trunk/ext/spl/spl_directory.c U php/php-src/trunk/ext/spl/tests/SplFileObject_fflush_basic_001.phpt U php/php-src/trunk/ext/spl/tests/SplFileObject_ftruncate_error_001.phpt U php/php-src/trunk/ext/spl/tests/fileobject_003.phpt

Attachment: [text/x-diff] svn-diffs-316420.txt
« previous php.cvs (#66383) next »