6.0.0-beta1
7/6/25

[#9354] Incomaptible with php 5.3.3
Summary Incomaptible with php 5.3.3
Queue Horde Groupware Webmail Edition
Queue Version 1.2.8
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester thiemo (at) gelassene-pferde (dot) biz
Created 10/31/2010 (5362 days ago)
Due
Updated 03/18/2011 (5224 days ago)
Assigned
Resolved 11/05/2010 (5357 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/18/2011 01:23:37 PM Michael Rubinsky Comment #7 Reply to this comment
...or you could just wait for the release of Horde 4 in April, which 
is PHP 5 native.
03/18/2011 12:51:35 PM colan (at) openject (dot) com Comment #6 Reply to this comment
I'm not sure that suppressing deprecation warnings is the best 
solution here.  That's treating a symptom instead of the root cause.

The code should be updated to match the latest standards in PHP, but 
as this will affect PHP before 5.3, I recommend the following:

Create a new PHP 5.3 branch.  Any contributed patches to fix this 
problem will be committed in that branch.  Those of use that are 
running 5.3 can choose to merge this branch into our installation if 
we choose.  If there's ever a point in the future that PHP versions 
below 5.3 are no longer supported, we can simply merge the PHP 5.3 
branch into master.

I'll happily submit patches for this if this issue gets reopened.
11/05/2010 02:15:55 PM Jan Schneider Comment #5
State ⇒ Not A Bug
Priority ⇒ 1. Low
Reply to this comment
Or properly configure your PHP, then you don't have to hack around in 
the code.
11/05/2010 02:11:03 PM tyroneyeh (at) siryeh (dot) com Comment #4 Reply to this comment
this problem is use "&new class"
change all php file use "&new" to "new" can fix this problem.
10/31/2010 07:38:40 PM thiemo (at) gelassene-pferde (dot) biz Comment #3 Reply to this comment

[Show Quoted Text - 212 lines]
Put as work around to the fatal error in line 104 of file lib/Horde/Date.php:
        date_default_timezone_set('Europe/Berlin');

10/31/2010 07:30:12 PM arjen+horde (at) de-korte (dot) org Comment #2 Reply to this comment
This is not an incompatibility. There is a fatal that needs to be 
dealt with. Add

      date.timezone = Europe/Berlin

to your php.ini file and you'll be fine.
10/31/2010 07:15:59 PM thiemo (at) gelassene-pferde (dot) biz Comment #1
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Incomaptible with php 5.3.3
Queue ⇒ Horde Groupware Webmail Edition
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
I get a huge bunch of deprecation messages - if I turn on error 
reporting in php that is, if not the screen remaines blank.

However, navigating to imp/login.php results in:
Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/lib/Horde/History.php on 
line 244 Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/kronolith/lib/Driver.php on 
line 201 Deprecated: Assigning the return value of new by reference is 
deprecated in 
/var/www/localhost/htdocs/gw/kronolith/lib/Driver/sql.php on line 352 
Deprecated: Assigning the return value of new by reference is 
deprecated in 
/var/www/localhost/htdocs/gw/kronolith/lib/Driver/sql.php on line 373 
Deprecated: Assigning the return value of new by reference is 
deprecated in 
/var/www/localhost/htdocs/gw/kronolith/lib/Driver/sql.php on line 402 
Deprecated: Assigning the return value of new by reference is 
deprecated in 
/var/www/localhost/htdocs/gw/kronolith/lib/Driver/sql.php on line 456 
Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/lib/Horde/Share.php on line 
117 Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/lib/Horde/Share/sql.php on 
line 214 Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/lib/Horde/Share/sql.php on 
line 276 Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/lib/Horde/Share/sql.php on 
line 349 Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/lib/Horde/Share/sql.php on 
line 421 Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/lib/Horde/Share/sql.php on 
line 526 Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/lib/Horde/Share/sql.php on 
line 571 Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/pear/php/MDB2.php on line 
393 Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/pear/php/MDB2.php on line 
2647 Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/lib/Horde/Maintenance.php 
on line 140 Deprecated: Assigning the return value of new by reference 
is deprecated in 
/var/www/localhost/htdocs/gw/lib/Horde/Maintenance.php on line 334 
Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/lib/Horde/Maintenance.php 
on line 430 Deprecated: Assigning the return value of new by reference 
is deprecated in /var/www/localhost/htdocs/gw/lib/Horde/Group.php on 
line 158 Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/lib/Horde/Group.php on line 
641 Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/nag/lib/Driver.php on line 
134 Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/nag/lib/Driver.php on line 
137 Deprecated: Assigning the return value of new by reference is 
deprecated in /var/www/localhost/htdocs/gw/nag/lib/Driver.php on line 
140 Fatal error: Uncaught exception 'Exception' with message 
'DateTime::__construct(): It is not safe to rely on the system's 
timezone settings. You are *required* to use the date.timezone setting 
or the date_default_timezone_set() function. In case you used any of 
those methods and you are still getting this warning, you most likely 
misspelled the timezone identifier. We selected 'Europe/Berlin' for 
'CET/1,0/no DST' instead' in 
/var/www/localhost/htdocs/gw/lib/Horde/Date.php:537 Stack trace: #0 
/var/www/localhost/htdocs/gw/lib/Horde/Date.php(537): 
DateTime->__construct() #1 
/var/www/localhost/htdocs/gw/lib/Horde/Date.php(588): 
Horde_Date->format('Y-m-d H:i:s') #2 
/var/www/localhost/htdocs/gw/lib/Horde/Alarm/sql.php(143): 
Horde_Date->sqlDateTime() #3 
/var/www/localhost/htdocs/gw/lib/Horde/Alarm.php(275): 
Horde_Alarm_sql->_list(false, Object(Horde_Date)) #4 
/var/www/localhost/htdocs/gw/lib/Horde/Alarm.php(301): 
Horde_Alarm->listAlarms(false, NULL, true, true) #5 
/var/www/localhost/htdocs/gw/lib/Horde/Notification.php(209): Hor in 
/var/www/localhost/htdocs/gw/lib/Horde/Date.php on line 537


test.php shows:
Horde Version

     * Horde: 3.3.10

Horde Applications

     * Dimp: H3 (1.1.6)
     * Horde: 3.3.10
     * Imp: H3 (4.3.9) (run Imp tests)
     * Ingo: H3 (1.2.5) (run Ingo tests)
     * Kronolith: H3 (2.3.5) (run Kronolith tests)
     * Mimp: H3 (1.1.3)
     * Mnemo: H3 (2.2.4)
     * Nag: H3 (2.3.6)
     * Turba: H3 (2.3.5) (run Turba tests)

PHP Version

     * View phpinfo() screen
     * View loaded extensions
     * PHP Version: 5.3.3-pl1-gentoo
     * PHP Major Version: 5.3
     * PHP Minor Version: 3
     * PHP Subminor Version: pl1-gentoo
     * PHP Version Classification: release
     * This version of PHP has not been fully tested with this version 
of Horde.

PHP Module Capabilities

     * Ctype Support: Yes
     * DOM XML Support: Yes
     * FTP Support: Yes
     * GD Support: Yes
     * Gettext Support: Yes
     * GeoIP Support (via PECL extension): No
       Horde can optionally use the GeoIP extension to provide faster 
country name lookups.
     * Iconv Support: Yes
     * GNU Iconv Support: Yes
     * IMAP Support: Yes
     * Imagick Library: Yes
     * JSON Support: Yes
     * LDAP Support: Yes
     * LZF Compression Support: No
       If the lzf PECL module is available, Horde can compress some 
cached data in your session to make your session size smaller.
     * Mbstring Support: Yes
     * PCRE Support: Yes
     * PCRE UTF-8 Support: Yes
     * Mcrypt Support: Yes
     * memcached Support (memcache): No
       The memcache PECL module is only needed if you are using a 
memcached server for caching or sessions. See horde/docs/INSTALL for 
information on how to install PECL/PHP extensions.
     * MIME Magic Support (fileinfo): Yes
     * MIME Magic Support (mime_magic): No
       The fileinfo PECL module (see above) or the mime_magic PHP 
extension will most likely provide faster MIME Magic lookups than the 
built-in Horde PHP magic code. See horde/docs/INSTALL for information 
on how to install PECL/PHP extensions.
     * MySQL Support: Yes
     * OpenSSL Support: Yes
     * PostgreSQL Support: Yes
     * Session Support: Yes
     * XML Support: Yes
     * Zlib Support: Yes

Miscellaneous PHP Settings

     * magic_quotes_runtime disabled: Yes
     * memory_limit value: 128M
       If PHP's internal memory limit is not set high enough Horde 
will not be able to handle large data items (e.g. large mail 
attachments in IMP). You should set the value of memory_limit in 
php.ini to a sufficiently high value - at least 64M is recommended.
     * safe_mode disabled: Yes
     * session.use_trans_sid disabled: Yes
     * session.auto_start disabled: Yes
     * zlib.output_compression disabled: Yes
     * zend_accelerator.compress_all disabled: Yes

File Uploads

     * file_uploads enabled: Yes
     * upload_max_filesize: 12M
     * post_max_size: 8M
       This value should be several times the expect largest upload 
size (notwithstanding any upload limits present in an application). 
Any upload that exceeds this size will cause any state information 
sent along with the uploaded data to be lost. This is a PHP limitation 
and can not be worked around.

Required Horde Configuration Files

     * config/conf.php: Yes
     * config/mime_drivers.php: Yes
     * config/nls.php: Yes
     * config/prefs.php: Yes
     * config/registry.php: Yes

PHP Sessions

     * Session counter: 3
     * To unregister the session: click here

PEAR

     * PEAR Search Path (PHP's include_path):   
/var/www/localhost/htdocs/horde-webmail-1.2.8/lib:/var/www/localhost/htdocs/horde-webmail-1.2.8/lib/../pear/php
     * PEAR: Yes
     * Recent PEAR: Yes
     * Mail: Yes
     * Mail_Mime: Yes
     * Mail_mimeDecode: Yes
     * Log: Yes
     * DB: Yes
     * MDB2: Yes
     * Net_Socket: Yes
     * Date: Yes
     * Auth_SASL: Yes
     * HTTP_Request: Yes
     * HTTP_WebDAV_Server: Yes
     * Net_SMTP: Yes
     * Services_Weather: Yes
     * Cache: Yes
     * XML_Serializer: Yes
     * Net_DNS: Yes

Saved Queries