Home » Web Services » SOAP » Bug #4847
Fatal error in WSDL
Details
| Submitted | 2005-07-16 21:33 UTC |
|---|---|
| From | 2nd dot step at gmail dot com |
| Assigned | yunosh |
| Status | Closed |
| Package | SOAP |
| PHP Version | 5_1 CVS-2005-07-16 |
| OS | SuSE 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