Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

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