6.0.0-beta1
9/24/25

[#4209] use of php5's function "str_split()" instead of PHP 4.3.0+ functions
Summary use of php5's function "str_split()" instead of PHP 4.3.0+ functions
Queue Horde Framework Packages
Queue Version FRAMEWORK_3
Type Bug
State Resolved
Priority 3. High
Owners selsky (at) columbia (dot) edu
Requester christian.brandes (at) forschungsgruppe (dot) de
Created 07/26/2006 (7000 days ago)
Due
Updated 07/27/2006 (6999 days ago)
Assigned 07/26/2006 (7000 days ago)
Resolved 07/26/2006 (7000 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/27/2006 08:55:47 AM Jan Schneider Comment #11 Reply to this comment
Can I use horde 3.1.1's version of rfc2086.php in horde 3.1.2 until
the ultimate solution has been released?
Yes.
Does this problem eventually occur in other parts of horde, too?
No.
07/27/2006 08:34:40 AM christian (dot) brandes (at) forschungsgruppe (dot) de Comment #10 Reply to this comment
Can I use horde 3.1.1's version of rfc2086.php in horde 3.1.2 until 
the ultimate solution has been released?

Does this problem eventually occur in other parts of horde, too?
07/26/2006 08:16:37 PM Matt Selsky Comment #9
State ⇒ Resolved
Reply to this comment
Works for me.
07/26/2006 07:39:26 PM Chuck Hagenbuch Comment #8
Assigned to Matt Selsky
State ⇒ Assigned
Reply to this comment
Should be all set; Jan or Matt, will you please verify I didn't break 
anything and then close?
07/26/2006 07:28:01 PM Chuck Hagenbuch Comment #7 Reply to this comment
Okay, so while I feel that it's crazy and irresponsible of debian to 
backport functions across major versions, it's likely to affect a 
number of users. So we need a different solution than str_split, or a 
seperate check for it.
07/26/2006 07:09:18 PM Matt Selsky Comment #6 Reply to this comment
Debian back-patches that function to their PHP 4 package.



package.http://security.debian.org/debian-security/pool/updates/main/p/php4/php4_4.3.10-16.diff.gz
07/26/2006 06:12:47 PM christian (dot) brandes (at) forschungsgruppe (dot) de Comment #5 Reply to this comment
Sorry Chuck, for being a bit newbee:

How do I find out if my PHP install has the imap_getacl function or not?


07/26/2006 06:07:41 PM Chuck Hagenbuch Comment #4 Reply to this comment
No, I use the current official debian sarge packets which are version
4.3.10-16. I have installed them by aptitude.
Where is the config file that I had to define it. And what in detail
should I have defined?
No, the point is that you _shouldn't_ have imap_getacl defined if 
you're using PHP 4. If you do, then the PHP docs are wrong. That's 
what I'm asking you: does your PHP install have the imap_getacl 
function or not?
07/26/2006 06:03:11 PM christian (dot) brandes (at) forschungsgruppe (dot) de Comment #3 Reply to this comment
No, I use the current official debian sarge packets which are version 
4.3.10-16. I have installed them by aptitude.

Where is the config file that I had to define it. And what in detail 
should I have defined?
07/26/2006 05:51:51 PM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
That code block should only be executed with PHP 5, though - 
imap_getacl is documented as being a php 5-only function. Do you have 
it defined in a PHP 4 install?
07/26/2006 05:29:07 PM christian (dot) brandes (at) forschungsgruppe (dot) de Comment #1
Priority ⇒ 3. High
State ⇒ Unconfirmed
Queue ⇒ Horde Framework Packages
Summary ⇒ use of php5's function "str_split()" instead of PHP 4.3.0+ functions
Type ⇒ Bug
Reply to this comment
PHP 4.3.10

horde 3.1.2

imp H3 4.1.1



The access of options->mail->share folders results in a:

Fatal error: Call to undefined function: str_split() in 
/var/www/horde/lib/Horde/IMAP/ACL/rfc2086.php on line 310



Because of the use of str_split() which is available in PHP 5.

Prerequisity for horde is PHP 4.3.0 or above.



How is it still possible to run Horde with PHP 4.3?






Saved Queries