From:             kore at mindwipe dot org
Operating system: linux
PHP version:      5.0.1
PHP Bug Type:     SOAP related
Bug description:  SOAP complains about strings not being valid utf-8

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


-- 
Edit bug report at http://bugs.php.net/?id=29999&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29999&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29999&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29999&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=29999&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=29999&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=29999&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=29999&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=29999&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=29999&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=29999&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=29999&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=29999&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=29999&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29999&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=29999&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=29999&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=29999&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29999&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=29999&r=mysqlcfg

Reply via email to