| 1 |
lars |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* Exclude all PHP5 functions when calculating the version needed.
|
|
|
4 |
*
|
|
|
5 |
* PHP versions 4 and 5
|
|
|
6 |
*
|
|
|
7 |
* @category PHP
|
|
|
8 |
* @package PHP_CompatInfo
|
|
|
9 |
* @author Laurent Laville <pear@laurent-laville.org>
|
|
|
10 |
* @license http://www.opensource.org/licenses/bsd-license.php BSD
|
|
|
11 |
* @version CVS: $Id: ignorePHP5implements.php,v 1.5 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 |
$dir = 'C:\PEAR\Tools and utilities\PhpDocumentor-1.3.0';
|
|
|
21 |
$options = array(
|
|
|
22 |
'debug' => true,
|
|
|
23 |
'ignore_functions' => PHP_CompatInfo::loadVersion('5.0.0'),
|
|
|
24 |
'ignore_constants' => array('clone', 'public')
|
|
|
25 |
);
|
|
|
26 |
|
|
|
27 |
$r = $info->parseFolder($dir, $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 |
?>
|