PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » SOAP » Bug #6636

WSDL.php lines 673 and 680 need escaping

Details

Submitted2006-01-31 05:04 UTC
Fromrobin dot percy at digitalvariance dot com
Assignedyunosh
StatusBogus
PackageSOAP
PHP Version5.1.1
OSRHEL
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 ;
}