PHP 6

Started by mario, August 30, 2009, 07:56:40 PM

Previous topic - Next topic

mario

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.

mario

Since there no unicode support for windows file system yet I had to use unicode_encode($file_name,'ISO-8859-1')

To run code on PHP5 and PHP6 I had to use a ugly work around.

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