Updates #649

PHP to 5.3.28

Added by Anonymous almost 3 years ago. Updated 5 months ago.

Status:In ProgressStart date:12/21/2012
Priority:NormalDue date:
Assignee:Danny Terweij% Done:

60%

Category:CentOS 5
Target version:Kloxo
Resolution:

Description

All PHP users should note that the PHP 5.2 series is NOT supported anymore. All users are strongly encouraged to upgrade to PHP 5.3.7.

http://www.php.net/archive/2011.php#id2011-08-18-1


Related issues

Related to RPM and Thirdparty software - Updates #1075: kloxo-ioncube 4.5.2 In Progress 01/19/2014
Related to RPM and Thirdparty software - Updates #1076: kloxo-zendguard 5.5.0 In Progress 01/19/2014
Related to RPM and Thirdparty software - Updates #1077: kloxo-patch 0.0.1 In Progress 01/19/2014
Related to RPM and Thirdparty software - Updates #619: Update Roundcube to 0.9.4 In Progress 10/13/2013 01/01/2014

History

#1 Updated by Danny Terweij almost 3 years ago

  • Resolution set to Rejected

CentOS 5 stays for the moment at 5.2.
CentOS 6 will be at 5.3.

Newest is not always better. Newest is not always stable. The best advice is to stay behind

#2 Updated by Danny Terweij almost 3 years ago

  • Target version set to Packages CentOS 5

#3 Updated by Anonymous almost 3 years ago

The PHP development team would like to announce the immediate availability of PHP 5.3.8. This release fixes two issues introduced in the PHP 5.3.7 release:

    Fixed bug #55439 (crypt() returns only the salt for MD5)
    Reverted a change in timeout handling restoring PHP 5.3.6 behavior, which caused mysqlnd SSL connections to hang (Bug #55283).

#4 Updated by Danny Terweij almost 3 years ago

CentOS 5 stays 5.2 (could be changed in the future tho).
CentOS 6 is at 5.3.2 with patches. As we dont have CentOS 6 support yet, no PHP 5.3 is maintained yet.
No need to mention new PHP version updates about 5.3.x until we have 5.3 support.

#5 Updated by Anonymous almost 3 years ago

OK. So 5.2.17 is the last one and there will be probably no newer versions in this branch.

#6 Updated by Philipp Esselbach almost 3 years ago

Danny Terweij wrote:

CentOS 5 stays 5.2 (could be changed in the future tho).
CentOS 6 is at 5.3.2 with patches. As we dont have CentOS 6 support yet, no PHP 5.3 is maintained yet.
No need to mention new PHP version updates about 5.3.x until we have 5.3 support.

PHP 5.3.3 is included in CentOS 5.6 and higher as well:
See 6.2 in the release notes http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.6

If you still want to use PHP 5.2.17 I suggest you upgrade to the version from CentALT:
http://centos.alt.ru/pub/repository/centos/5/

PHP 5.2.17-7 from CentALT include various fixes backported from 5.3.x branch

http://translate.google.de/translate?sl=ru&tl=en&js=n&prev=_t&hl=de&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fcentos.alt.ru%2F%3Fp%3D566
http://translate.google.de/translate?sl=ru&tl=en&js=n&prev=_t&hl=de&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fcentos.alt.ru%2F%3Fp%3D571

#7 Updated by Danny Terweij almost 3 years ago

Philipp Esselbach wrote:

PHP 5.3.3 is included in CentOS 5.6 and higher as well:

It is not usable in production systems. See various forums and mailing lists. It is missing modules and no miantenance at all. It is and was a bad idea to make php53* packages at all.

If you still want to use PHP 5.2.17 I suggest you upgrade to the version from CentALT:
http://centos.alt.ru/pub/repository/centos/5/

Good to know, as i grabbed already some other packages from centalt and seems that centalt is fast with releases. Perpaps we can think about enabling centalt repo by default shipped with Kloxo.... All i do is doing double work :-) grab the src rpm, and rebuild (sometimes specfile changes) ....

#8 Updated by William Leonard almost 3 years ago

We may want to think about allowing the choice of both. I know personally, I would have to not upgrade Kloxo if 5.3.X was forced on me.

#10 Updated by Danny Terweij over 2 years ago

I tried 5.4.0RC6 just for one minute on CentOS 6.7 last week. But quick back to 5.3 CentOS 6 stock...
Some php scripts/webapps did not work well anymore for example Cacti and on the fly generated GD graphs (Used in Captcha and overlays). For me the beta test failed :P

#11 Updated by Anonymous over 2 years ago

I will test when final version become available. There was a lot of work when changing from 5.2 to 5.3.

#12 Updated by Anonymous over 2 years ago

Upgrading lxphp to 5.3.10 might give us a nice performance boost.

#13 Updated by Danny Terweij over 2 years ago

We need first release HyperVM before we can do something with lxphp (zend related).

#14 Updated by Danny Terweij over 2 years ago

William Leonard wrote:

We may want to think about allowing the choice of both. I know personally, I would have to not upgrade Kloxo if 5.3.X was forced on me.

With the 5.2.17-xx packages you have already some 5.3.x code :P

#15 Updated by Danny Terweij over 2 years ago

  • Subject changed from Upgrade PHP to 5.3.7 to Upgrade PHP to 5.3.x
  • % Done changed from 0 to 10

Marek Zakrzewski wrote:

Upgrading lxphp to 5.3.10 might give us a nice performance boost.

Source Package created:
http://download.lxcenter.org/download/test/centos-5/SRPMS/lxphp-5.3.10-1.lxcenter.src.rpm

- Refactored the specfile (is based on the lxphp.spec from 5.2.17 (un-released) that spec comes originaly from Angel and was wrong written, the depencies did not work because %description tag was at wrong place)
- Disable zend extension in shipped php.ini (php.ini is from Kloxo core)
- No overwrite existing php.ini (makes a php.ini.rpmnew)
- Old Existing php.ini (from Kloxo) will give error because zend extension is enabled and not loaded.
- lphp.exe is created in /usr/sbin/lphp.exe (former packages did not do that)

Created on a clean base system with nothing installed. Just all the build depencies where installed. (Enabled lxcenter-update repository for httpd-devel and other depencies)

[root@danny1 SPECS]# lphp.exe -v
PHP 5.3.10 (cli) (built: Mar  1 2012 03:26:36)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
[root@danny1 RPMS]# lphp.exe -m
[PHP Modules]
bcmath
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imap
json
libxml
mbstring
mcrypt
mhash
mysql
openssl
pcntl
pcre
PDO
pdo_sqlite
pgsql
Phar
posix
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
SQLite
sqlite3
standard
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
zlib

[Zend Modules]

I have not tested this package yet in a Kloxo system. I did not provided a build rpm yet. For this moment is put this back on a low list. Anyone that wants to play with it and to test/fix PHP related code for Kloxo GUI + PHP 5.3 are welcome to do so.

Tip:
rpmbuild --rebuild myapp-1.0.1.src.rpm

#16 Updated by Danny Terweij over 2 years ago

btw this also works:

Just download the RC from php.net, change the version in the spec and build it.

[root@danny1 SPECS]# lphp.exe -v
PHP 5.4.0RC8 (cli) (built: Mar  1 2012 04:06:36)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

#17 Updated by Danny Terweij over 2 years ago

Just a quick test: lxphp 5.3.10:
Bug in lxlib.php, after solved that, the next error is No Database connection. Thats all i do, the rest os up to others to fix.

lxlib.php: arround line 955


function lx_redefine_func($func)
{
        global $gbl, $sgbl, $login, $ghtml;

        $start = 1;
        $transforming_func = "expand_real_root";

// Disable this one
//      eval($sgbl->arg_getting_string);
// Add the following line
        $arglist = func_get_args();

        return call_user_func_array($func, $arglist);
}

Have fun! :)

#18 Updated by Ángel Guzmán Maeso over 2 years ago

Danny Terweij wrote:

Just a quick test: lxphp 5.3.10:
Bug in lxlib.php, after solved that, the next error is No Database connection. Thats all i do, the rest os up to others to fix.

lxlib.php: arround line 955
[...]

Have fun! :)

I solved all the PHP 5.3 errors on my fork QPanel that it is fully compatible with PHP 5.3.x. When the code gets more stable, maybe I backport all the changes progressively to Kloxo.

If you comment that lines, you break a lot functions on kloxo. It is a eval function related, more complex than you think. I solve on my fork with:

http://bazaar.launchpad.net/~shakaran/qpanel/trunk/view/head:/httpdocs/htmllib/phplib/lxlib.php#L808

There are a lot changes for make it kloxo work with PHP 5.3.X. I made a big rewrite of all code (around 500 commits) and I am rewriting also a lot core functions. I will not put PHP 5.3 so quickly, you can get a lot warnings and several critical errors.

PS: I will fix and update my php.spec for %description and other issues. Thanks

#19 Updated by Anonymous over 2 years ago

Danny Terweij wrote:

btw this also works:

Just download the RC from php.net, change the version in the spec and build it.

[...]

There will be new RC9 today ;)

#20 Updated by Danny Terweij over 2 years ago

Angel Guzmán Maeso wrote:

Danny Terweij wrote:

Just a quick test: lxphp 5.3.10:
Bug in lxlib.php, after solved that, the next error is No Database connection. Thats all i do, the rest os up to others to fix.

lxlib.php: arround line 955
[...]

Have fun! :)

I solved all the PHP 5.3 errors on my fork QPanel that it is fully compatible with PHP 5.3.x. When the code gets more stable, maybe I backport all the changes progressively to Kloxo.

If you comment that lines, you break a lot functions on kloxo. It is a eval function related, more complex than you think. I solve on my fork with:

http://bazaar.launchpad.net/~shakaran/qpanel/trunk/view/head:/httpdocs/htmllib/phplib/lxlib.php#L808

Ah replaced that with your fucntion and yep Kloxo GUI is running :)

PS: I will fix and update my php.spec for %description and other issues. Thanks

No problem. We can learn from eachother and now i know why it never obsoleted lxphp 5.2.1 i.386 on a 64bit system :)I just discovered it because on a clean system it has to ask all the depencies when you rebuild the package and it did not.

Basicly thats all i did do for now on this subject. Other things has more prio. Tho i learned a lot the last months from all the rebuilding, creating and refactoring spec files. At some point everything is according spec standards. And as i talked already about OBS, Open Build System, when our SPEC's are 100% we can auto build all the packages even for debian and ubuntu :) But that is far away. but it is closer then two years ago :)

#21 Updated by Anonymous over 2 years ago

Breaking news !

http://www.php.net/ - PHP 5.4 released !

#22 Updated by Anonymous about 2 years ago

The PHP development team announces the immediate availability of PHP 5.3.11 and PHP 5.4.1. These releases focuses on improving the stability of the current PHP branches with over 60 bug fixes, some of which are security related.

#23 Updated by Anonymous almost 2 years ago

The PHP development team would like to announce the immediate availability of PHP 5.4.5 and PHP 5.3.15. This release fixes over 30 bugs and includes a fix for a security related overflow issue in the stream implementation. All users of PHP are encouraged to upgrade to PHP 5.4.5 or PHP 5.3.15.

#24 Updated by Anonymous almost 2 years ago

The PHP development team announces the immediate availability of PHP 5.4.6 and PHP 5.3.16. These releases fix over 20 bugs. All users of PHP are encouraged to upgrade to PHP 5.4.6, or at least 5.3.16.

#25 Updated by Anonymous over 1 year ago

The PHP development team announces the immediate availability of PHP 5.4.8 and PHP 5.3.18. These releases fix over 20 bugs. All users of PHP are encouraged to upgrade to PHP 5.4.8, or at least 5.3.18.

#26 Updated by Anonymous over 1 year ago

PHP 5.4.9 and PHP 5.3.19 released!

#27 Updated by Danny Terweij over 1 year ago

  • Subject changed from Upgrade PHP to 5.3.x to Upgrade PHP to 5.3.x or 5.4.x
  • Due date set to 03/31/2013
  • Category set to Packages - RPM
  • Assignee set to Danny Terweij
  • Priority changed from Normal to Low
  • Start date changed from 08/18/2011 to 12/21/2012
  • % Done changed from 10 to 0
  • Affected version set to All
  • Resolution deleted (Rejected)

#28 Updated by Anonymous over 1 year ago

The PHP development team announces the immediate availability of PHP
5.4.10 and PHP 5.3.20. These releases fix about 15 bugs. Please note
that the PHP 5.3 series will enter an end of life cycle and receive only
critical fixes as of March 2013. All users of PHP are encouraged to
upgrade to PHP 5.4.

The full list of changes are recorded in the ChangeLog on
http://www.php.net/ChangeLog-5.php

#29 Updated by Anonymous over 1 year ago

The good thing is what Mustafa did in Kloxo-MR. He added a backward compatibility with PHP 5.2 via lxphp. So normally all scripts run via PHP 5.4 but if user need PHP 5.2 then client just adds a line in .htaccess file and he is back on PHP 5.2.

#30 Updated by Danny Terweij over 1 year ago

Well, i think everything must be 5.4 soon. So lets focus on 5.4 and drop 5.2/5.3. I know i said in the past stick on C5 to 5.2 but i think that will be unacceptable by a lot users.

So yes, i go to try straight from 5.2.17 to 5.4.x. Bad and older PHP applications just needs to be updated to meet any 5.4 specification. So be it :)

#31 Updated by Anonymous over 1 year ago

With PHP 5.5 even using MySQL extension will be prohibited - from alpha 2 changelog:

- MySQL
  . This extension is now deprecated, and deprecation warnings will be generated
    when connections are established to databases via mysql_connect(),
    mysql_pconnect(), or through implicit connection: use MySQLi or PDO_MySQL
    instead (https://wiki.php.net/rfc/mysql_deprecation). (Adam)

#32 Updated by Danny Terweij over 1 year ago

I gave a shot on my personal system (CentOS6) to use PHP 5.4 and see how my PHP Apps behaved. One PHP app did not work (make a GD graph in realtime). But i fixed that (just change " to ' for some variables).
Next PHP App that did work but showed some weird chars. I had to set a charset back to the one PHP 5.3 was using. PHP 5.4 defaults to UTF-8 with some functions. The rest of the PHP Apps works fine.
I did the change a few weeks ago when REMI pushed PHP 5.4 to replace PHP 5.3.

So, i go use the remi package to see if it works for C5. Basicly, Kloxo has nothing to do with the system's PHP. So Kloxo should work as Kloxo code runs on lxphp :)

#33 Updated by Anonymous over 1 year ago

I use PHP 5.4.10 on production server with Kloxo since 5.4.1 and Ioncube loader release. There was only 1% complains about this from people using very old Joomla's since switching from 5.3.

PHP 5.5 will be heavier to switch since they will remove php mysql functions.

#34 Updated by Anonymous over 1 year ago

Remi repo is very good. We should use both PHP and MySQL from him. I use it with Kloxo since more than a year in a production servers and never had issues.

#36 Updated by Anonymous over 1 year ago

Thanks !

#37 Updated by Anonymous over 1 year ago

The PHP development team announces the immediate availability of PHP 5.4.11 and PHP 5.3.21. These releases fix about 10 bugs. All users of PHP are encouraged to upgrade to PHP 5.4.

#38 Updated by Danny Terweij 10 months ago

  • Project changed from Kloxo to RPM and Thirdparty software
  • Category deleted (Packages - RPM)
  • Target version deleted (Packages CentOS 5)

#39 Updated by Danny Terweij 10 months ago

  • Category set to CentOS 5
  • Target version set to Kloxo

#40 Updated by Danny Terweij 6 months ago

  • Subject changed from Upgrade PHP to 5.3.x or 5.4.x to PHP to 5.3.28
  • Due date deleted (03/31/2013)
  • Status changed from New to In Progress
  • Priority changed from Low to Normal
  • % Done changed from 0 to 50

At this moment: Testing version PHP 5.3.28 for CentOS 5

To make sure ioncube and zendguard are working well, The following will happen:
  • PHP 5.3.28 package requires -> kloxo-ioncube rpm package
  • PHP 5.3.28 package requires -> kloxo-zendguard rpm package
  • PHP 5.3.28 package requires -> kloxo-patch rpm package

kloxo-ioncube ships latest version ioncube
kloxo-zendguard ships latest version zendguard
kloxo-patch ships a php.ini patch (this change is also going into kloxo development version at github)

The thirdparty package that ships current ioncube and zendoptimizer, will be changed after this all is released. The loaders are going to be removed from the thirdparty package.

#41 Updated by Danny Terweij 5 months ago

  • % Done changed from 50 to 60

Still testing. Installed on a live environment to see how it bahaves.

Also available in: Atom PDF