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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rg at mejoramos dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 13:01:35 2025 UTC