make test fail while soap extention build
Description
I have faced with problem in soap extension while building and testing
tests/bug73037.phpt
Resulted in this output:
Iteration 0
HTTP/1.1 200 OK
Date: Fri, 22 Apr 2022 14:09:28 GMT
Connection: close
X-Powered-By: PHP/7.4.29
Content-type: text/html; charset=UTF-8
<br />
<b>Fatal error</b>: Uncaught Error: Class 'SoapServer' not found in /usr/src/php/sapi/cli/tests/bug73037_server.php:1
Stack trace:
#0 {main}
thrown in <b>/usr/src/php/sapi/cli/tests/bug73037_server.php</b> on line <b>1</b><br />
HTTP/1.1 200 OK
Date: Fri, 22 Apr 2022 14:09:28 GMT
Connection: close
X-Powered-By: PHP/7.4.29
Content-type: text/html; charset=UTF-8
<br />
<b>Fatal error</b>: Uncaught Error: Class 'SoapServer' not found in /usr/src/php/sapi/cli/tests/bug73037_server.php:1
Stack trace:
#0 {main}
thrown in <b>/usr/src/php/sapi/cli/tests/bug73037_server.php</b> on line <b>1</b><br />
Iteration 1
HTTP/1.1 200 OK
Date: Fri, 22 Apr 2022 14:09:28 GMT
Connection: close
X-Powered-By: PHP/7.4.29
Content-type: text/html; charset=UTF-8
<br />
<b>Fatal error</b>: Uncaught Error: Class 'SoapServer' not found in /usr/src/php/sapi/cli/tests/bug73037_server.php:1
Stack trace:
#0 {main}
thrown in <b>/usr/src/php/sapi/cli/tests/bug73037_server.php</b> on line <b>1</b><br />
HTTP/1.1 200 OK
Date: Fri, 22 Apr 2022 14:09:28 GMT
Connection: close
X-Powered-By: PHP/7.4.29
Content-type: text/html; charset=UTF-8
<br />
<b>Fatal error</b>: Uncaught Error: Class 'SoapServer' not found in /usr/src/php/sapi/cli/tests/bug73037_server.php:1
Stack trace:
#0 {main}
thrown in <b>/usr/src/php/sapi/cli/tests/bug73037_server.php</b> on line <b>1</b><br />
Iteration 2
HTTP/1.1 200 OK
Date: Fri, 22 Apr 2022 14:09:28 GMT
Connection: close
X-Powered-By: PHP/7.4.29
Content-type: text/html; charset=UTF-8
<br />
<b>Fatal error</b>: Uncaught Error: Class 'SoapServer' not found in /usr/src/php/sapi/cli/tests/bug73037_server.php:1
Stack trace:
#0 {main}
thrown in <b>/usr/src/php/sapi/cli/tests/bug73037_server.php</b> on line <b>1</b><br />
HTTP/1.1 200 OK
Date: Fri, 22 Apr 2022 14:09:28 GMT
Connection: close
X-Powered-By: PHP/7.4.29
Content-type: text/html; charset=UTF-8
<br />
<b>Fatal error</b>: Uncaught Error: Class 'SoapServer' not found in /usr/src/php/sapi/cli/tests/bug73037_server.php:1
Stack trace:
#0 {main}
thrown in <b>/usr/src/php/sapi/cli/tests/bug73037_server.php</b> on line <b>1</b><br />
Iteration 3
HTTP/1.1 200 OK
Date: Fri, 22 Apr 2022 14:09:28 GMT
Connection: close
X-Powered-By: PHP/7.4.29
Content-type: text/html; charset=UTF-8
<br />
<b>Fatal error</b>: Uncaught Error: Class 'SoapServer' not found in /usr/src/php/sapi/cli/tests/bug73037_server.php:1
Stack trace:
#0 {main}
thrown in <b>/usr/src/php/sapi/cli/tests/bug73037_server.php</b> on line <b>1</b><br />
HTTP/1.1 200 OK
Date: Fri, 22 Apr 2022 14:09:28 GMT
Connection: close
X-Powered-By: PHP/7.4.29
Content-type: text/html; charset=UTF-8
<br />
<b>Fatal error</b>: Uncaught Error: Class 'SoapServer' not found in /usr/src/php/sapi/cli/tests/bug73037_server.php:1
Stack trace:
#0 {main}
thrown in <b>/usr/src/php/sapi/cli/tests/bug73037_server.php</b> on line <b>1</b><br />
Iteration 4
HTTP/1.1 200 OK
Date: Fri, 22 Apr 2022 14:09:28 GMT
Connection: close
X-Powered-By: PHP/7.4.29
Content-type: text/html; charset=UTF-8
<br />
<b>Fatal error</b>: Uncaught Error: Class 'SoapServer' not found in /usr/src/php/sapi/cli/tests/bug73037_server.php:1
Stack trace:
#0 {main}
thrown in <b>/usr/src/php/sapi/cli/tests/bug73037_server.php</b> on line <b>1</b><br />
HTTP/1.1 200 OK
Date: Fri, 22 Apr 2022 14:09:28 GMT
Connection: close
X-Powered-By: PHP/7.4.29
Content-type: text/html; charset=UTF-8
<br />
<b>Fatal error</b>: Uncaught Error: Class 'SoapServer' not found in /usr/src/php/sapi/cli/tests/bug73037_server.php:1
Stack trace:
#0 {main}
thrown in <b>/usr/src/php/sapi/cli/tests/bug73037_server.php</b> on line <b>1</b><br />
Iteration 5
HTTP/1.1 200 OK
Date: Fri, 22 Apr 2022 14:09:28 GMT
Connection: close
X-Powered-By: PHP/7.4.29
Content-type: text/html; charset=UTF-8
<br />
<b>Fatal error</b>: Uncaught Error: Class 'SoapServer' not found in /usr/src/php/sapi/cli/tests/bug73037_server.php:1
Stack trace:
#0 {main}
thrown in <b>/usr/src/php/sapi/cli/tests/bug73037_server.php</b> on line <b>1</b><br />
HTTP/1.1 200 OK
Date: Fri, 22 Apr 2022 14:09:28 GMT
Connection: close
X-Powered-By: PHP/7.4.29
Content-type: text/html; charset=UTF-8
<br />
<b>Fatal error</b>: Uncaught Error: Class 'SoapServer' not found in /usr/src/php/sapi/cli/tests/bug73037_server.php:1
Stack trace:
#0 {main}
thrown in <b>/usr/src/php/sapi/cli/tests/bug73037_server.php</b> on line <b>1</b><br />
Iteration 6
HTTP/1.1 200 OK
Date: Fri, 22 Apr 2022 14:09:28 GMT
Connection: close
X-Powered-By: PHP/7.4.29
Content-type: text/html; charset=UTF-8
<br />
<b>Fatal error</b>: Uncaught Error: Class 'SoapServer' not found in /usr/src/php/sapi/cli/tests/bug73037_server.php:1
Stack trace:
#0 {main}
thrown in <b>/usr/src/php/sapi/cli/tests/bug73037_server.php</b> on line <b>1</b><br />
HTTP/1.1 200 OK
Date: Fri, 22 Apr 2022 14:09:28 GMT
Connection: close
X-Powered-By: PHP/7.4.29
Content-type: text/html; charset=UTF-8
<br />
<b>Fatal error</b>: Uncaught Error: Class 'SoapServer' not found in /usr/src/php/sapi/cli/tests/bug73037_server.php:1
Stack trace:
#0 {main}
thrown in <b>/usr/src/php/sapi/cli/tests/bug73037_server.php</b> on line <b>1</b><br />
==DONE==
PHP Version
PHP 8.1.5 PHP 7.4.29
Operating System
REHL
Uncaught Error: Class 'SoapServer' not found
Apparently, the soap extension has not been loaded, and the test currently caters to Windows only wrt. to dynamically built ext/soap: https://github.com/php/php-src/blob/15ee285f830ecdc51d8ca9e223d86b0c5fcfbff8/ext/soap/tests/bug73037.phpt#L62-L63
Sure, I tried to check this idea here /usr/src/php/ext/soap/tests/bug73037.php
$router = "bug73037_server.php";
$args = substr(PHP_OS, 0, 3) == 'WIN'
? ["-d", "extension_dir=" . ini_get("extension_dir"), "-d", "extension=php_soap.dll"] : [];
$code = <<<'PHP'
if (!extension_loaded('soap')) {
throw new \Exception('soap not loaded');
}
and it throw exception
Why did you close this ticket? The issue already has been acknowledged as bug, and even if you don't need this bug to be fixed, I don't see a reason to close it prematurely.
My apologies, I don't want to spend your time waste, I solve this problem locally and that's why I've closed all issue, but if you would like to solve it, please do it.