Doyley Posted February 26, 2007 Share Posted February 26, 2007 Hi all, Is it possible to spoof what version of PHP that we use? We have some secutiry team auditing us and they want us to upgrade to the latest version of PHP when we are currently running 4.x and it woul cause a nightmare in the short amount of time we have. Many thanks. Quote Link to comment https://forums.phpfreaks.com/topic/40176-spoof-php-version/ Share on other sites More sharing options...
Jenk Posted February 26, 2007 Share Posted February 26, 2007 er.. no. I work with auditing in my current role, and you'd get a MAJOR grilling if I were to discover one of my teams was fradulently identifying tools. You're client/customer wouldn't be pleased either. PHP4 code will work in PHP5 anyway. Quote Link to comment https://forums.phpfreaks.com/topic/40176-spoof-php-version/#findComment-194385 Share on other sites More sharing options...
Doyley Posted February 26, 2007 Author Share Posted February 26, 2007 Thanks for your reply. I tried upgrading a few months back and other websites on our server had severe problems because they are using some open source software that didnt support PHP 5. Quote Link to comment https://forums.phpfreaks.com/topic/40176-spoof-php-version/#findComment-194388 Share on other sites More sharing options...
Jenk Posted February 26, 2007 Share Posted February 26, 2007 Such as what? Like I said, PHP5 is backwards compatible with PHP4. Quote Link to comment https://forums.phpfreaks.com/topic/40176-spoof-php-version/#findComment-194498 Share on other sites More sharing options...
ToonMariner Posted February 26, 2007 Share Posted February 26, 2007 why does your auditor want you to switch to php5? Surely the latest release of 4 will do - simply inform those who have sites on the server that you will be switching to php in 2 months so they have plenty of time to make the switch... Quote Link to comment https://forums.phpfreaks.com/topic/40176-spoof-php-version/#findComment-194507 Share on other sites More sharing options...
mbtaylor Posted February 26, 2007 Share Posted February 26, 2007 98% Compatible Quote Link to comment https://forums.phpfreaks.com/topic/40176-spoof-php-version/#findComment-194508 Share on other sites More sharing options...
Doyley Posted February 26, 2007 Author Share Posted February 26, 2007 Im not sure what the problem is. I never wrote the software. I have recently found I only need to upgrade to the latest version of PHP4 so thats what im going to do. Thanks all!! Quote Link to comment https://forums.phpfreaks.com/topic/40176-spoof-php-version/#findComment-194682 Share on other sites More sharing options...
ShogunWarrior Posted February 26, 2007 Share Posted February 26, 2007 PHP5 will give warnings with different things like static class functions etc. and it is hassle to switch over so that suggestion isn't so good. However, you could probably download the source, find the file with the version number in it, edit it and compile it. Quote Link to comment https://forums.phpfreaks.com/topic/40176-spoof-php-version/#findComment-194735 Share on other sites More sharing options...
Jenk Posted February 27, 2007 Share Posted February 27, 2007 PHP5 will give warnings with different things like static class functions etc. and it is hassle to switch over so that suggestion isn't so good. However, you could probably download the source, find the file with the version number in it, edit it and compile it. error_reporting(E_ALL ^ E_STRICT); problem solved. Quote Link to comment https://forums.phpfreaks.com/topic/40176-spoof-php-version/#findComment-194852 Share on other sites More sharing options...
ShogunWarrior Posted February 27, 2007 Share Posted February 27, 2007 Not really, only as much as error_reporting(0); Will "solve" the problem of writing all sorts of terrible code. Quote Link to comment https://forums.phpfreaks.com/topic/40176-spoof-php-version/#findComment-195070 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.