#32455 [Opn->Fbk]: wrong setting property to unseted value
| From: | sniper@php.net | Date: | Fri, 25 Mar 2005 22:34:18 +0000 |
| Subject: | #32455 [Opn->Fbk]: wrong setting property to unseted value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75873@lists.php.net to get a copy of this message | ||
ID: 32455
Updated by: sniper@php.net
Reported By: becicka at aarongroup dot cz
-Status: Open
+Status: Feedback
Bug Type: SOAP related
PHP Version: 5.0.3
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-03-25 15:17:10] becicka at aarongroup dot cz
Description:
------------
When I set a object property to unseted variable and than I call a SOAP
function with this paramater, I get message
Fatal error: SOAP-ERROR: Encoding: object hasn't 'name' property .
Reproduce code:
---------------
class Passenger {
var $name;
}
$wsdl =& new SoapClient(WSDL_LOCATION, array("trace" => 1, 'exceptions'
=> 0));
$p = new Passenger;
/* if ($xyz === null) $xyz = null; //if here is this row, it's works
fine otherwise calling SOAP function failed */
$p->name = $xyz; //$xyz is not set!!!
$wsdl->setPassenger($p); //call SOAP function failed
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32455&edit=1