[PEAR-BUG] Bug #17837 [Opn->Csd]: degraded by BUG #2521

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=17837&edit=1

 ID:               17837
 Updated by:       [email protected]
 Reported By:      take-ono at advanet dot co dot jp
 Summary:          degraded by BUG #2521
-Status:           Open
+Status:           Closed
 Type:             Bug
 Package:          XML_RPC
 Operating System: FreeBSD
 Package Version:  1.5.4
 PHP Version:      4.4.8
-Assigned To:      
+Assigned To:      danielc
 Roadmap Versions: 
 New Comment:

-Status:      Open
+Status:      Closed
-Assigned To:
+Assigned To: danielc
Set XML_RPC_Message::$remove_extra_lines to FALSE to disable line
removal.


Previous Comments:
------------------------------------------------------------------------

[2010-09-01 03:09:04] takeono

Description:
------------
continuous newline codes are pruned because of createPayload()@RPC.php

perhaps degraded when fixing bug #2521.
@see http://pear.php.net/bugs/bug.php?id=2521

XML_RPC-1.1.0 stable is valid. (Expected result captured from)
From 1.2.0RC1 to 1.5.4(stable) are broken.

Thanks,

Test script:
---------------
<?
$msg = <<<EOF
next line should be empty.

next 2 lines should be empty.


end.
EOF;
require_once 'XML/RPC.php';
$rpc_msg = new XML_RPC_Message('request', array(XML_RPC_encode($msg)));
echo $rpc_msg->serialize();
?>


Expected result:
----------------
<?xml version="1.0"?>
<methodCall>
<methodName>request</methodName>
<params>
<param>
<value><string>next line should be empty.

next 2 lines should be empty.


end.</string></value>
</param>
</params>
</methodCall>


Actual result:
--------------
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>request</methodName>
<params>
<param>
<value><string>next line should be empty.
next 2 lines should be empty.
end.</string></value>
</param>
</params>
</methodCall>

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=17837&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.