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.9wwwserver.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.9wwwserver.php on line 2
The PHPUnit documentation says used to say to include/require PHPUnit/Framework.php, as follows:
require_once ('PHPUnit/Framework/TestCase.php');
UPDATE
As of PHPUnit 3.5, there is a built-in autoloader class that will handle this for you:
require_once 'PHPUnit/Autoload.php';
Thanks to Phoenix for pointing this out!
So, after more testing and what not, I find that it's not actually a bug in the MySQLi libraries or in my code.
The Solution? Give the database user the "Execute" permission for the database in MySQL. I wrote and tested the SQL statements and functions while I was logged in as root, not the actual user that the script was using.
Oh the joys of IT.
This was a cakephp issue
https://github.com/cakephp/cakephp/issues/8501
$restore = error_reporting(0);
try {
$soap_client = new SoapClient($wsdl_file, ['exceptions' => true]);
}
catch (SoapFault $e) {
trigger_error($e->getMessage()); // Overwrites E_ERROR with E_USER_NOTICE
}
finally {
error_reporting($restore);
}
Diagnose
Look up the following inside your script file
If you can't find
Soap Client
set toenabled
like so:Fix
Do the following:
php.ini
in your apache bin folder, I.eApache/bin/php.ini
;
from the beginning ofextension=php_soap.dll
phpinfo();
again and check if you see a similar picture to the one aboveOn the other hand if this doesn't solve your issue, you may want to check the requirements for SOAP here. Also in the comment section you can find good advice on connecting to https.