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! Quote Link to comment 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... Quote Link to comment 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) Quote Link to comment 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. Quote Link to comment 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.