Hi, 

i have tryed to install PHP4.2.2 on my server (plesk redhat 7.2)

I am able to build the libphp4.so whitout problem whit all modules
whit this string then all look ok no problem seen:

./configure \
--with-apxs=/usr/local/psa/apache/bin/apxs \
--prefix=/usr/local/psa/apache \
--with-system-regex \
--with-config-file-path=/usr/local/psa/apache/conf \
--disable-debug \
--disable-pear \
--enable-sockets \
--enable-track-vars \
--with-gd \
--with-mysql=/usr/local/psa/mysql \
--with-iodbc=/usr/lib \
--with-imap=/usr/src/imap-2002.RC4 \
--without-kerberos \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-zlib-dir=/usr/include \
--with-mcrypt=/usr/local/lib \

That work fine, i can install the libphp4.so as well then restart apache,
all is fine...


My prob is i have some script acting weird whit 4.2.2

example: i have a script that display a date (that come from mysql database)
the date is supposed to display "16-Juin-2002" but in place is "--20002"

Same result if i use a small script like :

--------------------------------------
<?php 
$date= "2002-12-31"; 

if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date, $regs)) { 
    echo "$regs[3].$regs[2].$regs[1]"; 
} else { 
    echo "Invalid date format: $date"; 
} 

?> 
----------------------------------------
Whats wrong ???

If i put php 4.1.2 all revert back to normal....
How i can fix that, is this a bug ??

Ps: I'M not programmer so if you have a solution plz explain in detail...:-)


Thanks for any Help on this i'm realy stuck whit that !!!

Reply via email to