Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: PHP 6  (Read 2966 times)

mario

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 394
PHP 6
« on: August 30, 2009, 08: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.
Logged

mario

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 394
Re: PHP 6
« Reply #1 on: September 08, 2009, 11: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;
}
Logged
Pages: [1]   Go Up