[horde] mean problem with php 4.2.3 and --enable-mbstr-enc-trans

W. Tasin tasin at fhm.edu
Fri Jan 31 05:01:45 PST 2003

Hello again,

I've found a mean problem with horde and php 4.2.3. On a linux box of 
mine php 4.2.3 compiled with --enable-mbstr-trans-enc was installed.
This caused unpredictable behaviour, because the $_POST variable doesn't 
get the correct values AFAICS if the name of the variable is a hash-array.
So e. g. setting up the layout of the portal with a calendar view didn't 
work for me unless I've recompiled php 4.2.3.

Get (or compile by yourself) a newer version of php or get/compile a php 
4.2.3 without --enable-mbstr-enc-trans

Include a routine to test.php, which checks this behaviour.

-------- For the horde developers: ----------------
I used a patch to log all from a form submission and I got the following 
output on editing the calendar layout-box for the horde portal:
Jan 30 22:02:23 HORDE [debug] [imp] serialize: POST = 
s:1:"l";}} [on line 911 of "/usr/local/httpd/horde/lib/Horde.php"]
instead of
Jan 30 23:25:23 HORDE [debug] [imp] serialize: POST = 
s:1:"__all";}} [on line 911 of "/usr/local/httpd/horde/lib/Horde.php"]
as you can see the value="__all" from name="params[calendar]" was 
truncated to value="l"

This problem is known to the php people (see 
http://bugs.php.net/bug.php?id=19554), but it wasn't for me ;-)

If this was obvious to the list, so sorry about the noise.



<Key-Fingerprint: 1610 835F 0080 32F4 6140  6CF7 A7D0 44CD 7961A645>

More information about the horde mailing list