View Full Version : PHP 4.4.0 released
markus
07-11-2005, 10:41 AM
Hi!
The PHP Development Team announced today (http://www.php.net/release_4_4_0.php) the immediate release of PHP 4.4.0 (http://www.php.net/downloads.php#v4). This is a maintenance release that addresses a serious memory corruption problem within PHP concerning references. If references were used in a wrong way, PHP would often create memory corruptions which would not always surface and be visible. In other cases it can cause variables and objects to change type or class. If you encountered strange behavior like this, this release might fix it. The increased middle digit was required because the fix that corrected the problem with references changed PHP's internal API. Because of this all binary extension modules need to be recompiled for work with this release again.
Besides this reference problem, this release also fixes numerous other bugs, including a small security problem with our bundled shtool. All Users of PHP are strongly encouraged to upgrade to this release.
For changes in PHP 4.4.0 since PHP 4.3.11, please consult the PHP 4 ChangeLog (http://www.php.net/ChangeLog-4.php#4.4.0).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I have upgraded PHP and also installed Zend Optimizer 2.5.10 and now I get the following message when starting Apache:
PHP Warning: Zend Optimizer does not support this version of PHP - please upgrade to the latest version of Zend Optimizer in Unknown on line 0
Anyone else seen this? Do we have to wait for a new Zend Optimizer version?
markus
07-11-2005, 11:19 AM
I have reported this here:
http://bugs.php.net/bug.php?id=33647
As I believe, if it's a conflict between both products, they should have posted a warning or something along the release announcement. After all both products are Zend creatures...
Anyone have experiences with a similar problem in the past?
Chrysalis
07-11-2005, 11:22 AM
Did you try the newest zend recently released?
markus
07-11-2005, 11:24 AM
Yes, it happens with ZO 2.5.10
markus
07-11-2005, 11:43 AM
Well, the bug I mentioned above has been closed as "Bogus" with the following comment:
Do not file bugs when you have Zend extensions (zend_extension=)
loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache,
APC, Xdebug and ionCube loader. These extensions often modify engine
behavior which is not related to PHP itself.
I knew that was going to happen. :(
I have also found this problem reported at Zend site:
http://www.zend.com/phorum/read.php?id=4028&num=5&thread=4028
where the 3rd comment says:
I think you'll have to wait for the developers of ZO to release a new version
Well, ok, let's wait....
HTH+
markus
07-11-2005, 05:16 PM
I have also reported this issue here:
https://www.zend.com/phorum/read.php?num=5&id=4079&thread=4074
Anyone else got this problem?
Chrysalis
07-11-2005, 06:43 PM
in that case thanks for the advance warning guys I will hold off until a fixed ZO is released.
markus
07-12-2005, 07:41 AM
Just an update, the issue has been confirmed and it seems Mr. Zend is about to release a new ZO soon:
https://www.zend.com/phorum/read.php?num=5&id=4082&thread=4074
shaggy
07-12-2005, 08:03 AM
could someone show the steps for compiling php 4.4.0 with DA? I really don't want to muck this install up. thanks in advance.
markus
07-12-2005, 10:48 AM
cd /usr/local/directadmin/customapache
wget http://your-mirror-of-choice/php-4.4.0.tar.gz
In the wget command you should replace the URL so it points to the mirror of your choice, got from this page:
http://www.php.net/get/php-4.4.0.tar.gz/from/a/mirror
Now, edit the build script to change the PHP version so looks like this:
PHP_VER=4.4.0
Then clean up previous stuff and build all PHP components:
./build clean
./build php y
Finally, restart Apache. On RHLE would be:
service httpd restart
Note: If you use Zend Optimer, be aware there's no one compatible with PHP 4.4.0 yet.
shaggy
07-12-2005, 11:42 AM
thanks.. it worked like a charm on CentOS 3.4
markus
07-14-2005, 07:43 AM
Zend Optimizer update: First official answer to the PHP 4.4.0 incompatibility issue.
Quoted from here:
http://www.zend.com/phorum/read.php?num=5&id=4110&thread=4074
----- Alexandra - Zend Support wrote: -----
We currently do have Optimizer for PHP 4.4
You are all welcome to write to support at zend dot com (specify your OS), to get this package.
I wrote them asking for Win2k and RHLE versions. Waiting for feedback...
Well, good news: Mr. Zend is on it, finally. :)
Bad news: The version available via web is till 2.5.10, which refused to work with PHP 4.4.0.
Cheers
markus
07-14-2005, 09:27 AM
Zend Optimizer update: How to get 2.5.10a (compatible with PHP 4.4.0) ???
http://www.zend.com/phorum/read.php?num=5&id=4115&thread=4074
:)
It worked like a charm for me under RHLE.
http://www.zend.com/phorum/read.php?num=5&id=4118&thread=4074
PS: wget failed. I had to download the tar to my PC and then upload it to my server. Probably, they chek the Http Referer or something...
vandal
07-14-2005, 10:20 AM
pre list of zend binaries
http://downloads.zend.com/optimizer/2.5.10a/
really don't know why they don't test when rc1 comes out... :(
markus
07-14-2005, 11:59 AM
Maybe because devs had a summer break or something...
Well, this time they have shown where to wget the files. :)
However, while direct link to the tar worked from my browser, the wget failed with timeouts (?) from my RHLE box. :confused:
vandal
07-14-2005, 12:11 PM
i can wget without issue from my RHEL box.
markus
07-15-2005, 08:20 PM
Maybe it was a temporary issue at my end. It now works. :)
Cheers
plugin
07-17-2005, 08:25 AM
Stopping httpd: [ OK ]
Remaining processes: 1157
Stopping httpd: [FAILED]
Lol :p
Running RH90 with Latest zend now smoothly :)
@ above:
./build zend has also to be done, else you will get an error.
markus
07-17-2005, 09:51 AM
Originally posted by Chrysalis
in that case thanks for the advance warning guys I will hold off until a fixed ZO is released.
Finally, Zend Optimer version 2.5.10a worked for me on two different platforms: Win2K and RHLE (note the Windows binary has been updated today).
The binaries can be downloaded from here:
http://downloads.zend.com/optimizer/2.5.10/
Take care to get version 2.5.10a for your platform.
:)
markus
07-17-2005, 09:55 AM
./build zend has also to be done, else you will get an error. [/B]
Also, before doing so, remember to edit the build script to update the ZO version so it looks something like this:
ZEND_VER=2.5.10a
:)
vandal
07-20-2005, 12:09 AM
I built without issue. my zend aps work great so far.
:)
Sheldon
07-27-2005, 11:04 AM
after upgrading to PHP 4.4.0
one of my clients is having this issue
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 47 bytes) in
/home/username/domains/domain.com/public_html/forum/cache/tpl2__..includes.cache.phps.def_tree_def.php on line 73
when they try to post anything.
Originally posted by Sheldon
after upgrading to PHP 4.4.0
one of my clients is having this issue
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 47 bytes) in
/home/username/domains/domain.com/public_html/forum/cache/tpl2__..includes.cache.phps.def_tree_def.php on line 73
when they try to post anything.
Try setting memory_limit higher in php.ini
Sheldon
07-29-2005, 08:20 AM
Yeah I did, but WHY is a forum piping over 8mb through apache every time someone tries to make a post.
That seems a bit much? Dont you think?
Chrysalis
07-29-2005, 12:42 PM
After setting up DA on a new server I noticed this line has creeped into configure.php but not sure on exactly what it does.
--enable-memory-limit
Sheldon
07-29-2005, 12:47 PM
ahhhhh.
so it wasnt enabled before...
DA just enabled it now. hmmmm.
but im still wondering why a forum is piping 8mb through apache.
jmstacey
07-29-2005, 12:47 PM
The 8mb is the limit currently set in your php.ini file. The particular script your running, according to the error message, was only trying to use 47 bytes.
I think the limit in php is global for all scripts that run. So for example if the php limit was 100 bytes and you had 5 scripts running at the same time all trying to use 47 bytes...
At least that's my understanding of it
;)
tklaver
08-05-2005, 08:43 AM
I presume the issues PHP 4.4.0 had with Zend are solved at this point?
Sheldon
08-05-2005, 10:19 AM
Yes, but know it breaks Installatron, unless your already using the latest version with IonCube. Make sure you have DirectAdmin upgraded to the latest version.
plugin
08-05-2005, 02:39 PM
PHP 4.4.0 has also problems with 'older' versions of Horde Webmail :(
Chrysalis
08-05-2005, 04:25 PM
We had problems with 4.4.0 and installatron on our older server but on the new server installatron works fine with 4.4.0.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.