Skip to content

make test fail while soap extention build #8426

Closed
ThePHPF/thephp.foundation
#90

Description

@evrinoma

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

Activity

  1. cmb69 commented on Apr 22, 2022

    @cmb69
    Member

    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:

    $args = substr(PHP_OS, 0, 3) == 'WIN'
    ? ["-d", "extension_dir=" . ini_get("extension_dir"), "-d", "extension=php_soap.dll"] : [];

  2. evrinoma commented on Apr 22, 2022

    @evrinoma
    Author

    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

  3. cmb69 commented on Apr 26, 2022

    @cmb69
    Member

    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.

  4. reopened this on Apr 26, 2022
  5. evrinoma commented on Apr 26, 2022

    @evrinoma
    Author

    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.

  6. added 2 commits that reference this issue on May 8, 2023
    52dd951
    6ba0b06
  7. added 2 commits that reference this issue on May 9, 2023
    44491d1
    63a84a2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions