FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17546&edit=1

ID: 17546
Updated by: danielc@analysisandsolutions.com
Reported By: michal dot hegyi at gmail dot com
Summary: split() deprecated in php 5.3
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: XML_RPC
Operating System: RHEL 5.0
Package Version: 1.5.3
PHP Version: 5.3.2
-Assigned To:
+Assigned To: danielc
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: danielc
Fixed in version 1.5.4 which was released a moment ago.


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

[2010-07-01 15:59:39] mhegyi

Description:
------------
'm writing you with a wish to make a small change in XML_RPC pear
library. As you maybe know split(/) is deprecated starting with 5.3

Would it be possible to change

//$r->hdrs = split("\r?\n", $XML_RPC_xh[$parser]['ha'][1]);

into

$r->hdrs = preg_split("/\r?\n/", $XML_RPC_xh[$parser]['ha'][1]);

in /usr/shared/pear/XML/RPC.php

Test script:
---------------
after using xml_rpc pear package in PHP 5.3 a deprecated usage of
function split() is reported

Expected result:
----------------
use preg_split instead

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJul 3, '10 at 5:28p
activeJul 3, '10 at 5:28p
posts1
users1
websitepear.php.net

1 user in discussion

Danielc: 1 post

People

Translate

site design / logo © 2022 Grokbase