PDA

View Full Version : php 4.4.3 is out



eymbo
08-03-2006, 04:50 AM
http://www.php.net/ChangeLog-4.php#4.4.3

PHP 4.4.3 Released

[03-Aug-2006] The PHP development team is proud to announce the release of PHP 4.4.3. This release combines small number of bug fixes and resolves a number of security issues. Some of the key changes of PHP 4.4.3 include:

* Disallow certain characters in session names.
* Fixed a buffer overflow inside the wordwrap() function.
* Prevent jumps to parent directory via the 2nd parameter of the tempnam() function.
* Improved safe_mode check for the error_log() function.
* Fixed cross-site scripting inside the phpinfo() function.
* Fixed offset/length parameter validation inside the substr_compare() function.
* Upgraded bundled PCRE library to version 6.6
* Over 20 various bug fixes.

:)

layer0
08-03-2006, 10:51 AM
Thanks for the heads up. Updated just fine here.....

powerdomein
08-03-2006, 01:17 PM
how to update on FC3 ?

just yum update php ?

powerdomein
08-03-2006, 01:40 PM
I get his message...
Can anyone help me ??


[root@server3 php-4.4.3]# make
/bin/sh /usr/local/directadmin/customapache/php-4.4.3/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/openssl/ -I/usr/local/directadmin/customapache/php-4.4.3/ext/
openssl/ -DPHP_ATOM_INC -I/usr/local/directadmin/customapache/php-4.4.3/include -I/usr/local/directadmin/customapache/php-4.4.3/main -I/usr/local/directadmin/customapache/php-4.4
.3 -I/usr/kerberos/include -I/usr/local//include -I/usr/local/include -I/usr/include/mysql -I/usr/local/directadmin/customapache/php-4.4.3/ext/xml/expat -I/usr/local/directadmin/
customapache/php-4.4.3/TSRM -I/usr/local/directadmin/customapache/php-4.4.3/Zend -g -O2 -c /usr/local/directadmin/customapache/php-4.4.3/ext/openssl/openssl.c -o ext/openssl
/openssl.lo
/usr/local/directadmin/customapache/php-4.4.3/libtool: line 60: --enable-mbstring: command not found
/usr/local/directadmin/customapache/php-4.4.3/libtool: line 61: invalid: command not found
/usr/local/directadmin/customapache/php-4.4.3/libtool: line 325: syntax error near unexpected token `('
/usr/local/directadmin/customapache/php-4.4.3/libtool: line 325: `elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then'
make: *** [ext/openssl/openssl.lo] Error 2

rpan
08-03-2006, 01:42 PM
You don't have to do all that with directadmin. Run the following:


cd /usr/local/directadmin/customapache
wget http://us2.php.net/get/php-4.4.3.tar.gz/from/this/mirror
./build clean
change php version in build
./build php

or ./build php_ap2 (if running apache 2)

layer0
08-03-2006, 01:42 PM
Originally posted by rpan
You don't have to do all that with directadmin. Run the following:


cd /usr/local/directadmin/customapache
wget http://us2.php.net/get/php-4.4.3.tar.gz/from/this/mirror
./build clean
change php version in build
./build php

or ./build php_ap2 (if running apache 2)
Ah my bad, going to remove my old post.

powerdomein
08-03-2006, 01:43 PM
how to change the version??

layer0
08-03-2006, 01:44 PM
Originally posted by powerdomein
how to change the version??
If you read the post, it's changed already...(rpan's post).

powerdomein
08-03-2006, 01:45 PM
i am busy now :)

cd /usr/local/directadmin/customapache
wget http://us2.php.net/get/php-4.4.3.ta...rom/this/mirror
./build clean
change php version in build
./build php


how can i change here the version ?

layer0
08-03-2006, 01:47 PM
Originally posted by powerdomein
i am busy now :)

cd /usr/local/directadmin/customapache
wget http://us2.php.net/get/php-4.4.3.ta...rom/this/mirror
./build clean
change php version in build
./build php


how can i change here the version ?
You don't understand...it is ALREADY php 4.4.3 there..what is the problem?

powerdomein
08-03-2006, 01:51 PM
./build clean

./build php 4.4.3 <== so?

how can i change the php version.. thats is my question.

rpan
08-03-2006, 01:54 PM
assuming you are in the customapache directory,
type:
vi build

change the PHP_VER=4.4.2 to PHP_VER=4.4.3

powerdomein
08-03-2006, 02:28 PM
when i was compeling the ssh discoennect and DA dont work..
the server is working..


r/local/directadmin/customapache/php-4.4.3/main/ -DPHP
_ATOM_INC -I/usr/local/directadmin/customapache/php-4.4.3/include -I/usr/local/directadmin/customapache/php-4.4.3/main -I/usr/local/directadmin/customapache/php-4.4.3 -I/usr/kerb
eros/include -I/usr/local/include -I/usr/local/directadmin/customapache/php-4.4.3/ext/mbstring/mbregex -I/usr/local/directadmin/customapache/php-4.4.3/ext/mbstring/libmbfl -I/usr
/local/directadmin/customapache/php-4.4.3/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/local/directadmin/customapache/php-4.4.3/ext/xml/expat -I/usr/local/directadmin/cu
stomapache/php-4.4.3/TSRM -I/usr/local/directadmin/customapache/php-4.4.3/Zend -g -O2 -prefer-non-pic -c main/internal_functions.c -o main/internal_functions.lo

there stops it..

can any one help

powerdomein
08-03-2006, 02:39 PM
for info:

The server was online but not reachable for ssh - da - httpd
I must reset the server :((

rpan
08-03-2006, 03:37 PM
Sounds like customapache overwhelmed your server. If you already have everything up to date except for php, use
./build php n

If not, then still use
./build php

and wait couple minutes between each yes.


Originally posted by powerdomein
for info:

The server was online but not reachable for ssh - da - httpd
I must reset the server :((

Maniak
08-03-2006, 06:15 PM
Originally posted by powerdomein
for info:

The server was online but not reachable for ssh - da - httpd
I must reset the server :((

Try to recompile PHP with the following commands :

# cd /usr/local/directadmin/customapache
# ./build clean
# ./build update
# wget http://XX.php.net/get/php-4.1.3.tar.gz/from/this/mirror

Download PHP from the mirror in your customapache directory. (http://XX.php.net/get/php-4.1.3.tar.gz/from/this/mirror change XX by your country ISO code. E.g. Netherland nl, Switzerland ch, etc..)

Change your PHP version to the version you want in build (use vi or pico ismyfriend).

# ./build php n
# /sbin/service httpd restart

and use this tip to avoid new problems :

http://www.directadmin.com/forum/showthread.php?s=&postid=79974

@how@
08-03-2006, 10:37 PM
How to

# cd /usr/local/directadmin/customapache
# wget http://static.php.net/www.php.net/distributions/php-4.4.3.tar.gz
# perl -pi -e 's/4.4.2/4.4.3/' build
# ./build clean
# ./build php y
or
# ./build all d
# /sbin/service httpd restart

bigboy
08-03-2006, 11:29 PM
./build all d

..........................
..........................
..........................


-lmhash -lmcrypt -lltdl -lintl -lpng -lz -ljpeg -lcurl -lz -lssl -lcrypto -lm -lgssapi -lkrb5 -lasn1 -lcrypto -lroken -lcrypt -lcom_err -lcurl -lssl -lcrypto -lz -lcrypt -lcrypt -o libphp4.la
/usr/bin/ld: cannot find -lltdl
*** Error code 1

Stop in /usr/local/directadmin/customapache/php-4.4.3.

@how@
08-03-2006, 11:57 PM
Originally posted by bigboy
./build all d

..........................
..........................
..........................


-lmhash -lmcrypt -lltdl -lintl -lpng -lz -ljpeg -lcurl -lz -lssl -lcrypto -lm -lgssapi -lkrb5 -lasn1 -lcrypto -lroken -lcrypt -lcom_err -lcurl -lssl -lcrypto -lz -lcrypt -lcrypt -o libphp4.la
/usr/bin/ld: cannot find -lltdl
*** Error code 1

Stop in /usr/local/directadmin/customapache/php-4.4.3.

# ./build php y
to build all with php 4.4.3

bigboy
08-04-2006, 12:22 AM
resrtart apache eaccelerator error

venus# PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/src/ea095rc1/modules
/eaccelerator.so' - Cannot open &quot;/usr/local/src/ea095rc1/modules/eaccelerator.so&quot; in
Unknown on line 0

hehachris
08-04-2006, 12:26 AM
Originally posted by bigboy
resrtart apache eaccelerator error

venus# PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/src/ea095rc1/modules
/eaccelerator.so' - Cannot open &quot;/usr/local/src/ea095rc1/modules/eaccelerator.so&quot; in
Unknown on line 0
asked by so many many times...
u need to recompile eaccelerator, too!

Chrysalis
08-04-2006, 12:40 AM
lets hope they fixed that damn annoying pear problem that was there forever.

guys using d is better then y no need to recompile everything it depends on when they not updated.

@how@
08-04-2006, 01:08 AM
Originally posted by bigboy
resrtart apache eaccelerator error

venus# PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/src/ea095rc1/modules
/eaccelerator.so' - Cannot open &quot;/usr/local/src/ea095rc1/modules/eaccelerator.so&quot; in
Unknown on line 0

you need to install it again (eaccelerator) each time you update php (from to new php)



Wael

bigboy
08-04-2006, 01:51 AM
eAccelerator not compatable php4.4.3?

@how@
08-04-2006, 07:25 AM
Originally posted by bigboy
eAccelerator not compatable php4.4.3?
remove eAccelerator from php.ini and delete php 4.4.3 folder from /usr/local/directadmin/customapache then build php with y then remove eaccelerator.so then install eAccelerator
all work fine and tested :)


Wael

tek
08-06-2006, 01:13 AM
Originally posted by bigboy
./build all d

..........................
..........................
..........................


-lmhash -lmcrypt -lltdl -lintl -lpng -lz -ljpeg -lcurl -lz -lssl -lcrypto -lm -lgssapi -lkrb5 -lasn1 -lcrypto -lroken -lcrypt -lcom_err -lcurl -lssl -lcrypto -lz -lcrypt -lcrypt -o libphp4.la
/usr/bin/ld: cannot find -lltdl
*** Error code 1

Stop in /usr/local/directadmin/customapache/php-4.4.3.

Seems like you'll need to install MySQL's shared-compat library package. I had the same problem and was fixed when I included this package. :)

hehachris
08-06-2006, 01:29 AM
i dont understand why people keep updating php with "y" option which may produce more problem and watse their time.

with "y" you will re-compile all related modules such as cURL, mcrypt, mHash....etc, which are not necessary because you just need to update php, not the others.



for the "cannot find -lltdl" problem of bigboy, take a sceond to search on the forum doesnt hurt:

# cd /usr/local/directadmin/customapache/libmcrypt-2.5.7/libltdl
# ./configure --enable-ltdl-install
# make
# make install
# make clean

jw00dy
08-06-2006, 01:32 AM
Thanks Works well here one centOS 3.4 w/APC 4.0.10

moazedi
08-11-2006, 03:27 AM
Originally posted by @how@
remove eAccelerator from php.ini and delete php 4.4.3 folder from /usr/local/directadmin/customapache then build php with y then remove eaccelerator.so then install eAccelerator
all work fine and tested :)


Wael

Can you please help in details...
How can i install php with 'y'?!

dannygoh
09-05-2006, 09:28 PM
Originally posted by moazedi
Can you please help in details...
How can i install php with 'y'?!

i believe it meant

./build php y