是否有办法确定自动运行脚本所需的最小版本的PHP ?

时间:2021-02-22 21:32:55

I know of http://pear.php.net/package/PHP_CompatInfo - however I am looking for a online service that offers something similar, or perhaps better.

我知道http://pear.php.net/package/PHP_CompatInfo——但是我正在寻找一个提供类似或者更好的在线服务。

I have noticed that PHP_CompatInfo has not been updated in some time (2009-01-19)

我注意到PHP_CompatInfo已经有一段时间没有更新了(2009-01-19)

I would like to be able to upload a set of files, or if needed, one at a time, and receive data back on what the expected minimum version of PHP is required to run those files.

我希望能够上传一组文件(如果需要的话),每次一个,并接收到运行这些文件所需的PHP最小版本的数据。

Until now, I have simply scraped all functions from my files, and then done look-ups on php.net to see what version would be needed for example:

到目前为止,我只是简单地从我的文件中删除了所有的函数,然后在php.net上进行查找,看看需要什么版本,例如:

filter_var (PHP 5 >= 5.2.0)

filter_var (PHP 5 >= 5.2.0)

1 个解决方案

#1


2  

PHP_CompatInfo2 is under development, see the announcement on the PEAR developer list.

PHP_CompatInfo2正在开发中,请参见PEAR开发人员列表中的公告。

See http://php5.laurent-laville.org/compatinfo/

参见http://php5.laurent-laville.org/compatinfo/

#1


2  

PHP_CompatInfo2 is under development, see the announcement on the PEAR developer list.

PHP_CompatInfo2正在开发中,请参见PEAR开发人员列表中的公告。

See http://php5.laurent-laville.org/compatinfo/

参见http://php5.laurent-laville.org/compatinfo/