Doc #67648 [NEW]: SoapFault has undocumented properties

From: Date: Fri, 18 Jul 2014 09:16:12 +0000
Subject: Doc #67648 [NEW]: SoapFault has undocumented properties
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11384@lists.php.net to get a copy of this message
From: requinix Operating system: PHP version: Irrelevant Package: SOAP related Bug Type: Documentation Problem Bug description:SoapFault has undocumented properties Description: ------------ SoapFault may set properties on itself according to values passed in through the constructor. These values are not documented and not part of the class "definition", and when set are publicly accessible. At the very least the documentation should be updated to reflect the six potential properties. A step beyond that would be to consider adding getter methods, like Exception classes typically have. The properties could then be kept private, though that would be a bit of a BC break (even if it was undocumented). See also - bug #55567 SoapFault is missing methods to get the Fault Code - bug #67641 SoapFault Traversable ? [has a couple relevant comments] Test script: --------------- (copied from http://php.net/manual/en/class.soapfault.php#97875) <?php try { throw new SoapFault('code', 'string', 'actor', 'detail', 'name', 'header'); } catch (Exception $ex) { var_dump($ex->faultcode, $ex->faultstring, $ex->faultactor, $ex->detail, $ex->_name, $ex->headerfault); } ?> -- Edit bug report at https://bugs.php.net/bug.php?id=67648&edit=1 --

« previous php.doc.bugs (#11384) next »