From: wase1 at gmx dot net
Operating system: Win 2K SP 4 + IIS 5.0
PHP version: 5.0.4
PHP Bug Type: SOAP related
Bug description: php_soap.dll problem with arrays
Description:
------------
Sorry, my englisch is bad.
Problem:
I try tu use extension php_soap.dll with IIS 5.0 to build a webservice
client.
If my eMail ist static $param->EmailAddress = "[EMAIL PROTECTED]"; no
problem.
If it is dynamic $param->EmailAddress = "$e"; Problem:
Fatal error: Uncaught SoapFault exception: [soap:Server] Server was
unable to process request. --> Index was outside the bounds of the array.
in c:\Inetpub\wwwroot\walter\index.php:52
Stack trace:
#0 c:\Inetpub\wwwroot\walter\index.php(52):
SoapClient->__call('IsValidEMail', Array)
#1 c:\Inetpub\wwwroot\walter\index.php(52):
SoapClient->IsValidEMail(Object(stdClass))
#2 {main}
thrown in c:\Inetpub\wwwroot\walter\index.php on line 52
Reproduce code:
---------------
<?
if(!empty($_REQUEST['email'])){
$WSDL='http://www.webservicex.net/ValidateEmail.asmx?WSDL';
$soapclient = new SoapClient($WSDL);
echo "<br><pre>";
$e = trim($_REQUEST['email']);
$arr = array();
$arr['EmailAddress'] = "$e";
$res = $soapclient->IsValidEMail($arr);
print_r($res);
echo "<hr>";
if(!empty($res->IsValidEMailResult))
echo "$e Is eMail";
else
echo "$e Is No eMail";
echo "</pre><br>";
}
?>
Expected result:
----------------
I wrote everything in the Description.
Actual result:
--------------
I wrote everything in the Description.
Fatal error: Uncaught SoapFault exception: [soap:Server] Server was
unable to process request. --> Index was outside the bounds of the array.
in c:\Inetpub\wwwroot\walter\index.php:52
Stack trace:
#0 c:\Inetpub\wwwroot\walter\index.php(52):
SoapClient->__call('IsValidEMail', Array)
#1 c:\Inetpub\wwwroot\walter\index.php(52):
SoapClient->IsValidEMail(Object(stdClass))
#2 {main}
thrown in c:\Inetpub\wwwroot\walter\index.php on line 52
--
Edit bug report at http://bugs.php.net/?id=33659&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33659&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=33659&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=33659&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33659&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33659&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33659&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33659&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33659&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33659&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33659&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=33659&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=33659&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33659&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33659&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33659&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33659&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33659&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33659&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33659&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33659&r=mysqlcfg