*

Sil68

  • *
  • 36
PHP 5.4+ compatibility
« on: November 07, 2013, 02:50:59 PM »
Are there any plans of getting osDate compatible with PHP 5.4+?
Apache 2.2.22
php-fpm / php  5.4.4-14
MySQL 5.5.31
Debian GNU/Linux 7.0 Wheezy
osDate 2.6

Re: PHP 5.4+ compatibility
« Reply #1 on: November 09, 2013, 05:59:00 PM »
Are there any plans of getting osDate compatible with PHP 5.4+?

Probably not, as it would take a lot of changes to osDate to make it work with PHP 5.4, but it works well with PHP 5.3 with few minor fixes.
Regards,
My system:
osDate 2.6 with many changes
PHP 5.3
MySQL 5.5

*

marcam

  • ****
  • 267
Re: PHP 5.4+ compatibility
« Reply #2 on: November 10, 2013, 08:29:31 AM »
Are there any plans of getting osDate compatible with PHP 5.4+?

Probably not, as it would take a lot of changes to osDate to make it work with PHP 5.4, but it works well with PHP 5.3 with few minor fixes.

for 5.3 what is the minor fixes ??
osdate 2.5.4
Flashchat 4.7
php 5.2.7

*

Sil68

  • *
  • 36
Re: PHP 5.4+ compatibility
« Reply #3 on: November 10, 2013, 06:41:26 PM »
Unfortunately PHP 5.3 is no option for me, hence osDate won't be either. Quite a pity! :(
Apache 2.2.22
php-fpm / php  5.4.4-14
MySQL 5.5.31
Debian GNU/Linux 7.0 Wheezy
osDate 2.6

*

marcam

  • ****
  • 267
Re: PHP 5.4+ compatibility
« Reply #4 on: November 10, 2013, 07:02:18 PM »
Unfortunately PHP 5.3 is no option for me, hence osDate won't be either. Quite a pity! :(

i know a member here run on php 5.4 and used same fix for 5.3 !!
osdate 2.5.4
Flashchat 4.7
php 5.2.7

*

Sil68

  • *
  • 36
Re: PHP 5.4+ compatibility
« Reply #5 on: November 10, 2013, 07:17:41 PM »
Well, that would be excellent!

Where can I obtain these fixes from?
Apache 2.2.22
php-fpm / php  5.4.4-14
MySQL 5.5.31
Debian GNU/Linux 7.0 Wheezy
osDate 2.6

Re: PHP 5.4+ compatibility
« Reply #6 on: November 11, 2013, 10:55:24 PM »
for 5.3 what is the minor fixes ??

I am using osDate 2.6 with many changes. I will look at my files and I will tell you what changes I made for PHP 5.3.
Regards,
My system:
osDate 2.6 with many changes
PHP 5.3
MySQL 5.5

Re: PHP 5.4+ compatibility
« Reply #7 on: November 12, 2013, 06:54:30 PM »
for 5.3 what is the minor fixes ??

For osDate2.5.6 and osDate2.6 to work with PHP 5.3 we need to make few changes. Earlier versions of osDate, including osDate2.5.5 do not need this update. We need to edit init.php and minimum_init.php files. These fixes will resolve few problems, including "rn" (carriage return) that displays in news and articles, when you edit them. I am attaching both files. Again these files are only for PHP 5.3 and above and osDate2.5.6 and osDate2.6 versions. Do not use them with PHP 5.2.
« Last Edit: November 12, 2013, 07:16:07 PM by bigal65 »
Regards,
My system:
osDate 2.6 with many changes
PHP 5.3
MySQL 5.5

*

wp180

  • **
  • 74
    • Punk-Noz.fr
Re: PHP 5.4+ compatibility
« Reply #8 on: November 15, 2013, 03:22:13 PM »
For Osdate 2.54 and PHP5.4 , we made some tests. I think its running now (the problem is only the installation, but now it looks good).
So i hope we can tell you a solution soon.


My own system is running with PHP5.4, but the installation was with PHP4.... This was much easier to do

wp180
Osdate 2.6
PHP 5.4.21
MsSQL 5.1.72

*

Sil68

  • *
  • 36
Re: PHP 5.4+ compatibility
« Reply #9 on: November 15, 2013, 03:33:26 PM »
That's fantastic news indeed!

How did you accomplish this? I'm still stuck with installing osDate, which simply refuses doing so! It's always the same: database creation failed.

I've replaced both of the php files provided by bigal65, I've replaced the sql scripts (featuring "engine" instead of "type"), but still to no avail. :(
Apache 2.2.22
php-fpm / php  5.4.4-14
MySQL 5.5.31
Debian GNU/Linux 7.0 Wheezy
osDate 2.6

*

wp180

  • **
  • 74
    • Punk-Noz.fr
Re: PHP 5.4+ compatibility
« Reply #10 on: November 15, 2013, 03:39:46 PM »
I'm waiting for the tests of Marcam. Then we will see if it works...
Osdate 2.6
PHP 5.4.21
MsSQL 5.1.72

Re: PHP 5.4+ compatibility
« Reply #11 on: November 15, 2013, 04:05:04 PM »
That's fantastic news indeed!

How did you accomplish this? I'm still stuck with installing osDate, which simply refuses doing so! It's always the same: database creation failed.

I've replaced both of the php files provided by bigal65, I've replaced the sql scripts (featuring "engine" instead of "type"), but still to no avail. :(

Hi Sil68,

What are your exact PHP, MySQL and osDate versions? Can you post the part of error log from your server that shows the installation errors? It would help to understand, if it is MySQL, PHP or some other server related problem.
Regards,
My system:
osDate 2.6 with many changes
PHP 5.3
MySQL 5.5

*

Sil68

  • *
  • 36
Re: PHP 5.4+ compatibility
« Reply #12 on: November 15, 2013, 06:23:48 PM »
Setup: Debian + MySQL + PHP-FPM + Apache2 + FastCGI

OS
Quote
Linux MH-Dev-01 3.2.0-4-686-pae #1 SMP Debian 3.2.51-1 i686 GNU/Linux

MySQL
Quote
mysql  Ver 14.14 Distrib 5.5.31, for debian-linux-gnu (i686) using readline 6.2

Apache
Quote
Server version: Apache/2.2.22 (Debian)
Server built:   Mar  4 2013 21:32:32
Server's Module Magic Number: 20051115:30
Server loaded:  APR 1.4.6, APR-Util 1.4.1
Compiled using: APR 1.4.6, APR-Util 1.4.1
Architecture:   32-bit
Server MPM:     Worker
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/worker"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/etc/apache2"
 -D SUEXEC_BIN="/usr/lib/apache2/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache2.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="mime.types"
 -D SERVER_CONFIG_FILE="apache2.conf"

PHP/PHP-FPM
Quote
PHP 5.4.4-14+deb7u5 (fpm-fcgi) (built: Oct  5 2013 15:57:13)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans

Apache error log: attached

osDate: additionally two files modified (attached):
  • libs/Pear/DB.php
  • libs/Pear/PEAR.php
Apache 2.2.22
php-fpm / php  5.4.4-14
MySQL 5.5.31
Debian GNU/Linux 7.0 Wheezy
osDate 2.6

*

Sil68

  • *
  • 36
Re: PHP 5.4+ compatibility
« Reply #13 on: November 15, 2013, 06:34:41 PM »
Apache error log
Quote
[error] [client a.b.c.d] FastCGI: server "/fcgi-bin-php5-fpm" stderr: PHP message: PHP Warning:  array_values() expects parameter 1 to be array, object given in /data/Web/sites/MH-Dev-01/apps/osDate/install_files/step _4.php on line 62, referer: http://mh-dev-01/osDate/install.php?step=2&dispstep=1
[error] [client a.b.c.d] FastCGI: server "/fcgi-bin-php5-fpm" stderr: PHP message: PHP Stack trace:, referer: http://mh-dev-01/osDate/install.php?step=2&dispstep=1
[error] [client a.b.c.d] FastCGI: server "/fcgi-bin-php5-fpm" stderr: PHP message: PHP   1. {main}() /data/Web/sites/MH-Dev-01/apps/osDate/install.php:0, referer: http://mh-dev-01/osDate/install.php?step=2&dispstep=1
[error] [client a.b.c.d] FastCGI: server "/fcgi-bin-php5-fpm" stderr: PHP message: PHP   2. include() /data/Web/sites/MH-Dev-01/apps/osDate/install.php:322, referer: http://mh-dev-01/osDate/install.php?step=2&dispstep=1
[error] [client a.b.c.d] FastCGI: server "/fcgi-bin-php5-fpm" stderr: PHP message: PHP   3. array_values() /data/Web/sites/MH-Dev-01/apps/osDate/install_files/step_4.php:62, referer: http://mh-dev-01/osDate/install.php?step=2&dispstep=1
[error] [client a.b.c.d] FastCGI: server "/fcgi-bin-php5-fpm" stderr: PHP message: PHP Warning:  Invalid argument supplied for foreach() in /data/Web/sites/MH-Dev-01/apps/osDate/install_files/step_4.php on line 62, referer: http://mh-dev-01/osDate/install.php?step=2&dispstep=1
[error] [client a.b.c.d] FastCGI: server "/fcgi-bin-php5-fpm" stderr: PHP message: PHP Stack trace:, referer: http://mh-dev-01/osDate/install.php?step=2&dispstep=1
[error] [client a.b.c.d] FastCGI: server "/fcgi-bin-php5-fpm" stderr: PHP message: PHP   1. {main}() /data/Web/sites/MH-Dev-01/apps/osDate/install.php:0, referer: http://mh-dev-01/osDate/install.php?step=2&dispstep=1
[error] [client a.b.c.d] FastCGI: server "/fcgi-bin-php5-fpm" stderr: PHP message: PHP   2. include() /data/Web/sites/MH-Dev-01/apps/osDate/install.php:322, referer: http://mh-dev-01/osDate/install.php?step=2&dispstep=1

Before modifying the files DB.php and PEAR.php in libs/Pear, there occurred  a vast amount of additional error messages (eg. calling of non-static methods, etc.).
Apache 2.2.22
php-fpm / php  5.4.4-14
MySQL 5.5.31
Debian GNU/Linux 7.0 Wheezy
osDate 2.6

Re: PHP 5.4+ compatibility
« Reply #14 on: November 16, 2013, 03:49:14 AM »
Did you try differrent Linux distro? Some distros would work better than others, though I think that osDate will have some problems with PHP 5.4 on any distro. I am planning to install PHP 5.4 on my second server soon, then I will test osDate and see how it goes. I am almost sure, there will be some issues with PHP 5.4.
Regards,
My system:
osDate 2.6 with many changes
PHP 5.3
MySQL 5.5