PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Web Services » SOAP » Bug #6601

eval() error

Details

Submitted2006-01-26 20:43 UTC
Fromjwalker at openconsultants dot net
Assignedyunosh
StatusBogus
PackageSOAP
PHP Version5.0.5
OSDebian GNU/Linux 3.1
Roadmaps(Not assigned)

Comments

[2006-01-26 20:43 UTC] jwalker at openconsultants dot net

Description:
------------
SOAP-0.9.1 appears to return the expected result. Installing SOAP-0.9.2 returns the error posted below. This is my first attempt at using PEAR::SOAP, but I'm reasonably sure that this is an error in PEAR::SOAP as this code is pretty much cut and paste from http://www.onlamp.com/pub/a/php/2003/07/03/php_amazon_soap.html

Test script:
---------------
require_once 'SOAP/Client.php';

$wsdl_url =
'http://soap.amazon.com/schemas3/AmazonWebServices.wsdl';
$WSDL = new SOAP_WSDL($wsdl_url);
$client = $WSDL->getProxy();

$params = array(
'manufacturer' => "O'Reilly",
'mode' => 'books',
'sort' => '+title',
'page' => 1,
'type' => 'lite',
'tag' => 'trachtenberg-20',
'devtag' => 'XXXXXXXXXXXXXX',
);

$books = $client->ManufacturerSearchRequest($params);
print isset($books) . "\n";

Expected result:
----------------
1

Actual result:
--------------
PHP Notice: Undefined variable: result in /usr/share/php/SOAP/WSDL.php on line 673
PHP Notice: Undefined variable: result in /usr/share/php/SOAP/WSDL.php on line 680
PHP Notice: Undefined variable: result in /usr/share/php/SOAP/WSDL.php on line 673
PHP Notice: Undefined variable: result in /usr/share/php/SOAP/WSDL.php on line 680
...repeat several dozen times...
PHP Notice: Undefined variable: result in /usr/share/php/SOAP/WSDL.php on line 673
PHP Notice: Undefined variable: result in /usr/share/php/SOAP/WSDL.php on line 680
PHP Parse error: parse error, unexpected '=' in /usr/share/php/SOAP/WSDL.php(727) : eval()'d code on line 12PHP Fatal error: Class 'WebService_AmazonSearchService_AmazonSearchPort' not found in /usr/share/php/SOAP/WSDL.php on line 729

[2006-01-26 23:18 UTC] jwalker at openconsultants dot net

Care to direct me to the bug id that this is a duplicate of? Most bug trackers would do this for a dupe but it appears this one does not, unless I am missing something.

Thank you for your time.