Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/**
3
 * Get the Compatibility info for an entire folder (recursive)
4
 *
5
 * PHP versions 4 and 5
6
 *
7
 * @category PHP
8
 * @package  PHP_CompatInfo
9
 * @author   Davey Shafik <davey@php.net>
10
 * @license  http://www.opensource.org/licenses/bsd-license.php  BSD
11
 * @version  CVS: $Id: parseDir.php,v 1.7 2008/07/22 21:13:14 farell Exp $
12
 * @link     http://pear.php.net/package/PHP_CompatInfo
13
 * @ignore
14
 */
15
 
16
require_once 'PHP/CompatInfo.php';
17
 
18
$info = new PHP_CompatInfo();
19
 
20
$folder  = dirname(__FILE__);
21
$options = array(
22
    'file_ext' => array('php3', 'php'),
23
    'ignore_files' => array(__FILE__)
24
    );
25
 
26
var_dump($options);
27
$r = $info->parseFolder($folder, $options);
28
/*
29
   To keep backward compatibility, result is also return (here in $r)
30
   but you don't need to print it, it's the default behavior of API 1.8.0
31
 */
32
//var_export($r);
33
?>