#46792 [Opn->Asn]: SoapFault detail property missing
| From: | felipe@php.net | Date: | Wed, 31 Dec 2008 17:39:14 +0000 |
| Subject: | #46792 [Opn->Asn]: SoapFault detail property missing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132457@lists.php.net to get a copy of this message | ||
ID: 46792
Updated by: felipe@php.net
Reported By: daniel dot oconnor at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: SOAP related
Operating System: Windows
PHP Version: 5.2.7
-Assigned To:
+Assigned To: dmitry
New Comment:
Hi Dmitry, any objection?
http://felipe.ath.cx/diff/bug46792.diff
Previous Comments:
------------------------------------------------------------------------
[2008-12-08 00:06:24] daniel dot oconnor at gmail dot com
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 this bug report at http://bugs.php.net/?id=46792&edit=1