The Apache Haus Forum

Forum Topics => Third-party Modules => Topic started by: mario on August 30, 2009, 07:56:40 PM

Title: PHP 6
Post by: mario on August 30, 2009, 07:56:40 PM
Today I had a serious try with PHP 6. I could barf a bit more than with PHP 5.2 as with 5.3.
I guess some scripts need to be rewritten.
Did anyone else make experience with PHP 6? Let me know.
Title: Re: PHP 6
Post by: mario on September 08, 2009, 10:05:02 AM
Since there no unicode support for windows file system yet I had to use
Code: [Select]
unicode_encode($file_name,'ISO-8859-1')
To run code on PHP5 and PHP6 I had to use a ugly work around.

Code: [Select]
if( (0 < version_compare(PHP_VERSION,'6.0.0')) || PHP_VERSION =='6.0.0-dev'){
$php6 = true;
}
else
{
$php6 = false;
}