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 #6554

Parse error unexpected '=' in SOAP/WSDL.php (727) : eval()'d code on line 13

Details

Submitted2006-01-22 23:46 UTC
Fromjmetillon at gmail dot com
Assignedyunosh
StatusBogus
PackageSOAP
PHP Version4.3.7
OSLinux box 2.4.31
Roadmaps(Not assigned)

Comments

[2006-01-22 23:46 UTC] jmetillon at gmail dot com

Description:
------------
PEAR version: 1.4.6
SOAP version: 0.9.2

I encounter a parse error unexpected '=' in the WSDL.php file, on line 727, witch reads:

eval($proxy);

So I echo the $proxy variable and I get this:
http://pastebin.com/518257

Line 727 is highlighted.
One can see that it begins with a '='.
Maybe it's a PHP5 new coding style? Anyway, my PHP 4.3.7 doesn't understand it.

Test script:
---------------
http://pastebin.com/518268

Expected result:
----------------
I expected a connection to the web service using the $proxy informations.

Actual result:
--------------
Parse error: unexpected '=' in SOAP/WSDL.php (727) : eval()'d code on line 13

[2006-01-23 00:06 UTC] jmetillon at gmail dot com

I found the potential issue:

In SOAP/WSDL.php, on lines 673 and 680, the $result variable is not correctly escaped.

The actual code is:
http://pastebin.com/518285

And should be:
http://pastebin.com/518287

[2006-01-23 00:44 UTC] turbochris at gmail dot com

I can confirm the bug and the fix works.