com php-src: Merge branch 'PHP-7.3' into PHP-7.4: NEWS Zend/zend_virtual_cwd.c ext/standard/tests/file/realpat h_basic4.phpt
| From: | Christoph Michael Becker | Date: | Mon, 27 Jul 2020 15:51:56 +0000 |
| Subject: | com php-src: Merge branch 'PHP-7.3' into PHP-7.4: NEWS Zend/zend_virtual_cwd.c ext/standard/tests/file/realpat h_basic4.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-112387@lists.php.net to get a copy of this message | ||
Commit: f02507469d0cb8dd202b8674c93251c59f2cbcf2
Author: Christoph M. Becker <cmbecker69@gmx.de> Mon, 27 Jul 2020 17:51:39 +0200
Parents: 85a26fef11ace24ba0d8a70fe850109cf66bdbe5 1aeff522b8e5ee77b9ae91bab59699db4dfc2c7e
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f02507469d0cb8dd202b8674c93251c59f2cbcf2
Log:
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Revert "Fix #79806: realpath() erroneously resolves link to link"
Bugs:
https://bugs.php.net/79806
Changed paths:
MM NEWS
MM Zend/zend_virtual_cwd.c
MM ext/standard/tests/file/realpath_basic4.phpt
Diff:
diff --cc NEWS
index 94f7c4b62d,0a6e60d419..09eca0b1c8
--- a/NEWS
+++ b/NEWS
@@@ -5,9 -5,8 +5,8 @@@ PH
- Core:
. Fixed bug #79884 (PHP_CONFIG_FILE_PATH is meaningless). (cmb)
. Fixed bug #77932 (File extensions are case-sensitive). (cmb)
- . Fixed bug #79806 (realpath() erroneously resolves link to link). (cmb)
-?? ??? ????, PHP 7.3.21
+06 Aug 2020, PHP 7.4.9
- Apache:
. Fixed bug #79030 (Upgrade apache2handler's php_apache_sapi_get_request_time
diff --cc ext/standard/tests/file/realpath_basic4.phpt
index 524dde3056,d782b6d618..1af510d34a
--- a/ext/standard/tests/file/realpath_basic4.phpt
+++ b/ext/standard/tests/file/realpath_basic4.phpt
@@@ -1,13 -1,19 +1,19 @@@
--TEST--
Test realpath() with relative paths
+ --SKIPIF--
+ <?php
+ if (substr(PHP_OS, 0, 3) == 'WIN') {
+ die('skip no symlinks on Windows');
+ }
+ ?>
--FILE--
<?php
-$file_path = dirname(__FILE__);
-@mkdir("$file_path/realpath_basic/home/test", 0777, true);
-@symlink("$file_path/realpath_basic/home", "$file_path/realpath_basic/link1");
-@symlink("$file_path/realpath_basic/link1",
"$file_path/realpath_basic/link2");
-echo "1. " . realpath("$file_path/realpath_basic/link2") . "\n";
-echo "2. " . realpath("$file_path/realpath_basic/link2/test") .
"\n";
+$file_path = __DIR__;
+@mkdir("$file_path/realpath_basic4/home/test", 0777, true);
+@symlink("$file_path/realpath_basic4/home",
"$file_path/realpath_basic4/link1");
+@symlink("$file_path/realpath_basic4/link1",
"$file_path/realpath_basic4/link2");
+echo "1. " . realpath("$file_path/realpath_basic4/link2") . "\n";
+echo "2. " . realpath("$file_path/realpath_basic4/link2/test") .
"\n";
?>
--CLEAN--
<?php