1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
<?php /** * Test Extensions that appeared both as standard or PECL * * PHP versions 4 and 5 * * @category PHP * @package PHP_CompatInfo * @author Laurent Laville <pear@laurent-laville.org> * @license http://www.opensource.org/licenses/bsd-license.php BSD * @version CVS: $Id: checkExtensions.php,v 1.3 2008/07/22 21:13:14 farell Exp $ * @link http://pear.php.net/package/PHP_CompatInfo * @ignore */
xdebug_start_trace();
require_once 'PHP/CompatInfo.php';
/** * @ignore */ function test_extensions() { $image = imagecreate(320, 240); imageantialias($image, true); return $image; }
/* Cannot be parsed on CLI print_r(apache_get_modules()); */
if (!extension_loaded('sqlite')) { $prefix = (PHP_SHLIB_SUFFIX === 'dll') ? 'php_' : ''; dl($prefix . 'sqlite.' . PHP_SHLIB_SUFFIX); }
xdebug_stop_trace();
$info = new PHP_CompatInfo();
$file = __FILE__; $options = array('debug' => true);
$r = $info->parseFile($file, $options); /* To keep backward compatibility, result is also return (here in $r) but you don't need to print it, it's the default behavior of API 1.8.0 */ //var_export($r); ?>
|