Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Nov 2005 20:44:37 +1300
From:      Matthew Luckie <mjl@luckie.org.nz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/88481: [patch] lang/php4 4.4.1 and squirrelmail don't play nice
Message-ID:  <E1EXwFZ-0002gT-Gd@lycra.luckie.org.nz>
Resent-Message-ID: <200511040750.jA47oCVs089780@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         88481
>Category:       ports
>Synopsis:       [patch] lang/php4 4.4.1 and squirrelmail don't play nice
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 04 07:50:12 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Matthew Luckie
>Release:        FreeBSD 4.11-RELEASE-p8 i386
>Organization:
University of Waikato
>Environment:
System: FreeBSD lycra.luckie.org.nz 4.11-RELEASE-p8 FreeBSD 4.11-RELEASE-p8 #1: Wed May 11 14:02:09 NZST 2005 root@lycra.luckie.org.nz:/files/freebsd_src/sys/compile/lycra i386


	
>Description:
Squirrelmail doesn't like to read some/many mail messages in my inbox
with

Fatal error: Maximum execution time of 30 seconds exceeded in /usr/local/www/squirrelmail/src/read_body.php on line 98

According to:

http://sourceforge.net/mailarchive/forum.php?thread_id=8871322&forum_id=2995

The bug is fixed in PHP #35067

http://bugs.php.net/bug.php?id=35067

And the patch can be found at:

http://marc.theaimsgroup.com/?l=php-cvs&m=113095430113617&w=2

I have patched my install of 4.4.1 and it all seems to work much better
now.

>How-To-Repeat:
Courier-imap, PHP 4.4.1, Squirrelmail: then read a few messages and see
if you get a timeout.
>Fix:
in CVS, or this is what I used in my lang/php4/files/ directory:

--- ext/standard/basic_functions.c.orig Fri Nov  4 19:42:19 2005
+++ ext/standard/basic_functions.c      Fri Nov  4 19:42:56 2005
@@ -802,8 +802,8 @@
        PHP_FE(prev,                                    first_arg_force_ref)
        PHP_FE(next,                                    first_arg_force_ref)
        PHP_FE(reset,                                   first_arg_force_ref)
-       PHP_FE(current,                                 NULL)
-       PHP_FE(key,                                     NULL)
+       PHP_FE(current,                                 first_arg_force_ref)
+       PHP_FE(key,                                     first_arg_force_ref)
        PHP_FE(min,                                                            NULL)
        PHP_FE(max,                                                            NULL)
        PHP_FE(in_array,                                                       NULL)


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1EXwFZ-0002gT-Gd>