Skip to content

Commit e4d910d

Browse files
cmb69jorgsowa
authored andcommitted
Fix bug71610.phpt
Apparently example.org now rejects POST requests, so we would need to adjust the test expectation ("Method not allowed"). However, there is no need for an online test; instead we're just using the CLI test server. The serialization is a bit fiddly, but as long as there are no quotes in `PHP_CLI_SERVER_ADDRESS` we're fine. Closes phpGH-16063.
1 parent f1b41d7 commit e4d910d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/soap/tests/bugs/bug71610.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ SOAP Bug #71610 - Type Confusion Vulnerability - SOAP / make_http_soap_request()
44
soap
55
--SKIPIF--
66
<?php
7-
if (!file_exists(__DIR__ . "/../../../../sapi/cli/tests/php_cli_server.inc")) {
7+
if (!file_exists(__DIR__ . "/../../../sapi/cli/tests/php_cli_server.inc")) {
88
echo "skip sapi/cli/tests/php_cli_server.inc required but not found";
99
}
1010
?>
1111
--FILE--
1212
<?php
13-
include __DIR__ . "/../../../../sapi/cli/tests/php_cli_server.inc";
13+
include __DIR__ . "/../../../sapi/cli/tests/php_cli_server.inc";
1414
php_cli_server_start();
1515

1616
$url = "http://" . PHP_CLI_SERVER_ADDRESS;

0 commit comments

Comments
 (0)