com php-src: Merge branch 'PHP-7.4': ext/standard/tests/file/fi legroup_variation2.phpt ext/standard/tests/file/fileino de_variation2.phpt
ext/standard/tests/file/fileowner_ variation2.phpt ext/standard/tests/file/fileperms_varia tion2.phpt ext/standard/tests/file/flock_error.phpt
ext/standard/tests/file/is_dir_variation3.phpt ext /standard/tests/file/is_file_variation3.phpt ext/stan dard/tests/file/is_writable_variation3.phpt
ext/stand ard/tests/file/r

From: Date: Wed, 13 Nov 2019 20:15:59 +0000
Subject: com php-src: Merge branch 'PHP-7.4': ext/standard/tests/file/fi legroup_variation2.phpt ext/standard/tests/file/fileino de_variation2.phpt
ext/standard/tests/file/fileowner_ variation2.phpt ext/standard/tests/file/fileperms_varia tion2.phpt ext/standard/tests/file/flock_error.phpt
ext/standard/tests/file/is_dir_variation3.phpt ext /standard/tests/file/is_file_variation3.phpt ext/stan dard/tests/file/is_writable_variation3.phpt
ext/stand ard/tests/file/r
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-109255@lists.php.net to get a copy of this message
Commit: d65e59de9b61761c9839ea6379285b10936e03e1 Author: Fabien Villepinte <fabien.villepinte@gmail.com> Wed, 13 Nov 2019 21:15:59 +0100 Parents: 36afe4e39ec724eab19c54c1492db030721d0ec1 92fd96531cdc04bb59f216aef22360e3ab96ae37 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d65e59de9b61761c9839ea6379285b10936e03e1 Log: Merge branch 'PHP-7.4' Changed paths: MM ext/standard/tests/file/filegroup_variation2.phpt MM ext/standard/tests/file/fileinode_variation2.phpt MM ext/standard/tests/file/fileowner_variation2.phpt MM ext/standard/tests/file/fileperms_variation2.phpt MM ext/standard/tests/file/flock_error.phpt MM ext/standard/tests/file/is_dir_variation3.phpt MM ext/standard/tests/file/is_file_variation3.phpt MM ext/standard/tests/file/is_writable_variation3.phpt MM ext/standard/tests/file/readfile_variation10-win32.phpt MM ext/standard/tests/file/readfile_variation10.phpt MM ext/standard/tests/file/readlink_variation1.phpt MM ext/standard/tests/file/rename_variation13-win32.phpt MM ext/standard/tests/file/rename_variation13.phpt MM ext/standard/tests/file/tempnam_variation3-win32.phpt MM ext/standard/tests/file/tempnam_variation3.phpt MM ext/standard/tests/file/tempnam_variation7-win32.phpt MM ext/standard/tests/file/tempnam_variation7.phpt Diff: diff --cc ext/standard/tests/file/filegroup_variation2.phpt index ee232e42145,030f97a0f8b..6c8b1826c3e --- a/ext/standard/tests/file/filegroup_variation2.phpt +++ b/ext/standard/tests/file/filegroup_variation2.phpt @@@ -32,8 -36,7 +34,6 @@@ foreach( $filenames as $filename ) var_dump( filegroup($filename) ); clearstatcache(); } - - echo "\n*** Done ***"; -fclose($file_handle); ?> --CLEAN-- <?php diff --cc ext/standard/tests/file/fileinode_variation2.phpt index f86a0b89a6b,71cdc395a66..07b76bb62c9 --- a/ext/standard/tests/file/fileinode_variation2.phpt +++ b/ext/standard/tests/file/fileinode_variation2.phpt @@@ -33,8 -37,7 +35,6 @@@ foreach( $filenames as $filename ) var_dump( fileinode($filename) ); clearstatcache(); } - - echo "\n*** Done ***"; -fclose($file_handle); ?> --CLEAN-- <?php diff --cc ext/standard/tests/file/fileowner_variation2.phpt index b6d5afaee84,4be8f58682e..8de42cb494c --- a/ext/standard/tests/file/fileowner_variation2.phpt +++ b/ext/standard/tests/file/fileowner_variation2.phpt @@@ -33,8 -37,7 +35,6 @@@ foreach( $filenames as $filename ) var_dump( fileowner($filename) ); clearstatcache(); } - - echo "\n*** Done ***"; -fclose($file_handle); ?> --CLEAN-- <?php diff --cc ext/standard/tests/file/fileperms_variation2.phpt index e626eab361e,d45da017cc8..4eee45d8692 --- a/ext/standard/tests/file/fileperms_variation2.phpt +++ b/ext/standard/tests/file/fileperms_variation2.phpt @@@ -32,8 -36,7 +34,6 @@@ foreach( $filenames as $filename ) var_dump( fileperms($filename) ); clearstatcache(); } - - echo "\n*** Done ***"; -fclose($file_handle); ?> --CLEAN-- <?php diff --cc ext/standard/tests/file/flock_error.phpt index 470c6a536fb,d6f1b3f59b4..4069dd2aa01 --- a/ext/standard/tests/file/flock_error.phpt +++ b/ext/standard/tests/file/flock_error.phpt @@@ -41,13 -39,16 +43,11 @@@ foreach($operations as $operation) /* Invalid arguments */ $fp = fopen($file, "w"); fclose($fp); -var_dump(flock($fp, LOCK_SH|LOCK_NB)); - -var_dump(flock("", "", $var)); - -/* No.of args leass than expected */ -var_dump(flock()); -var_dump(flock($fp)); - -/* No.of args greater than expected */ -var_dump(flock($fp, "", $var, "")); +try { + var_dump(flock($fp, LOCK_SH|LOCK_NB)); +} catch (TypeError $e) { + echo $e->getMessage(), "\n"; +} - - echo "\n*** Done ***\n"; ?> --CLEAN-- <?php @@@ -74,19 -75,36 +74,17 @@@ Warning: flock(): Illegal operation arg bool(false) --- Iteration 4 --- -Warning: flock() expects parameter 2 to be int, array given in %s on line %d -NULL +flock() expects parameter 2 to be int, array given --- Iteration 5 --- -Warning: flock() expects parameter 2 to be int, array given in %s on line %d -NULL +flock() expects parameter 2 to be int, array given --- Iteration 6 --- -Warning: flock() expects parameter 2 to be int, string given in %s on line %d -NULL +flock() expects parameter 2 to be int, string given --- Iteration 7 --- -Warning: flock() expects parameter 2 to be int, string given in %s on line %d -NULL +flock() expects parameter 2 to be int, string given --- Iteration 8 --- -Warning: flock() expects parameter 2 to be int, string given in %s on line %d -NULL - -Warning: flock(): supplied resource is not a valid stream resource in %s on line %d -bool(false) - -Warning: flock() expects parameter 1 to be resource, string given in %s on line %d -NULL - -Warning: flock() expects at least 2 parameters, 0 given in %s on line %d -NULL - -Warning: flock() expects at least 2 parameters, 1 given in %s on line %d -NULL - -Warning: flock() expects at most 3 parameters, 4 given in %s on line %d -NULL +flock() expects parameter 2 to be int, string given +flock(): supplied resource is not a valid stream resource - - *** Done *** diff --cc ext/standard/tests/file/is_dir_variation3.phpt index 060739ff3de,3f9d196e64d..e82d9ae0342 --- a/ext/standard/tests/file/is_dir_variation3.phpt +++ b/ext/standard/tests/file/is_dir_variation3.phpt @@@ -27,8 -32,7 +29,6 @@@ $dirnames = array foreach($dirnames as $dirname) { var_dump( is_dir($dirname) ); } - - echo "\n*** Done ***"; -closedir($dir_handle); ?> --EXPECTF-- *** Testing is_dir() with Invalid arguments: expected bool(false) *** @@@ -37,7 -41,8 +37,5 @@@ bool(false bool(false) bool(false) bool(false) - -Warning: is_dir() expects parameter 1 to be a valid path, resource given in %s on line %d -NULL bool(false) bool(false) - - *** Done *** diff --cc ext/standard/tests/file/is_writable_variation3.phpt index b55a193fce3,e49270bcf4e..c5843a5abfb --- a/ext/standard/tests/file/is_writable_variation3.phpt +++ b/ext/standard/tests/file/is_writable_variation3..phpt @@@ -55,6 -56,11 +55,5 @@@ bool(false bool(false) bool(false) bool(false) - -Warning: is_writable() expects parameter 1 to be a valid path, array given in %s on line %d -NULL - -Warning: is_writeable() expects parameter 1 to be a valid path, array given in %s on line %d -NULL bool(false) bool(false) - Done diff --cc ext/standard/tests/file/readfile_variation10.phpt index 5a0070c04fb,e9655377a3c...351b03d565a Binary files differ diff --cc ext/standard/tests/file/readlink_variation1.phpt index 2971c1e146a,d641f20f260..276f8944320 --- a/ext/standard/tests/file/readlink_variation1.phpt +++ b/ext/standard/tests/file/readlink_variation1.phpt @@@ -30,8 -34,7 +32,6 @@@ foreach( $filenames as $filename ) var_dump( readlink($filename) ); clearstatcache(); } - - echo "\n*** Done ***"; -fclose($file_handle); ?> --CLEAN-- <?php diff --cc ext/standard/tests/file/rename_variation13-win32.phpt index c0299c27ab7,965a0dac251..83a4a88b29b Binary files differ

« previous php.cvs (#109255) next »