wrong setting property to unset value
| Bug #32455 | wrong setting property to unset value | ||||
|---|---|---|---|---|---|
| Submitted: | 2005-03-25 15:17 UTC | Modified: | 2005-10-11 12:16 UTC | ||
| From: | becicka at aarongroup dot cz | Assigned: | dmitry (profile) | ||
| Status: | Closed | Package: | SOAP related | ||
| PHP Version: | 5CVS-2005-03-31 | OS: | * | ||
| Private report: | No | CVE-ID: | None | ||
[2005-03-25 15:17 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-04-20 16:28 UTC] dmitry@php.net
[2005-06-20 10:15 UTC] becicka at aarongroup dot cz