php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42887 SOAP-ERROR: Encoding: string
Submitted: 2007-10-08 11:06 UTC Modified: 2007-10-18 09:46 UTC
From: albert dot keil at gmail dot com Assigned:
Status: Closed Package: SOAP related
PHP Version: 5.2.4 OS: FreeBSD 5.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: albert dot keil at gmail dot com
New email:
PHP Version: OS:

 

 [2007-10-08 11:06 UTC] albert dot keil at gmail dot com
Description:
------------
When I try to transfer via soap web service utf-8 encoded (by iconv) string I got the following error 

Trace response:
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string '&#1500;&#1489;&#1491;&#1493;&#1511; &#1502;&#1492; &#1511;&#1493;&#1512;&#1492; &#1506;&#1501; &#1505;&#1496;&#1497;&#1497;&#1492; &#1489;&#1491;&#1493;&#1495; &#1495;&#1513;&#1489;&#1493;&#1504;&#1493;&#1514; &#1502;&#1493;&#1500; &#1491;&#1493;&#1495; &#1492;&#1499;&#1504;&#1505;&#1493;&#1514; </faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

The most strange phenomena is that when I try to pass sub_str($str, 0, 56) string it doesn't work, but substr($str,0,55).substr($str,8) works ! Any suggestions ?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-18 09:46 UTC] albert dot keil at gmail dot com
The reason was wrong usage of substr with utf-8 (instead of mb_substr).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 23 19:01:29 2024 UTC