#32455 [Fbk->Opn]: wrong setting property to unseted value

From: Date: Fri, 01 Apr 2005 08:58:11 +0000
Subject: #32455 [Fbk->Opn]: wrong setting property to unseted value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-77236@lists.php.net to get a copy of this message
ID: 32455 User updated by: becicka at aarongroup dot cz Reported By: becicka at aarongroup dot cz -Status: Feedback +Status: Open Bug Type: SOAP related PHP Version: 5.0.3 New Comment: I try this (http://snaps.php.net/php5-latest.tar.gz) and there are the same situation. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#77236) next »