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 a string
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: parseString.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
$r = $info->parseString('<?php $file = file_get_contents(__FILE__); $tokens = token_get_all($file); ?>');
21
/*
22
   To keep backward compatibility, result is also return (here in $r)
23
   but you don't need to print it, it's the default behavior of API 1.8.0
24
 */
25
//var_export($r);
26
?>