Skip to content

Commit 670f1aa

Browse files
authoredJan 23, 2023
Remove unbalanced parentheses in an error message (#10420)
1 parent b60761a commit 670f1aa

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed
 

‎ext/standard/link.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ PHP_FUNCTION(readlink)
7575

7676
if (ret == -1) {
7777
#ifdef PHP_WIN32
78-
php_error_docref(NULL, E_WARNING, "readlink failed to read the symbolic link (%s), error %d)", link, GetLastError());
78+
php_error_docref(NULL, E_WARNING, "readlink failed to read the symbolic link (%s), error %d", link, GetLastError());
7979
#else
8080
php_error_docref(NULL, E_WARNING, "%s", strerror(errno));
8181
#endif

‎ext/standard/tests/file/readlink_realpath_error-win32.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ echo "Done\n";
2525
--EXPECTF--
2626
*** Testing readlink() on a non-existent link ***
2727

28-
Warning: readlink(): readlink failed to read the symbolic link (%s, error %d) in %s on line %d
28+
Warning: readlink(): readlink failed to read the symbolic link (%s), error %d in %s on line %d
2929
bool(false)
3030

3131
*** Testing readlink() on existing file ***

‎ext/standard/tests/file/readlink_realpath_variation2-win32.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ string(%d) "%s%ereadlink_realpath_variation2%ehome%etests%elink%ereadlink_realpa
7676
Warning: symlink(): No such file or directory in %s on line %d
7777
bool(false)
7878

79-
Warning: readlink(): readlink failed to read the symbolic link (%s) in %s on line %d
79+
Warning: readlink(): readlink failed to read the symbolic link (%s), error %d in %s on line %d
8080
bool(false)
8181
bool(false)
8282

@@ -90,7 +90,7 @@ string(%d) "%s%ereadlink_realpath_variation2%ehome%etests%elink%ereadlink_realpa
9090
Warning: link(): No such file or directory in %s on line %d
9191
bool(false)
9292

93-
Warning: readlink(): readlink failed to read the symbolic link (%s) in %s on line %d
93+
Warning: readlink(): readlink failed to read the symbolic link (%s), error %d in %s on line %d
9494
bool(false)
9595
bool(false)
9696

‎ext/standard/tests/file/rename_variation7-win32.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ echo "Done\n";
2828
--EXPECTF--
2929
Warning: symlink(): No such file or directory in %srename_variation7-win32.php on line %d
3030

31-
Warning: readlink(): readlink failed to read the symbolic link (%srename_variation7-win32.php.tmp.link), error 2) in %srename_variation7-win32.php on line %d
31+
Warning: readlink(): readlink failed to read the symbolic link (%srename_variation7-win32.php.tmp.link), error 2 in %srename_variation7-win32.php on line %d
3232
bool(false)
3333

34-
Warning: readlink(): readlink failed to read the symbolic link (%srename_variation7-win32.php.tmp.link2), error 2) in %srename_variation7-win32.php on line %d
34+
Warning: readlink(): readlink failed to read the symbolic link (%srename_variation7-win32.php.tmp.link2), error 2 in %srename_variation7-win32.php on line %d
3535
bool(false)
3636
Done

0 commit comments

Comments
 (0)
Please sign in to comment.