release of PHP 4.4.5

@how@

Verified User
Joined
Mar 2, 2005
Messages
965
Location
Kingdom of Bahrain
Hello!

The PHP Development Team would like to announce the immediate release of
PHP 4.4.5.

This release is a stability and security enhancement of the 4.4.X
branch, and all users are strongly encouraged to upgrade to it as soon
as possible.

A separate release announcement is also available. For changes in PHP
4.4.5 since PHP 4.4.4, please consult the PHP 4 ChangeLog.

Release Announcement: http://www.php.net/release_4_4_5.php
Downloads: http://www.php.net/downloads.php#v4
Changelog: http://www.php.net/ChangeLog-4.php#4.4.5


Wael
 
I'd like to update to PHP 4.4.5, but being a new user, just want to make sure I'm on track.

Server:
Xen based VPS
CentOS 4.4
Apache 2.0.59
PHP 4.4.4

From searching I found this thread:
http://directadmin.com/forum/showthread.php?t=14536

And modified PHP 4.4.4 to PHP 4.4.5 for the following steps.

So, does the following look about right?
------------------------------------------

cd /usr/local/directadmin/customapache
wget http://fr.php.net/get/php-4.4.5.tar.gz/from/this/mirror
vi ./build
(change version number to 4.4.5)
./build clean
./build php n
service apache restart

------------------------------------------

Or is there something else I need to do?

Thanks.
 
Have a problem with installing

Hello!

Try to install but have problem...

Installing php...
Installing PHP SAPI module: apache
[activating module `php4' in /etc/httpd/conf/httpd.conf]
cp libs/libphp4.so /usr/lib/apache/libphp4.so
chmod 755 /usr/lib/apache/libphp4.so
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
cp /etc/httpd/conf/httpd.conf.new /etc/httpd/conf/httpd.conf
rm /etc/httpd/conf/httpd.conf.new
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PEAR environment: /usr/local/lib/php/
Segmentation fault (core dumped)
*** Error code 139

Stop in /usr/local/directadmin/customapache/php-4.4.5.
*** Error code 1

MySQL 5.0.27
Apache 1.3

After remove line --with-mysql=/usr/local/mysql \ from configure.php - ALL OK, but MySQL client cannot connect to MySQL database.

Please help me.
 
Alright, a nasty bug...

Hi all,

We are running:

FreeBSD 6.0 / 6.1
Apache 2.0.59
PHP 4.4.5
MySQL 5.0.22

When upgraded to PHP 4.4.5 many scripts just don't work anymore. Anyhow, when I got down to the debugging, and only disabled register_globals to off, we did not had any problems anymore.

For the testing fase, a script like this:

Code:
<?
  session_register("test_sessie");

  echo "does this work?";
?>

With register_globals=on we get @ /var/log/httpd/error_log the following:

Code:
[Thu Feb 15 11:46:33 2007] [notice] child pid 44994 exit signal Segmentation fault (11)
[Thu Feb 15 11:47:22 2007] [notice] child pid 45034 exit signal Segmentation fault (11)
[Thu Feb 15 11:47:30 2007] [notice] child pid 45032 exit signal Segmentation fault (11)
[Thu Feb 15 11:47:38 2007] [notice] child pid 45168 exit signal Segmentation fault (11)
[Thu Feb 15 11:47:47 2007] [notice] child pid 45258 exit signal Segmentation fault (11)
[Thu Feb 15 11:47:58 2007] [notice] child pid 45272 exit signal Segmentation fault (11)
[Thu Feb 15 11:48:08 2007] [notice] child pid 44991 exit signal Segmentation fault (11)

With register_globals=off however, everything works fine, except for those nasty scripts that still use this option. So how can we fix this problem?

Code:
[PEAR] Archive_Tar    - already installed: 1.3.2
pear/pear dependency package "pear/Console_Getopt" downloaded version 1.2.1 is not the recommended version 1.2, but may be compatible, use --force to install
pear/Console_Getopt cannot be installed, conflicts with installed packages

Notice: Only variables should be assigned by reference in /usr/local/directadmin/customapache/php-4.4.5/pear/PEAR/Installer.php on line 990
[PEAR] Console_Getopt: Installation failed: invalid package file
[PEAR] HTML_Template_IT- already installed: 1.1
[PEAR] Net_UserAgent_Detect- already installed: 2.0.1
pear/PEAR dependency package "pear/Console_Getopt" installed version 1.2 is not the recommended version 1.2.1, but may be compatible, use --force to install

Notice: Only variables should be assigned by reference in /usr/local/directadmin/customapache/php-4.4.5/pear/PEAR/Installer.php on line 990
[PEAR] PEAR: Installation failed: invalid package file

How do we fix that problem? Because I think maybe it got something to do with it?

Thanks!
 
Last edited:
I think it may have to do something with you having PEAR installed via some other method?

Because in the release notes they said they upgraded pear. The other common denominator is everyone here that is having problems seems to be using mysql 5.0
 
Hello,

Pear does have it's own set of upgrade features, try something like
Code:
pear upgrade-all
or something along those lines. If anyone is more farmiliar with pears update features, feel free to jump in.

John
 
That's exactly how you do it, you should be good to go.
Thanks for the reply, quackweb. Much appreciated.

I ran into a few problems along the way, but was able to sort them out. All's well that ends well I guess :)
 
Getting the same problem as CoolZero....

My system:

Dedicated server - AMD Athlon 64 X2 4200+

CentOS 4.3 [or 4.4 - i just cant remember lol]
Apache 1.3.3.7
MySQL 4.1.22
was: PHP 4.4.4 ...is now: 4.4.5

I havent noticed in the error logs about the segmentation fault since i upgraded pear - John @ DA support is quite correct. I didnt notice that post but tried pear --help and saw "pear -upgrade-all" there and tried it. It took hardly anytime at all and I noticed that all that packages that were installed were upgraded fine with no problems.

Tried building php 4.4.5 again and it didnt mention those pear messages second time around. :)

I have had to turn off register globals in the php.ini still tho, in order for squirrelmail to work correctly - running the latest version 1.4.9a - because if you dont turn it off severwide in the php.ini, the root login page loads up fine but when you try to log onto squirrelmail, you get a page cannot be displayed error at: http://yourdomainoripaddress/squirrelmailrootfolder/src/redirect.php

As soon as i restarted httpd after disabling register globals, i could log in fine.

Guess this is a bug in squirrelmail then I guess.

Hope no one on my server is using register globals at the moment ;) hehe

Just thought I'd mention it anyhow....

EDIT: thought I'd list the the versions of the pear packages after the pear upgrade-all process:

Package Version State
Archive_Tar 1.3.2 stable
Console_Getopt 1.2.1 stable
HTML_Template_IT 1.2.1 stable
Net_UserAgent_Detect 2.2.0 stable
PEAR 1.5.0 stable
Structures_Graph 1.0.2 stable

Regards
Nath.
 
Last edited:
Yup...

Hey all,

Yup that's the right patch allright. No segfaults anymore, and scripts working fine again with register_globals=on.

I have placed a copy with the patch here:

http://www.coolzero.info/php/php-4.4.5.tar.gz

So if people are lazy to patch everything, this file is patched.

Maybe a suggestion for John to patch the php-4.4.5.tar.gz to on the files.directadmin.com, so this problem does not apply anymore :)
 
I've added a patch into the build script for php:
Code:
        #fix pear error in 4.4.5 -> remove after 4.4.6 is out
        if [ "$PHP_VER" = "4.4.5" ];
        then
                echo "patching pear register_globals bug...";
                cd ext/session
                wget -O php-pear.patch http://files.directadmin.com/services/customapache/php-pear.patch
                patch -p0 < php-pear.patch
                cd ../..
        fi
John
 
So is the patch needed, even with the latest version of pear? [as i didnt get any error messages once i had updated pear and then rebuilt php 4.4.5]

I've still got register_globals off because squirrelmail doesnt work since installing 4.4.5.

Nath.
 
Back
Top