1. <?php
  2. /* Get the Compatibility info for a single file */
  3.  
  4. require_once 'PHP/CompatInfo.php';
  5.  
  6. $info = new PHP_CompatInfo;
  7.  
  8. $file = 'D:/php/pear/PEAR_PackageUpdate/PackageUpdate.php';
  9.  
  10. $options = array(
  11.     'debug' => true,
  12.     'ignore_functions' => array('debug_backtrace')
  13.     );
  14.  
  15. $res = $info->parseFile($file, $options);
  16.  
  17. echo '<pre>';
  18. var_dump($res);
  19. echo '</pre>';
  20.  
  21. ?>