note 75187 added to ref.soap

From: Date: Thu, 17 May 2007 09:22:55 +0000
Subject: note 75187 added to ref.soap
Groups: php.notes 
Request: Send a blank email to php-notes+get-126655@lists.php.net to get a copy of this message
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); } } ---- Server IP: 83.64.128.68 Probable Submitter: 83.13.242.82 ---- Manual Page -- http://www.php.net/manual/en/ref.soap.php Edit -- https://master.php.net/note/edit/75187 Del: integrated -- https://master.php.net/note/delete/75187/integrated Del: useless -- https://master.php.net/note/delete/75187/useless Del: bad code -- https://master.php.net/note/delete/75187/bad+code Del: spam -- https://master.php.net/note/delete/75187/spam Del: non-english -- https://master.php.net/note/delete/75187/non-english Del: in docs -- https://master.php.net/note/delete/75187/in+docs Del: other reasons-- https://master.php.net/note/delete/75187 Reject -- https://master.php.net/note/reject/75187 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126655) next »