简体   繁体   中英

Fatal error: Class 'SoapClient' not found

I'm trying a simple web service example and I get this error even though I uncommented extension=php_soap.dll in the php.ini file:

Fatal error: Class 'SoapClient' not found in C:\Program Files (x86)\EasyPHP-5.3.9\www\server.php on line 2

I'm trying a simple web service example and I get this error even though I uncommented extension=php_soap.dll in the php.ini file:

Fatal error: Class 'SoapClient' not found in C:\\Program Files (x86)\\EasyPHP-5.3.9\\www\\server.php on line 2

I'm trying a simple web service example and I get this error even though I uncommented extension=php_soap.dll in the php.ini file:

Fatal error: Class 'SoapClient' not found in C:\\Program Files (x86)\\EasyPHP-5.3.9\\www\\server.php on line 2

I'm trying a simple web service example and I get this error even though I uncommented extension=php_soap.dll in the php.ini file:

Fatal error: Class 'SoapClient' not found in C:\\Program Files (x86)\\EasyPHP-5.3.9\\www\\server.php on line 2

I'm trying a simple web service example and I get this error even though I uncommented extension=php_soap.dll in the php.ini file:

Fatal error: Class 'SoapClient' not found in C:\\Program Files (x86)\\EasyPHP-5.3.9\\www\\server.php on line 2

I'm trying a simple web service example and I get this error even though I uncommented extension=php_soap.dll in the php.ini file:

Fatal error: Class 'SoapClient' not found in C:\\Program Files (x86)\\EasyPHP-5.3.9\\www\\server.php on line 2

I'm trying a simple web service example and I get this error even though I uncommented extension=php_soap.dll in the php.ini file:

Fatal error: Class 'SoapClient' not found in C:\\Program Files (x86)\\EasyPHP-5.3.9\\www\\server.php on line 2

I'm trying a simple web service example and I get this error even though I uncommented extension=php_soap.dll in the php.ini file:

Fatal error: Class 'SoapClient' not found in C:\\Program Files (x86)\\EasyPHP-5.3.9\\www\\server.php on line 2

I'm trying a simple web service example and I get this error even though I uncommented extension=php_soap.dll in the php.ini file:

Fatal error: Class 'SoapClient' not found in C:\\Program Files (x86)\\EasyPHP-5.3.9\\www\\server.php on line 2

I'm trying a simple web service example and I get this error even though I uncommented extension=php_soap.dll in the php.ini file:

Fatal error: Class 'SoapClient' not found in C:\\Program Files (x86)\\EasyPHP-5.3.9\\www\\server.php on line 2

For PHP 7.4 & Docker add this line in Dockerfile:

RUN apt-get update && apt-get install -y \
libxml2-dev \

RUN docker-php-ext-install soap

Rebuild the image and restart;)

I'm trying a simple web service example and I get this error even though I uncommented extension=php_soap.dll in the php.ini file:

Fatal error: Class 'SoapClient' not found in C:\\Program Files (x86)\\EasyPHP-5.3.9\\www\\server.php on line 2

I'm trying a simple web service example and I get this error even though I uncommented extension=php_soap.dll in the php.ini file:

Fatal error: Class 'SoapClient' not found in C:\\Program Files (x86)\\EasyPHP-5.3.9\\www\\server.php on line 2

I'm trying a simple web service example and I get this error even though I uncommented extension=php_soap.dll in the php.ini file:

Fatal error: Class 'SoapClient' not found in C:\\Program Files (x86)\\EasyPHP-5.3.9\\www\\server.php on line 2

In my case, the Symfony cache was causing the problem, after running composer install the problem was gone.

I had a similar problem. It was due to the scope and solved by replacing new SoapClient by new \SoapClient .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM