PHP 5.4.0 released!

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,467
Location
LT, EU
You can give it a try :) It's now added to the CustomBuild script.
 

Flexup

Verified User
Joined
Feb 26, 2012
Messages
40
Fatal error: Directive 'allow_call_time_pass_reference' is no longer available in PHP in Unknown on line 0
make[1]: *** [install-pear-installer] Error 1
make: *** [install-pear] Error 2


:/
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,467
Location
LT, EU
Fatal error: Directive 'allow_call_time_pass_reference' is no longer available in PHP in Unknown on line 0
make[1]: *** [install-pear-installer] Error 1
make: *** [install-pear] Error 2


:/
You should comment out allow_call_time_pass_reference in php.ini, because it's no longer available. The following should fix it:
Code:
perl -pi -e 's/^allow_call_time_pass_reference/;allow_call_time_pass_reference/' /usr/local/lib/php.ini
 

Quonos

Verified User
Joined
Jul 30, 2009
Messages
23
It can't seem to find the file on files.directadmin.com. Did someone forget to upload it?

[root@server custombuild]# ./build php n
Downloading php-5.4.0.tar.gz...
--2012-03-03 18:49:33-- http://files.directadmin.com/services/custombuild/php-5.4.0.tar.gz
Resolving files.directadmin.com... 69.30.193.202, 216.144.254.90
Connecting to files.directadmin.com|69.30.193.202|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-03-03 18:49:33 ERROR 404: Not Found.

Downloaded file /usr/local/directadmin/custombuild/php-5.4.0.tar.gz does not exist or is empty after download
cwd is: /usr/local/directadmin/custombuild
Fileserver might be down, using the backup file server..
--2012-03-03 18:49:33-- http://69.30.193.202/services/custombuild/php-5.4.0.tar.gz
Connecting to 69.30.193.202:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-03-03 18:49:33 ERROR 404: Not Found.


*** MD5 Checksum for php-5.4.0.tar.gz Failed. Redownloading...***

Downloading php-5.4.0.tar.gz...
--2012-03-03 18:49:33-- http://files.directadmin.com/services/custombuild/php-5.4.0.tar.gz
Resolving files.directadmin.com... 69.30.193.202, 216.144.254.90
Connecting to files.directadmin.com|69.30.193.202|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-03-03 18:49:34 ERROR 404: Not Found.

Downloaded file /usr/local/directadmin/custombuild/php-5.4.0.tar.gz does not exist or is empty after download
cwd is: /usr/local/directadmin/custombuild
Fileserver might be down, using the backup file server..
--2012-03-03 18:49:34-- http://69.30.193.202/services/custombuild/php-5.4.0.tar.gz
Connecting to 69.30.193.202:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-03-03 18:49:34 ERROR 404: Not Found.



*** MD5 Checksum for php-5.4.0.tar.gz failed *again*.***
The md5 checksum value may be incorrect, or a wrong file is being downloaded.
Install continuing with this possibly corrupted file. (it may also be fine)


*** Cannot find /usr/local/directadmin/custombuild/php-5.4.0.tar.gz. Aborting ***
-edit- I should probably point out that simply downloading the file from php.net didn't really seem to be the solution.
 

ditto

Verified User
Joined
Apr 27, 2009
Messages
2,505
@Quonos, try to set files1.directadmin.com in custombuild/options.conf:

Code:
downloadserver=files1.directadmin.com
Then run ./build update and try again.

files1.directadmin.com is the first server that get the new versions, so it might be a propagation delay for the other servers. If you still don't get the new version, then it's just not there, I guess. I have not checked, because I am waiting doing this upgrade to later ...
 

Flexup

Verified User
Joined
Feb 26, 2012
Messages
40
Removed legacy features : Safe mode and all related ini options.

So, why in my php.ini i have :

;
; Safe Mode
;
;safe_mode = Off

maybe need regenerate config file ?
 

czotos

Verified User
Joined
Oct 19, 2007
Messages
216
I upgraded from PHP 5.3.10 to PHP 5.4.0 - but now I get this error when I run:

/usr/local/directadmin/custombuild/build versions

Code:
Cannot load the ionCube PHP Loader - it was built with configuration API220090626,NTS, whereas running engine is API220100525,NTS
Zend Guard Loader requires Zend Engine API version 220090626.
The Zend Engine API version 220100525 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader.
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,467
Location
LT, EU
I upgraded from PHP 5.3.10 to PHP 5.4.0 - but now I get this error when I run:

/usr/local/directadmin/custombuild/build versions

Code:
Cannot load the ionCube PHP Loader - it was built with configuration API220090626,NTS, whereas running engine is API220100525,NTS
Zend Guard Loader requires Zend Engine API version 220090626.
The Zend Engine API version 220100525 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader.
There is no ionCube loaders released for PHP 5.4 yet, but I think they will release it very soon.
 

Quonos

Verified User
Joined
Jul 30, 2009
Messages
23
I'd like to point out that PHP 5.4 breaks SquirrelMail and some popular plugins such as the APC cache and the memcache interface. Roundcube works just fine and atmail is cluttered with warnings.

Of course, these issues can be temporarily hidden with a simple "error_reporting(0)" or a change to your php.ini.

Unless you can live with these issues, I recommend not upgrading to PHP 5.4 just yet. Especially the lack of APC has been a problem in my case.
 

panosru

Verified User
Joined
Oct 8, 2006
Messages
80
Location
Greece
After installation I got this:

Code:
Cannot load the ionCube PHP Loader - it was built with configuration API220090626,NTS, whereas running engine is API220100525,NTS
Zend Guard Loader requires Zend Engine API version 220090626.
The Zend Engine API version 220100525 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader.

Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so:  /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so: undefined symbol: output_globals
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/magickwand.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/magickwand.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/mongo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/apc.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/memcache.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/ixed.5.3.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/ixed.5.3.lin: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/peb.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/peb.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/svn.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/svn.so: cannot open shared object file: No such file or directory in Unknown on line 0
 

Quonos

Verified User
Joined
Jul 30, 2009
Messages
23
@panosru:
You have to recompile or disable those extensions. PECL can do this for you, simply "pecl install apc" and so on. Note that APC may not work on PHP 5.4, depending on some factors. Disable the extensions it can't find. The memcache module may need to be compiled from a beta release, and the same goes for some other modules.
 

Quonos

Verified User
Joined
Jul 30, 2009
Messages
23
@panosru:
Simply enter "php" in the console and fix the errors it mentions, by editing your php.ini. Once php doesn't have any errors anymore, it'll just wait for input, so press ctrl-c and (re)start Apache.

I think you should just update to 5.4 though, and fix the extensions that went missing. (Small sidenote in case you're going to do other upgrades today: don't switch to Apache 2.4 just yet!)
 

panosru

Verified User
Joined
Oct 8, 2006
Messages
80
Location
Greece
@Quonos:
I tried to do that but php does not throw any errors for me :S I tried to run some php scripts and they seems to run normal but if I try to access them from the browsers I get white page :/
 
Top