#32455 [Asn->Fbk]: wrong setting property to unseted value
| From: | dmitry@php.net | Date: | Wed, 20 Apr 2005 14:28:07 +0000 |
| Subject: | #32455 [Asn->Fbk]: wrong setting property to unseted value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-77948@lists.php.net to get a copy of this message | ||
ID: 32455
Updated by: dmitry@php.net
Reported By: becicka at aarongroup dot cz
-Status: Assigned
+Status: Feedback
Bug Type: SOAP related
PHP Version: 5CVS-2005-03-31
Assigned To: dmitry
New Comment:
I need to look into WSDL file to understand the bug.
Can you email it to me.
Previous Comments:
------------------------------------------------------------------------
[2005-04-03 18:25:11] tony2001@php.net
Assigning to the maintainer.
------------------------------------------------------------------------
[2005-04-01 10:58:10] becicka at aarongroup dot cz
I try this (http://snaps.php.net/php5-latest.tar.gz) and there are the
same situation.
------------------------------------------------------------------------
[2005-03-25 23:34:17] sniper@php.net
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
------------------------------------------------------------------------
[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