|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-06 17:07 UTC] rrichards@php.net
[2004-09-07 08:23 UTC] luis at infomed dot sld dot cu
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 23:00:01 2025 UTC |
Description: ------------ php complains about string not being valid utf-8. Now the code works with 5.0.0 compiled against libxml2-2.6.13 but not with 5.0.1. It's the function xmlCheckUTF8 (in libxml2) that returns the value causing the error message. Reproduce code: --------------- <?php $client = new SoapClient("http://xml.whereisthatip.com/ip-location-service.wsdl"); $queryresult = $client->getLocationRequest("192.48.96.9"); echo "$queryresult\n";; ?> Expected result: ---------------- US Actual result: -------------- Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] SOAP-ERROR: Encoding: string '192.48.96.9' is not a valid utf-8 string in /data/www/PRO/html/pcs/test.php:5 Stack trace: #0 /data/www/PRO/html/pcs/test.php(5): SoapClient->getLocationRequest('getLocationRequ...', Array) #1 {main} thrown in /data/www/PRO/html/pcs/test.php on line 5