6.0.0-beta1
8/10/25

[#4549] PHP4: str_split is missing in lib/Horde/IMAP/ACL/rfc2086.php
Summary PHP4: str_split is missing in lib/Horde/IMAP/ACL/rfc2086.php
Queue Horde Framework Packages
Queue Version FRAMEWORK_3
Type Bug
State Resolved
Priority 2. Medium
Owners
Requester jonathan (at) tietznet (dot) de
Created 10/22/2006 (6867 days ago)
Due
Updated 10/22/2006 (6867 days ago)
Assigned
Resolved 10/22/2006 (6867 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/22/2006 05:57:54 PM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
This is already fixed in CVS.
10/22/2006 05:08:57 PM jonathan (at) tietznet (dot) de Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ PHP4: str_split is missing in lib/Horde/IMAP/ACL/rfc2086.php
Queue ⇒ Horde Framework Packages
Reply to this comment
Hi,



i use php4. In php4 the function str_split is missing, but this func 
is required for lib/Horde/IMAP/ACL/rfc2086.php, so i added this func 
to rfc2086.php:



if(!function_exists('str_split')){

    function str_split($string,$split_length=1){

        $count = strlen($string);

        if($split_length < 1){

            return false;

        } elseif($split_length > $count){

            return array($string);

        } else {

            $num = (int)ceil($count/$split_length);

            $ret = array();

            for($i=0;$i<$num;$i++){

                $ret[] = substr($string,$i*$split_length,$split_length);

            }

            return $ret;

        }

    }

}



see http://de.php.net/str_split



horde: 3.1.2

imp: 4.1.1

php: 4.3.10

debian linux

Saved Queries