Search
j0ke.net Open Build Service
>
Projects
>
server:messaging
>
php-pear-xmpphp
> xmpphp-php53.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File xmpphp-php53.patch of Package php-pear-xmpphp
--- XMPPHP/Roster.php.orig 2012-09-05 17:00:19.279794943 +0200 +++ XMPPHP/Roster.php 2012-09-05 17:00:49.815796105 +0200 @@ -118,7 +118,7 @@ * @param string $status */ public function setPresence($presence, $priority, $show, $status) { - list($jid, $resource) = split("/", $presence); + list($jid, $resource) = explode("/", $presence); if ($show != 'unavailable') { if (!$this->isContact($jid)) { $this->addContact($jid, 'not-in-roster'); @@ -137,7 +137,7 @@ * @param string $jid */ public function getPresence($jid) { - $split = split("/", $jid); + $split = explode("/", $jid); $jid = $split[0]; if($this->isContact($jid)) { $current = array('resource' => '', 'active' => '', 'priority' => -129, 'show' => '', 'status' => ''); //Priorities can only be -128 = 127 --- XMPPHP/XMLStream.php.orig 2012-09-05 17:00:29.075798243 +0200 +++ XMPPHP/XMLStream.php 2012-09-05 17:00:59.547794468 +0200 @@ -263,7 +263,7 @@ $ns_tags = array($xpath); } foreach($ns_tags as $ns_tag) { - list($l, $r) = split("}", $ns_tag); + list($l, $r) = explode("}", $ns_tag); if ($r != null) { $xpart = array(substr($l, 1), $r); } else {