php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75281 xmlrpc_encode_request fail with CAPITAL string multibyte
Submitted: 2017-09-29 02:24 UTC Modified: 2018-06-24 04:25 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: rg at mejoramos dot com Assigned: cmb (profile)
Status: No Feedback Package: mbstring related
PHP Version: 7.0.24 OS: ANY
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
39 + 30 = ?
Subscribe to this entry?

 
 [2017-09-29 02:24 UTC] rg at mejoramos dot com
Description:
------------
Hi.

My script XMLRPC work fine, even with multibyte string.
But when I used CAPITAL strings (multibyte),
PHP broken.

Example:

(send by GET or POST a sample string as "My string target is ññ and ÑÑ") you obtain this:

<?php
	$MSJ = xmlrpc_encode_request('manarchi', $_GET, ARRAY('XML'));
	echo html_entity_decode($MSJ, NULL, 'ISO-8859-1');
?>

output:
---------------------------
My string target is ññ and ?&#145;?&#145;
---------------------------

correct output:
---------------------------
My string target is ññ and ÑÑ
---------------------------

then you obtain fine the FIRST letters (ññ), but capital ÑÑ is wrong.

you can see, fail only with CAPITAL strings.

Thanks by review, really I need capital letters in my program.

Regards.

Test script:
---------------
Hi.

My script XMLRPC work fine, even with multibyte string.
But when I used CAPITAL strings (multibyte),
PHP broken.

Example:

(send by GET or POST a sample string as "My string target is ññ and ÑÑ") you obtain this:

<?php
	$MSJ = xmlrpc_encode_request('manarchi', $_GET, ARRAY('XML'));
	echo html_entity_decode($MSJ, NULL, 'ISO-8859-1');
?>

output:
---------------------------
My string target is ññ and ?&#145;?&#145;
---------------------------

correct output:
---------------------------
My string target is ññ and ÑÑ
---------------------------

then you obtain fine the FIRST letters (ññ), but capital ÑÑ is wrong.

you can see, fail only with CAPITAL strings.

Thanks by review, really I need capital letters in my program.

Regards.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-03-19 13:00 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2018-03-19 13:00 UTC] cmb@php.net
What is the value of $MSJ?  Please do

  var_dump($MSJ);
 [2018-06-24 04:25 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 06:01:33 2024 UTC