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

Fatal error in WSDL

Details

Submitted2005-07-16 21:33 UTC
From2nd dot step at gmail dot com
Assignedyunosh
StatusClosed
PackageSOAP
PHP Version5_1 CVS-2005-07-16
OSSuSE Linux
Roadmaps(Not assigned)

Comments

[2005-07-16 21:33 UTC] 2nd dot step at gmail dot com

Description:
------------
Adding a __typedef with this flavor
<?php $Array = array(array("item" => "value")) ?>
results in a Parser error.

Fatal error: Only variables can be passed by reference in /home/***/pear/SOAP/WSDL.php on line 1909

My Solution
Change Line 1909 && 1910
<?php
reset(current($typeValue)); list($nsPrefix, $typeName) = $this->_getTypeNs(current(current($typeValue)));
?>

to

<?php
$typeValue = array_shift($object->__typedef[$typeName]);
list($nsPrefix, $typeName) = $this->_getTypeNs($typeValue);
?>

seems to work