Skip to content

Commit 1e0610f

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Strip trailing line breaks and periods from Windows error messages
2 parents be29853 + a08a2b4 commit 1e0610f

19 files changed

+232
-252
lines changed

ext/com_dotnet/tests/variants.phpt

Lines changed: 93 additions & 93 deletions
Large diffs are not rendered by default.

ext/com_dotnet/tests/variants_x64.phpt

Lines changed: 93 additions & 93 deletions
Large diffs are not rendered by default.

ext/sockets/tests/socket_clear_error-win32.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ unset($socket);
2626
unset($socketConn);
2727
?>
2828
--EXPECTF--
29-
Warning: socket_connect(): unable to connect [%d]: No connection could be made because the target machine actively refused it.
30-
in %s on line %d
29+
Warning: socket_connect(): unable to connect [%d]: No connection could be made because the target machine actively refused it in %s on line %d
3130
int(%d)
3231
int(%d)

ext/sockets/tests/socket_export_stream-4-win.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,10 @@ close stream
9494
stream_set_blocking TypeError: stream_set_blocking(): supplied resource is not a valid stream resource
9595

9696
socket_set_block
97-
Warning: socket_set_block(): unable to set blocking mode [%d]: An operation was attempted on something that is not a socket.
98-
in %s on line %d
97+
Warning: socket_set_block(): unable to set blocking mode [%d]: An operation was attempted on something that is not a socket in %s on line %d
9998

10099
socket_get_option
101-
Warning: socket_get_option(): Unable to retrieve socket option [%d]: An operation was attempted on something that is not a socket.
102-
in %s on line %d
100+
Warning: socket_get_option(): Unable to retrieve socket option [%d]: An operation was attempted on something that is not a socket in %s on line %d
103101

104102

105103

ext/sockets/tests/socket_import_stream-4-win.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,10 @@ close stream
8989
stream_set_blocking TypeError: stream_set_blocking(): supplied resource is not a valid stream resource
9090

9191
socket_set_block
92-
Warning: socket_set_block(): unable to set blocking mode [10038]: %s
93-
in %ssocket_import_stream-4-win.php on line %d
92+
Warning: socket_set_block(): unable to set blocking mode [10038]: %s in %ssocket_import_stream-4-win.php on line %d
9493

9594
socket_get_option
96-
Warning: socket_get_option(): Unable to retrieve socket option [10038]: %s
97-
in %ssocket_import_stream-4-win.php on line %d
95+
Warning: socket_get_option(): Unable to retrieve socket option [10038]: %s in %ssocket_import_stream-4-win.php on line %d
9896

9997

10098

ext/sockets/tests/socket_sentto_recvfrom_ipv6_udp-win32.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ require 'ipv6_skipif.inc';
4646
socket_close($socket);
4747
?>
4848
--EXPECTF--
49-
Warning: socket_recvfrom(): unable to recvfrom [10022]: %s
50-
in %s on line %d
49+
Warning: socket_recvfrom(): unable to recvfrom [10022]: %s in %s on line %d
5150
Received Ping! from remote address ::1 and remote port 1223
5251
--CREDITS--
5352
Falko Menge <mail at falko-menge dot de>

ext/sockets/tests/socket_shutdown-win32.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@ bool(true)
5050
bool(true)
5151
bool(true)
5252

53-
Warning: socket_shutdown(): Unable to shutdown socket [%d]: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
54-
in %s on line %d
53+
Warning: socket_shutdown(): Unable to shutdown socket [%d]: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied in %s on line %d
5554
bool(false)
5655

57-
Warning: socket_shutdown(): Unable to shutdown socket [%d]: An invalid argument was supplied.
58-
in %s on line %d
56+
Warning: socket_shutdown(): Unable to shutdown socket [%d]: An invalid argument was supplied in %s on line %d
5957
bool(false)

ext/sockets/tests/wsaprotocol_info_0.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ object(Socket)#%d (0) {
5757
object(Socket)#%d (0) {
5858
}
5959

60-
Warning: socket_wsaprotocol_info_export(): Unable to export WSA protocol info [0x00002726]: %s
61-
in %s on line %d
60+
Warning: socket_wsaprotocol_info_export(): Unable to export WSA protocol info [0x00002726]: %s in %s on line %d
6261

6362
Warning: socket_wsaprotocol_info_import(): Unable to open file mapping [0x00000002] in %s on line %d

ext/standard/tests/file/disk_free_space_error-win32.phpt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,16 @@ unlink($file_path."/disk_free_space.tmp");
3030
--EXPECTF--
3131
*** Testing error conditions ***
3232

33-
Warning: disk_free_space(): The system cannot find the path specified.
34-
in %s on line %d
33+
Warning: disk_free_space(): The system cannot find the path specified in %s on line %d
3534
bool(false)
3635

37-
Warning: diskfreespace(): The system cannot find the path specified.
38-
in %s on line %d
36+
Warning: diskfreespace(): The system cannot find the path specified in %s on line %d
3937
bool(false)
4038

41-
Warning: disk_free_space(): The directory name is invalid.
42-
in %s on line %d
39+
Warning: disk_free_space(): The directory name is invalid in %s on line %d
4340
bool(false)
4441

45-
Warning: diskfreespace(): The directory name is invalid.
46-
in %s on line %d
42+
Warning: diskfreespace(): The directory name is invalid in %s on line %d
4743
bool(false)
4844

4945
-- Done --

ext/standard/tests/file/disk_total_space_error-win32.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@ unlink($file_path."/disk_total_space.tmp");
2929
--EXPECTF--
3030
*** Testing error conditions ***
3131

32-
Warning: disk_total_space(): The system cannot find the path specified.
33-
in %s on line %d
32+
Warning: disk_total_space(): The system cannot find the path specified in %s on line %d
3433
bool(false)
3534

36-
Warning: disk_total_space(): The directory name is invalid.
37-
in %s on line %d
35+
Warning: disk_total_space(): The directory name is invalid in %s on line %d
3836
bool(false)
3937

4038
--- Done ---

0 commit comments

Comments
 (0)