Dear list members,
PHP 5.4.0 released!
http://www.php.net/archive/2012.php#id2012-03-01-1
I have make a naive change for roundcube.
install php 5.4.0 change nginx to new 5.4.0 php-fpm instanze try to use roundcube.
I was unable to use the rc due to some Server errors.
I got the following messages in my errorlog.
ERROR: [02-Mar-2012 17:36:49 +0100]: IMAP Error: rcube::imap_init(true) is deprecated, use rcube::imap_connect() instead in /home/phpapps/installed/rc06rc/program/include/rcmail.php on line 639 (GET /rc06rc/?_task=settings&_action=plugin.serverinfo)
Could this be the problem?
What I also have seen are the following entries.
#### [02-Mar-2012 16:37:15 UTC] PHP Strict Standards: Non-static method PEAR::setErrorHandling() should not be called statically in /home/phpapps/installed/rc06rc/program/include/iniset.php on line 131
[02-Mar-2012 16:37:15 UTC] PHP Strict Standards: Declaration of html_hiddenfield::show() should be compatible with html::show() in /home/phpapps/installed/rc06rc/program/include/html.php on line 377
[02-Mar-2012 16:36:53 UTC] PHP Strict Standards: Declaration of rcube_template::write() should be compatible with rcube_html_page::write($templ = '', $base_path = '') in /home/phpapps/installed/rc06rc/program/include/rcube_template.php on line 32 ###
a lot of MDB2 lines. ### [02-Mar-2012 16:37:16 UTC] PHP Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/phpapps/installed/rc06rc/program/include/rcube_mdb2.php on line 713 [02-Mar-2012 16:37:16 UTC] PHP Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/phpapps/installed/rc06rc/program/lib/MDB2/Driver/mysql.php on line 1698 ... [02-Mar-2012 16:37:16 UTC] PHP Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/phpapps/installed/rc06rc/program/lib/MDB2/Driver/Datatype/Common.php on line 1227 ... [02-Mar-2012 16:37:16 UTC] PHP Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/phpapps/installed/rc06rc/program/lib/MDB2/Driver/mysql.php on line 1656 ... [02-Mar-2012 16:37:16 UTC] PHP Strict Standards: Only variables should be assigned by reference in /home/phpapps/installed/rc06rc/program/lib/MDB2/Driver/Datatype/Common.php on line 1221 ... ####
Is it worth to try to migrate from MDB2 to PDO, would you accept such patches?
Have anybody else try to use php 5.4?
Best regards Aleks _______________________________________________ List info: http://lists.roundcube.net/dev/ BT/aba52c80
On 03/02/2012 06:05 PM, Aleksandar Lazic wrote:
PHP 5.4.0 released! ERROR: [02-Mar-2012 17:36:49 +0100]: IMAP Error: rcube::imap_init(true) is deprecated, use rcube::imap_connect() instead in /home/phpapps/installed/rc06rc/program/include/rcmail.php on line 639 (GET /rc06rc/?_task=settings&_action=plugin.serverinfo)
Change error_reporting in iniset.php from ini_set('error_reporting', E_ALL&~E_NOTICE); to ini_set('error_reporting', E_ALL &~ (E_NOTICE | E_STRICT));
Is it worth to try to migrate from MDB2 to PDO, would you accept such patches?
Maybe. I don't like MDB2 because of it's bugs and slow (lack of) development (and no stable release). However, I'm also not sure about PDO's quality.
Hi,
On 02-03-2012 18:31, A.L.E.C wrote:
On 03/02/2012 06:05 PM, Aleksandar Lazic wrote:
PHP 5.4.0 released! ERROR: [02-Mar-2012 17:36:49 +0100]: IMAP Error: rcube::imap_init(true) is deprecated, use rcube::imap_connect() instead in /home/phpapps/installed/rc06rc/program/include/rcmail.php on line 639 (GET /rc06rc/?_task=settings&_action=plugin.serverinfo)
Change error_reporting in iniset.php from ini_set('error_reporting', E_ALL&~E_NOTICE); to ini_set('error_reporting', E_ALL &~ (E_NOTICE | E_STRICT));
Thanks, rc works now ;-) It 'feels' faster, but this is of course subjective.
Are there any plans to be strict compatible?
Is it worth to try to migrate from MDB2 to PDO, would you accept such patches?
Maybe. I don't like MDB2 because of it's bugs and slow (lack of) development (and no stable release). However, I'm also not sure about PDO's quality.
I don't now what you mean with 'PDO quality', I think you know that pdo is part of PHP and is maintained with php cykles
www.php.net/ChangeLog-5.php
Best regards Aleks
List info: http://lists.roundcube.net/dev/ BT/aba52c80
On Sat, Mar 3, 2012 at 9:28 AM, Aleksandar Lazic al-roundcubedev@none.at wrote:
Hi,
On 02-03-2012 18:31, A.L.E.C wrote:
On 03/02/2012 06:05 PM, Aleksandar Lazic wrote:
PHP 5.4.0 released! ERROR: [02-Mar-2012 17:36:49 +0100]: IMAP Error: rcube::imap_init(true) is deprecated, use rcube::imap_connect() instead in /home/phpapps/installed/rc06rc/program/include/rcmail.php on line 639 (GET /rc06rc/?_task=settings&_action=plugin.serverinfo)
Change error_reporting in iniset.php from ini_set('error_reporting', E_ALL&~E_NOTICE); to ini_set('error_reporting', E_ALL &~ (E_NOTICE | E_STRICT));
Thanks, rc works now ;-) It 'feels' faster, but this is of course subjective.
Are there any plans to be strict compatible?
Is it worth to try to migrate from MDB2 to PDO, would you accept such patches?
Maybe. I don't like MDB2 because of it's bugs and slow (lack of) development (and no stable release). However, I'm also not sure about PDO's quality.
I don't now what you mean with 'PDO quality', I think you know that pdo is part of PHP and is maintained with php cykles
www.php.net/ChangeLog-5.php
Maybe we can use the Doctrine2 DBAL. Takes the pain away from straight PDO. But that means 5.3 and last time I asked people didn't want that. ;(
Till _______________________________________________ List info: http://lists.roundcube.net/dev/ BT/aba52c80