Bug #37952 php errors
Submitted: 7 Jul 2008 22:21 Modified: 7 Jul 2008 22:52
Reporter: Normando Hall Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Eventum Severity:S2 (Serious)
Version:cvs OS:Any
Assigned to: CPU Architecture:Any
Tags: php errors

[7 Jul 2008 22:21] Normando Hall
Description:
I have installed the last cvs version. When finish the install, and try to login I receive this error:

Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/e-smith/files/ibays/terceros/html/include/class.misc.php on line 44

How to repeat:
Install last devel version

Environment:

PHP:
[root@servidor-digital ~]# php -v
PHP 4.4.8 with Suhosin-Patch 0.9.6 (cli) (built: Feb 23 2008 11:33:55)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    with eAccelerator v0.9.5.2, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
    with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by ionCube Ltd.

PEAR PACKAGES:
[root@servidor-digital ~]# pear list
Installed packages, channel pear.php.net:
=========================================
Package           Version  State
Archive_Tar       1.3.2    stable
Auth_SASL         1.0.2    stable
Benchmark         1.2.7    stable
Cache             1.5.5RC4 beta
Console_Getopt    1.2.3    stable
DB                1.7.13   stable
Date              1.4.7    stable
File              1.3.0    stable
Fileinfo          1.0.4    stable
HTTP              1.4.0    stable
HTTP_Request      1.4.2    stable
LZF               1.4      stable
Log               1.11.0   stable
MDB               1.3.0    stable
MDB2              2.4.1    stable
MDB2_Driver_mysql 1.4.1    stable
MDB2_Driver_pgsql 1.4.1    stable
Mail              1.1.14   stable
Mail_Mime         1.5.2    stable
Mail_mimeDecode   1.5.0    stable
Net_DIME          0.3      beta
Net_FTP           1.3.7    stable
Net_POP3          1.3.6    stable
Net_SMTP          1.3.1    stable
Net_Sieve         1.1.6    stable
Net_Socket        1.0.8    stable
Net_URL           1.0.15   stable
PEAR              1.7.2    stable
SOAP              0.11.0   beta
Services_Weather  1.4.3    stable
Structures_Graph  1.0.2    stable
Text_Diff         1.0.0    stable
Text_Wiki         1.2.0    stable
XML_Parser        1.2.8    stable
XML_RPC           1.5.1    stable
XML_Serializer    0.18.0   beta
XML_Util          1.1.4    stable
json              1.2.1    stable

Suggested fix:
This is not a suggested fix. This is MY fix. (I know this truncate a function)

I revert the changes made from:

http://svn.mysql.com/fisheye/browse/eventum-gpl/eventum/include/class.misc.php?r1=3583&r2=...
and
http://svn.mysql.com/fisheye/browse/eventum-gpl/eventum/include/class.template.php?r1=3555...
[7 Jul 2008 22:42] Normando Hall
Sorry about the bug. Recently I read the new requirement is PHP 5.1.0

http://eventum.mysql.org/wiki/index.php?title=Prerequisites&diff=0&oldid=1967
[7 Jul 2008 22:52] Normando Hall
Only for information. Also give me email errors when try to process queue:

Fatal error: Call to undefined function: iconv_mime_decode() in ....../include/class.mime_helper.php on line 637

because ICONV_MIME_DECODE_CONTINUE_ON_ERROR is only in php 5