Home » Web Services » SOAP » Bug #6636
WSDL.php lines 673 and 680 need escaping
Details
| Submitted | 2006-01-31 05:04 UTC |
|---|---|
| From | robin dot percy at digitalvariance dot com |
| Assigned | yunosh |
| Status | Bogus |
| Package | SOAP |
| PHP Version | 5.1.1 |
| OS | RHEL |
| Roadmaps | (Not assigned) |
Comments
[2006-01-31 05:04 UTC] robin dot percy at digitalvariance dot com
Description:
------------
On lines 673 and 680 of [$PearDir]/SOAP/WSDL.php, the string to be eval'd is interpolating the $result variable - resulting in a syntax error in the resulting code. I'm assuming the variable is supposed to be escaped.
Test script:
---------------
<?php
/*
Replace the GoogleSearch.wsdl with whatever you have available
*/
require_once('SOAP/Client.php');
$wsdl = new SOAP_WSDL('GoogleSearch.wsdl');
echo $wsdl->generateProxyCode();
?>
Expected result:
----------------
...
notice the missing var in the assignment and again in the return.
function &doGetCachedPage($key, $url)
{
= $this->call('doGetCachedPage',
$v = array('key' => $key, 'url' => $url),
array('namespace' => 'urn:GoogleSearch',
'soapaction' => 'urn:GoogleSearchAction',
'style' => 'rpc',
'use' => 'encoded'));
return ;
}