From: daniel dot oconnor at gmail dot com
Operating system: Windows
PHP version: 5.2.7
PHP Bug Type: SOAP related
Bug description: SoapFault detail property missing
Description:
------------
If you don't supply a detail param in the constructor of SoapFault, the
property doesn't exist.
See also bug #39357
Reproduce code:
---------------
<?php
$sf = new SoapFault(null, null, null, "Details!");
var_dump($sf);
$sf = new SoapFault(null, null);
var_dump($sf);
Expected result:
----------------
Both objects define a detail property
Actual result:
--------------
object(SoapFault)#1 (8) {
["message:protected"]=>
string(0) ""
["string:private"]=>
string(0) ""
["code:protected"]=>
int(0)
["file:protected"]=>
string(17) "C:\soap_fault.php"
["line:protected"]=>
int(2)
["trace:private"]=>
array(0) {
}
["faultstring"]=>
string(0) ""
["detail"]=>
string(8) "Details!"
}
object(SoapFault)#2 (7) {
["message:protected"]=>
string(0) ""
["string:private"]=>
string(0) ""
["code:protected"]=>
int(0)
["file:protected"]=>
string(17) "C:\soap_fault.php"
["line:protected"]=>
int(6)
["trace:private"]=>
array(0) {
}
["faultstring"]=>
string(0) ""
}
--
Edit bug report at http://bugs.php.net/?id=46792&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=46792&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=46792&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=46792&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=46792&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=46792&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=46792&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=46792&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=46792&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=46792&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=46792&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=46792&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=46792&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=46792&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=46792&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46792&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46792&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=46792&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=46792&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=46792&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=46792&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=46792&r=mysqlcfg