1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

ext/soap: fix make check being invoked in ext/soap

On NixOS we run `make` & `make check` inside `ext/soap` which broke the test
like this:

    001+ Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'ext/soap/tests/gh15711.wsdl' : failed to load "ext/soap/tests/gh15711.wsdl": No such file or directory
    002+  in /build/php-8.3.13/ext/soap/tests/gh15711.php:29
    003+ Stack trace:
    004+ #0 /build/php-8.3.13/ext/soap/tests/gh15711.php(29): SoapClient->__construct('ext/soap/tests/...', Array)
    005+ #1 {main}
    006+   thrown in /build/php-8.3.13/ext/soap/tests/gh15711.php on line 29

Fix is to make the path dependant on `__DIR__` as it's the case in other
testcases including WSDLs.

Closes GH-16733.
This commit is contained in:
Maximilian Bosch
2024-11-08 19:36:14 +01:00
committed by Niels Dossche
parent af8ebb12ca
commit 73c4fa0ea4
2 changed files with 4 additions and 1 deletions

3
NEWS
View File

@@ -11,6 +11,9 @@ PHP NEWS
- PDO:
. Fixed memory leak of `setFetchMode()`. (SakiTakamachi)
- SOAP:
. Fix make check being invoked in ext/soap. (Ma27)
07 Nov 2024, PHP 8.3.14RC1
- Cli:

View File

@@ -33,7 +33,7 @@ class TestSoapClient extends SoapClient {
}
}
$client = new TestSoapClient('ext/soap/tests/gh15711.wsdl', ['classmap' => ['book' => 'book']]);
$client = new TestSoapClient(__DIR__ . '/gh15711.wsdl', ['classmap' => ['book' => 'book']]);
echo "--- Test with backed enum ---\n";