ID:               33659
 User updated by:  wase1 at gmx dot net
 Reported By:      wase1 at gmx dot net
 Status:           Bogus
 Bug Type:         SOAP related
 Operating System: Win 2K SP 4 + IIS 5.0
 PHP Version:      5.0.4
 New Comment:

sorry, i have to correct something:

This works:
not: $param->EmailAddress = "[EMAIL PROTECTED]";
correct is: $arr['EmailAddress'] = "[EMAIL PROTECTED]";

But this not. $e is not empty!
not: $param->EmailAddress = "$e";
correct is: $arr['EmailAddress'] = "$e";

$email was submitted by Get or Post ==> $e

Thank You!


Previous Comments:
------------------------------------------------------------------------

[2005-07-12 15:21:43] [EMAIL PROTECTED]

Set $e to "blah" and you'll get the same error.
Not PHP bug -> bogus.

------------------------------------------------------------------------

[2005-07-12 14:42:15] wase1 at gmx dot net

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 this bug report at http://bugs.php.net/?id=33659&edit=1

Reply via email to