Red Dragon Posted August 29, 2009 Share Posted August 29, 2009 how do I turn on PHP 5 compatibility mode so php5 can run php4 scripts? Quote Link to comment https://forums.phpfreaks.com/topic/172346-turn-on-php-5-compatibility-mode/ Share on other sites More sharing options...
PFMaBiSmAd Posted August 29, 2009 Share Posted August 29, 2009 There is no compatibility mode and none is needed because most properly written php4 scripts will work as is under php5 - http://us.php.net/manual/en/migration5.php It is more likely that you will find that existing scripts are not using the current recommend php.ini configuration and therefore need to be updated to run under php5 that is using the current recommended php.ini settings. Quote Link to comment https://forums.phpfreaks.com/topic/172346-turn-on-php-5-compatibility-mode/#findComment-908688 Share on other sites More sharing options...
Red Dragon Posted August 29, 2009 Author Share Posted August 29, 2009 well I'm running flashchat on my server and it says when i try to install it PHP version >= 4.1.2: Yes PHP 5 compatibility mode: No PHP session support (recommended): Quote Link to comment https://forums.phpfreaks.com/topic/172346-turn-on-php-5-compatibility-mode/#findComment-908765 Share on other sites More sharing options...
PFMaBiSmAd Posted August 29, 2009 Share Posted August 29, 2009 If you were to post a link to author's web site for the script you are using, someone could probably help you. There is no php compatibility mode so the message the script is outputting is meaningless without knowing what exactly it is testing for. Quote Link to comment https://forums.phpfreaks.com/topic/172346-turn-on-php-5-compatibility-mode/#findComment-908776 Share on other sites More sharing options...
Red Dragon Posted August 29, 2009 Author Share Posted August 29, 2009 http://www.tufat.com/s_flash_chat_chatroom.htm Quote Link to comment https://forums.phpfreaks.com/topic/172346-turn-on-php-5-compatibility-mode/#findComment-908821 Share on other sites More sharing options...
PFMaBiSmAd Posted August 30, 2009 Share Posted August 30, 2009 LOL, the choice of wording in the error message is completely misleading. There is no PHP 5 compatibility mode because what the script is trying to set and test is the zend.ze1_compatibility_mode. Here is the code from the installation script - // check PHP 5 compatibility if(substr(phpversion(), 0, 1) >= '5') { $good = ini_set('zend.ze1_compatibility_mode', '0') === false ? 0 : 1; $canContinue = $canContinue && $good; Message ( 'PHP 5 compatibility mode: ', $good ); } That code is bogus anyway because it returns the old (existing) value when the ini_set() is called, not the result of the ini_set(). Since the value was not as expected, what does a phpinfo(); statement show for the zend.ze1_compatibility_mode setting and what is the php5 version you are trying this on? zend.ze1_compatibility_mode has been completely removed in php 5.3 and cannot be set and will always return a zero value. Quote Link to comment https://forums.phpfreaks.com/topic/172346-turn-on-php-5-compatibility-mode/#findComment-909263 Share on other sites More sharing options...
Red Dragon Posted August 30, 2009 Author Share Posted August 30, 2009 php 5.3 so how should i fix this Quote Link to comment https://forums.phpfreaks.com/topic/172346-turn-on-php-5-compatibility-mode/#findComment-909284 Share on other sites More sharing options...
PFMaBiSmAd Posted August 30, 2009 Share Posted August 30, 2009 I would disable (comment out) that portion of the installation script and see if the code works or you will need to use a php version less than 5.3 Quote Link to comment https://forums.phpfreaks.com/topic/172346-turn-on-php-5-compatibility-mode/#findComment-909321 Share on other sites More sharing options...
Red Dragon Posted August 30, 2009 Author Share Posted August 30, 2009 where? Quote Link to comment https://forums.phpfreaks.com/topic/172346-turn-on-php-5-compatibility-mode/#findComment-909356 Share on other sites More sharing options...
PFMaBiSmAd Posted August 30, 2009 Share Posted August 30, 2009 The main install.php file includes() a series of step_x.php files from an install files folder. That code was in the step_1.php file if I remember correctly. Quote Link to comment https://forums.phpfreaks.com/topic/172346-turn-on-php-5-compatibility-mode/#findComment-909361 Share on other sites More sharing options...
help Posted July 6, 2013 Share Posted July 6, 2013 hi red dragon. i hope you get this mesage 7-6-13 . i just began building in a dedicated server and i have this same prob with tufat flash witch i didnt have with my vps. have you found the cure for this problam? if this fix withen "whm" of cpanel? Quote Link to comment https://forums.phpfreaks.com/topic/172346-turn-on-php-5-compatibility-mode/#findComment-1439703 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.