Skip to content

Commit 25ac1a7

Browse files
committed
ext/standard Deprecate passing empty string to realpath()
1 parent 0823b3e commit 25ac1a7

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

ext/standard/tests/file/readlink_realpath_variation3.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@ bool(false)
4343

4444
Warning: readlink(): %s in %s on line %d
4545
bool(false)
46+
47+
Deprecated: realpath(): Passing empty string to realpath() is deprecated, use getcwd() instead in %s on line %d
4648
string(%d) "%s"
4749
-- Iteration4 --
4850

4951
Warning: readlink(): %s in %s on line %d
5052
bool(false)
53+
54+
Deprecated: realpath(): Passing empty string to realpath() is deprecated, use getcwd() instead in %s on line %d
5155
string(%d) "%s"
5256
Done

ext/standard/tests/file/realpath_bug77484.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ $rp2 = realpath('./');
3636
var_dump($old_cwd, $new_cwd, $rp0, $rp1, $rp2);
3737
?>
3838
--EXPECTF--
39+
Deprecated: realpath(): Passing empty string to realpath() is deprecated, use getcwd() instead in %s on line %d
3940
string(%d) "%s"
4041
bool(false)
4142
bool(false)

0 commit comments

Comments
 (0)