#32455 [NEW]: wrong setting property to unseted value
| From: | becicka at aarongroup dot cz | Date: | Fri, 25 Mar 2005 14:17:11 +0000 |
| Subject: | #32455 [NEW]: wrong setting property to unseted value | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-75859@lists.php.net to get a copy of this message | ||
From: becicka at aarongroup dot cz
Operating system:
PHP version: 5.0.3
PHP Bug Type: SOAP related
Bug description: wrong setting property to unseted value
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 bug report at http://bugs.php.net/?id=32455&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32455&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32455&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32455&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32455&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32455&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32455&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32455&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32455&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32455&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32455&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32455&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32455&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32455&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32455&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32455&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32455&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32455&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32455&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32455&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32455&r=mysqlcfg