summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2019-01-19 03:34:36 +0100
committerAnatol Belski <ab@php.net>2019-01-19 03:34:36 +0100
commit52057c3aa2a1ab6597b96f794d4d3d176a534d82 (patch)
treec25cd9260119d7dd6cc037b5f08400ad02b97ae8 /ext/standard
parent1f4a04fb3fd18f66c6d0332c035fb6b41d0a78bb (diff)
parent4254bf87bac5f79524eea48f1b53efbb2459840b (diff)
downloadphp-git-52057c3aa2a1ab6597b96f794d4d3d176a534d82.tar.gz
Merge branch 'PHP-7.3'
* PHP-7.3: Make test output more reliable
Diffstat (limited to 'ext/standard')
-rw-r--r--ext/standard/tests/file/realpath_bug77484.phpt16
1 files changed, 9 insertions, 7 deletions
diff --git a/ext/standard/tests/file/realpath_bug77484.phpt b/ext/standard/tests/file/realpath_bug77484.phpt
index 37cc5c203d..0c291f8f0e 100644
--- a/ext/standard/tests/file/realpath_bug77484.phpt
+++ b/ext/standard/tests/file/realpath_bug77484.phpt
@@ -9,21 +9,23 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
--FILE--
<?php
-var_dump(\getcwd());
+$old_cwd = getcwd();
-\mkdir(__DIR__ . "/foo");
-\chdir(__DIR__ . "/foo");
-\rmdir(__DIR__ . "/foo");
+mkdir(__DIR__ . "/foo");
+chdir(__DIR__ . "/foo");
+rmdir(__DIR__ . "/foo");
// Outputs: / (incorrect)
-var_dump(\getcwd());
+$new_cwd = getcwd();
// Outputs: false (correct)
-var_dump(\realpath(''));
+$rp0 = realpath('');
// Crash
-var_dump(\realpath('.'), \realpath('./'));
+$rp1 = realpath('.');
+$rp2 = realpath('./');
+var_dump($old_cwd, $new_cwd, $rp0, $rp1, $rp2);
?>
--EXPECTF--
string(%d) "%s"