Introduce a pear: PHP_CompatInfo to check the adaptability of the php version

Source: Internet
Author: User
This article describes a pear: PHP_CompatInfo & nbsp, which is used to check whether your project meets the needs of a php version or extension, it will tell you at least the PHP version that can run in your project, and how many PHP extensions are used. the Project address help document is displayed at http: // introduce a pear: PHP_CompatInfo that checks the adaptability of the php version.
Today, I found that a foreigner has a pear extension that can be used to check whether your project meets a certain PHP version.
Or the need for expansion, it will tell you at least the PHP version that can run in your project, and how much
PHP extension and other information, the project address help document is in
Http://pear.php.net/manual/en/package.php.php-compatinfo.basic.php

Run pear install php_compatinfo:


Require_once 'php/CompatInfo. php ';

$ Source = '/home/test /';

$ DriverType = 'xml ';
$ DriverOptions = array ();

$ Info = new PHP_CompatInfo ($ driverType, $ driverOptions );
$ Info-> parseDir ($ source );
?>
All files in the test Directory are specified as the files to be checked. the output format is XML. php-compatinfo also supports CSV, HTML, and TXT output formats,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.