note 75187 deleted from ref.soap by cmb
| From: | cmb@php.net | Date: | Sun, 24 Nov 2019 08:33:38 +0000 |
| Subject: | note 75187 deleted from ref.soap by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213184@lists.php.net to get a copy of this message | ||
Note Submitter: Marcio Annunciato
----
In case your soap response containts an ampersand, in certain cases you might get an
"unterminated entity reference" warning and data might appear truncated (related to bug
#36795?). Maybe there is a more formal fix or setting, but since I couldn't find anything I
came with the following:
class MySoapClient extends SoapClient {
function __doRequest($request, $location, $action, $version) {
$res = parent::__doRequest($request, $location, $action, $version);
$resx = str_replace('&', '&', $res);
print_r($resx);
return ($resx);
}
}