The Little Guy Posted September 30, 2011 Share Posted September 30, 2011 Is there any script or command line program that anyone knows of that can analyze a PHP script and recommend a minimum PHP version to be used? Thanks! Link to comment https://forums.phpfreaks.com/topic/248151-script-version/ Share on other sites More sharing options...
The Little Guy Posted September 30, 2011 Author Share Posted September 30, 2011 Found this: http://pear.php.net/package/PHP_CompatInfo It seems to work, IDK if it is out dated or not though... Link to comment https://forums.phpfreaks.com/topic/248151-script-version/#findComment-1274268 Share on other sites More sharing options...
SparK_BR Posted September 30, 2011 Share Posted September 30, 2011 something like that is either with the php team (or someone with time) with a list of commands and versions to check the script or somebody with all versions installed and capturing warnings and errors with every execution (and of course a vm or sandbox like thing to prevent a script to change stuff on the server) Link to comment https://forums.phpfreaks.com/topic/248151-script-version/#findComment-1274361 Share on other sites More sharing options...
The Little Guy Posted September 30, 2011 Author Share Posted September 30, 2011 I thought something like this would be sported in php: php -l myfile.php And then you could throw in the option to check different version, and then it would return which versions had errors and which did not. Link to comment https://forums.phpfreaks.com/topic/248151-script-version/#findComment-1274391 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.