Initial Commit

This commit is contained in:
Riley Schneider
2025-12-03 16:38:10 +01:00
parent c5e26bf594
commit b732d8d4b5
17680 changed files with 5977495 additions and 2 deletions

View File

@@ -0,0 +1,125 @@
<?php
/**
* calendar extension Constant Exceptions dictionary for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: calendar_const_exceptions.php,v 1.1 2008/12/28 19:47:37 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @link http://www.php.net/manual/en/calendar.constants.php
* @since version 1.9.0 (2009-01-19)
*/
$constant_exceptions['calendar'] = array (
'CAL_DOW_DAYNO' =>
array (
'init' => '4.0.0',
'name' => 'CAL_DOW_DAYNO',
),
'CAL_DOW_LONG' =>
array (
'init' => '4.0.0',
'name' => 'CAL_DOW_LONG',
),
'CAL_DOW_SHORT' =>
array (
'init' => '4.0.0',
'name' => 'CAL_DOW_SHORT',
),
'CAL_EASTER_ALWAYS_GREGORIAN' =>
array (
'init' => '4.3.0',
'name' => 'CAL_EASTER_ALWAYS_GREGORIAN',
),
'CAL_EASTER_ALWAYS_JULIAN' =>
array (
'init' => '4.3.0',
'name' => 'CAL_EASTER_ALWAYS_JULIAN',
),
'CAL_EASTER_DEFAULT' =>
array (
'init' => '4.3.0',
'name' => 'CAL_EASTER_DEFAULT',
),
'CAL_EASTER_ROMAN' =>
array (
'init' => '4.3.0',
'name' => 'CAL_EASTER_ROMAN',
),
'CAL_FRENCH' =>
array (
'init' => '4.0.0',
'name' => 'CAL_FRENCH',
),
'CAL_GREGORIAN' =>
array (
'init' => '4.0.0',
'name' => 'CAL_GREGORIAN',
),
'CAL_JEWISH' =>
array (
'init' => '4.0.0',
'name' => 'CAL_JEWISH',
),
'CAL_JEWISH_ADD_ALAFIM' =>
array (
'init' => '5.0.0',
'name' => 'CAL_JEWISH_ADD_ALAFIM',
),
'CAL_JEWISH_ADD_ALAFIM_GERESH' =>
array (
'init' => '5.0.0',
'name' => 'CAL_JEWISH_ADD_ALAFIM_GERESH',
),
'CAL_JEWISH_ADD_GERESHAYIM' =>
array (
'init' => '5.0.0',
'name' => 'CAL_JEWISH_ADD_GERESHAYIM',
),
'CAL_JULIAN' =>
array (
'init' => '4.0.0',
'name' => 'CAL_JULIAN',
),
'CAL_MONTH_FRENCH' =>
array (
'init' => '4.0.0',
'name' => 'CAL_MONTH_FRENCH',
),
'CAL_MONTH_GREGORIAN_LONG' =>
array (
'init' => '4.0.0',
'name' => 'CAL_MONTH_GREGORIAN_LONG',
),
'CAL_MONTH_GREGORIAN_SHORT' =>
array (
'init' => '4.0.0',
'name' => 'CAL_MONTH_GREGORIAN_SHORT',
),
'CAL_MONTH_JEWISH' =>
array (
'init' => '4.0.0',
'name' => 'CAL_MONTH_JEWISH',
),
'CAL_MONTH_JULIAN_LONG' =>
array (
'init' => '4.0.0',
'name' => 'CAL_MONTH_JULIAN_LONG',
),
'CAL_MONTH_JULIAN_SHORT' =>
array (
'init' => '4.0.0',
'name' => 'CAL_MONTH_JULIAN_SHORT',
),
'CAL_NUM_CALS' =>
array (
'init' => '4.0.0',
'name' => 'CAL_NUM_CALS',
),
);
?>

View File

@@ -0,0 +1,131 @@
<?php
/**
* calendar extension Function Exceptions dictionary for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: calendar_func_exceptions.php,v 1.1 2008/12/28 19:47:37 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0 (2009-01-19)
*/
if (!isset($function_exceptions['calendar'])) {
$function_exceptions['calendar'] = array();
}
$function_exceptions['calendar'] = array_merge($function_exceptions['calendar'], array(
'cal_days_in_month' =>
array (
'init' => '4.0.7',
'ext' => 'calendar',
'pecl' => false,
),
'cal_from_jd' =>
array (
'init' => '4.0.7',
'ext' => 'calendar',
'pecl' => false,
),
'cal_info' =>
array (
'init' => '4.0.7',
'ext' => 'calendar',
'pecl' => false,
),
'cal_to_jd' =>
array (
'init' => '4.0.7',
'ext' => 'calendar',
'pecl' => false,
),
'easter_date' =>
array (
'init' => '4.0.0',
'ext' => 'calendar',
'pecl' => false,
),
'easter_days' =>
array (
'init' => '4.0.0',
'ext' => 'calendar',
'pecl' => false,
),
'frenchtojd' =>
array (
'init' => '4.0.0',
'ext' => 'calendar',
'pecl' => false,
),
'gregoriantojd' =>
array (
'init' => '4.0.0',
'ext' => 'calendar',
'pecl' => false,
),
'jddayofweek' =>
array (
'init' => '4.0.0',
'ext' => 'calendar',
'pecl' => false,
),
'jdmonthname' =>
array (
'init' => '4.0.0',
'ext' => 'calendar',
'pecl' => false,
),
'jdtofrench' =>
array (
'init' => '4.0.0',
'ext' => 'calendar',
'pecl' => false,
),
'jdtogregorian' =>
array (
'init' => '4.0.0',
'ext' => 'calendar',
'pecl' => false,
),
'jdtojewish' =>
array (
'init' => '4.0.0',
'ext' => 'calendar',
'pecl' => false,
),
'jdtojulian' =>
array (
'init' => '4.0.0',
'ext' => 'calendar',
'pecl' => false,
),
'jdtounix' =>
array (
'init' => '4.0.0',
'ext' => 'calendar',
'pecl' => false,
),
'jewishtojd' =>
array (
'init' => '4.0.0',
'ext' => 'calendar',
'pecl' => false,
),
'juliantojd' =>
array (
'init' => '4.0.0',
'ext' => 'calendar',
'pecl' => false,
),
'unixtojd' =>
array (
'init' => '4.0.0',
'ext' => 'calendar',
'pecl' => false,
))
);
?>

View File

@@ -0,0 +1,17 @@
<?php
/**
* Predefined Classes official version known for PHP_CompatInfo 1.9.0a1 or better
*
* PHP versions 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: class_exceptions.php,v 1.3 2008/12/28 19:45:52 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
*/
$class_exceptions = array();
?>

View File

@@ -0,0 +1,15 @@
@echo off
rem CLI Script to Check Compatibility of chunk of PHP code
rem PHP versions 4 and 5
rem @category PHP
rem @package PHP_CompatInfo
rem @author Laurent Laville <pear@laurent-laville.org>
rem @license http://www.opensource.org/licenses/bsd-license.php BSD
rem @version CVS: $Id: compatinfo.bat,v 1.9 2008/07/22 20:26:59 farell Exp $
rem @link http://pear.php.net/package/PHP_CompatInfo
rem @since File available since Release 1.3.0
"@php_bin@" -f "@bin_dir@\pci" -- %*

View File

@@ -0,0 +1,564 @@
#!@php_bin@
<?php
/**
* The Predefined Classes/Constants array script generator.
*
* PHP version 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: configure.php,v 1.8 2008/12/26 18:50:51 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since File available since Release 1.9.0b1
*/
if (version_compare(PHP_VERSION, '5.0.0') < 0) {
print basename(__FILE__) . " require PHP5 or better to run. "
. "Your current PHP version is " . PHP_VERSION
. PHP_EOL;
exit(1);
}
require_once 'Console/Getargs.php';
$ds = DIRECTORY_SEPARATOR;
$opts = array('enable' =>
array('short' => 'e',
'desc' => 'A comma separated list of extensions '
. 'you want only',
'default' => '',
'min' => 0 , 'max' => 1),
'disable' =>
array('short' => 'd',
'desc' => 'A comma separated list of extensions '
. 'you want to disable',
'default' => '',
'min' => 0 , 'max' => 1),
'sapi' =>
array('short' => 's',
'desc' => 'A comma separated list of SAPI '
. 'you want only',
'default' => 'apache2handler,cgi,cli',
'min' => 0 , 'max' => 1),
'exceptions' =>
array('short' => 'x',
'desc' => 'File that provides exceptions results',
'default' => 'exceptions.conf.php',
'min' => 0 , 'max' => 1),
'output' =>
array('short' => 'o',
'desc' => 'Target directory where to write results',
'default' => '@'.'php_dir@/PHP/CompatInfo',
'min' => 0 , 'max' => 1),
'verbose' =>
array('short' => 'v',
'desc' => 'Set the verbose level',
'default' => 1,
'min' => 0 , 'max' => 1),
'version' =>
array('short' => 'V',
'desc' => 'Print version information',
'max' => 0),
'help' =>
array('short' => 'h',
'desc' => 'Show this help',
'max' => 0)
);
$args = Console_Getargs::factory($opts);
if (PEAR::isError($args)) {
$header = "PHP_CompatInfo Extensions Support List build system \n".
'Usage: '.basename($_SERVER['SCRIPT_NAME'])." [options]\n\n";
if ($args->getCode() === CONSOLE_GETARGS_ERROR_USER) {
echo Console_Getargs::getHelp($opts, $header, $args->getMessage())."\n";
} else if ($args->getCode() === CONSOLE_GETARGS_HELP) {
echo Console_Getargs::getHelp($opts, $header)."\n";
}
exit(1);
}
// version
if ($args->isDefined('V')) {
echo 'PHP_CompatInfo Extensions Support List build system version @package_version@';
exit(0);
}
// verbose
if ($args->isDefined('v')) {
$verbose = $args->getValue('v');
} else {
$verbose = 1;
}
// output
if ($args->isDefined('o')) {
$o = $args->getValue('o');
if (strpos($o, '@'.'php_dir@')) {
$o = str_replace('@'.'php_dir@', '@php_dir@', $o);
}
if (is_dir($o) && (is_writable($o))) {
/* Directory where to write
all "*_const_array.php" and "*_class_array.php" files
Must ended with a trailing directory separator */
if (substr($o, -1, 1) !== $ds) {
$o .= $ds;
}
$target_directory = $o;
} else {
echo 'Invalid (or not writable) target directory';
exit(1);
}
} else {
$target_directory = '@php_dir@' . $ds . 'PHP' .$ds . 'CompatInfo' . $ds;
}
// enable
if ($args->isDefined('e')) {
$extensions = explode(',', $args->getValue('e'));
} else {
$extensions = get_loaded_extensions();
}
// disable
if ($args->isDefined('d')) {
$d = explode(',', $args->getValue('d'));
$extensions = array_diff($extensions, $d);
}
// sapi
if ($args->isDefined('s')) {
$sapis = explode(',', $args->getValue('s'));
} else {
$sapis = array('apache2handler', 'cgi', 'cli');
}
// exceptions
if ($args->isDefined('x')) {
$x = $args->getValue('x');
if (file_exists($x)) {
include_once $x;
if (!function_exists('getExceptions')) {
echo 'getExceptions() function does not exists';
exit(1);
}
} else {
echo 'Exceptions file does not exists';
exit(1);
}
} else {
include_once dirname(__FILE__) . $ds . 'scripts' . $ds . 'exceptions.conf.php';
}
$const_glob_list = array();
$class_glob_list = array();
$func_glob_list = array();
// PHP Core constants
$extName = 'internal';
$extConstants = get_defined_constants(true);
$const_glob_list[] = $extName;
// default version to apply to each internal constant
$ver = getExceptions($extName, 'version');
if ($ver === false) {
$ver = '4.0.0';
}
$constants = array();
foreach ($extConstants[$extName] as $cst => $val) {
$constants[$cst]['init'] = $ver;
$constants[$cst]['name'] = $cst;
}
$exceptions = getExceptions($extName, 'constant');
if ($exceptions === false) {
// no constant exceptions for this extension
} else {
// apply exceptions to give final constant results
$constants = array_merge($constants, $exceptions);
}
ksort($constants);
file_put_contents($target_directory . $extName . '_const_array.php',
"<?php
/**
* Internal Constant dictionary for PHP_CompatInfo 1.9.0a1 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: \$Id: configure.php,v 1.8 2008/12/26 18:50:51 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0b2 (2008-12-19)
*/
\$GLOBALS['_PHP_COMPATINFO_CONST_" . strtoupper($extName) . "'] = " .
var_export($constants, true) . ";
?>");
foreach ($extensions as $extension) {
if (!extension_loaded($extension)) {
continue; // skip this extension if not loaded : prevent error
}
$ext = new ReflectionExtension($extension);
// name of the current Extension
$extName = $ext->getName();
// version of the current Extension
$extVers = $ext->getVersion();
if ($verbose > 0) {
print 'Found '. $extName;
if ($extVers) {
print ' version '. $extVers;
}
print PHP_EOL;
}
// default version to apply to each constant and class predefined
$ver = getExceptions($extName, 'version');
if ($ver === false) {
$ver = '4.0.0';
}
// constants described by the Extension interface
$extConstants = $ext->getConstants();
if (count($extConstants) > 0) {
$const_glob_list[] = $extName;
$constants = array();
foreach ($extConstants as $cst => $val) {
$constants[$cst]['init'] = $ver;
$constants[$cst]['name'] = $cst;
}
$exceptions = getExceptions($extName, 'constant');
if ($exceptions === false) {
// no constant exceptions for this extension
} else {
// apply exceptions to give final constant results
$constants = array_merge($constants, $exceptions);
}
ksort($constants);
file_put_contents($target_directory . $extName . '_const_array.php',
"<?php
/**
* $extName extension Constant dictionary for PHP_CompatInfo 1.9.0a1 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: \$Id: configure.php,v 1.8 2008/12/26 18:50:51 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0a1 (2008-11-23)
*/
\$GLOBALS['_PHP_COMPATINFO_CONST_" . strtoupper($extName) . "'] = " .
var_export($constants, true) . ";
?>");
}
// classes described by the Extension interface
$extClasses = $ext->getClassNames();
if (count($extClasses) > 0) {
$class_glob_list[] = $extName;
$classes = array();
foreach ($extClasses as $i => $cls) {
$classes[$cls]['init'] = $ver;
$classes[$cls]['name'] = $cls;
$classes[$cls]['ext'] = $extName;
$classes[$cls]['pecl'] = false;
}
$exceptions = getExceptions($extName, 'class');
if ($exceptions === false) {
// no class exceptions for this extension
} else {
// apply exceptions to give final class results
$classes = array_merge($classes, $exceptions);
}
ksort($classes);
file_put_contents($target_directory . $extName . '_class_array.php',
"<?php
/**
* $extName extension Class dictionary for PHP_CompatInfo 1.9.0a1 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: \$Id: configure.php,v 1.8 2008/12/26 18:50:51 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0a1 (2008-11-23)
*/
\$GLOBALS['_PHP_COMPATINFO_CLASS_" . strtoupper($extName) . "'] = " .
var_export($classes, true) . ";
?>");
}
// functions described by the Extension interface
$extFunctions = $ext->getFunctions();
if (count($extFunctions) > 0) {
$func_glob_list[] = $extName;
$functions = array();
foreach ($extFunctions as $oFunction) {
$func = $oFunction->getName();
$functions[$func]['init'] = $ver;
$functions[$func]['name'] = $func;
$functions[$func]['ext'] = $extName;
$functions[$func]['pecl'] = false;
}
$exceptions = getExceptions($extName, 'function');
if ($exceptions === false) {
// no class exceptions for this extension
} else {
// apply exceptions to give final function results
$functions = array_merge($functions, $exceptions);
}
ksort($functions);
file_put_contents($target_directory . $extName . '_func_array.php',
"<?php
/**
* $extName extension Function dictionary for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: \$Id: configure.php,v 1.8 2008/12/26 18:50:51 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0b2 (2008-12-19)
*/
\$GLOBALS['_PHP_COMPATINFO_FUNC_" . strtoupper($extName) . "'] = " .
var_export($functions, true) . ";
?>");
}
}
$sapi_glob_list = array();
foreach ($sapis as $sapi) {
$functions = getExceptions($sapi, 'function');
if ($functions === false) {
// no sapi functions
continue;
}
if ($verbose > 0) {
print 'Found SAPI '. $sapi . PHP_EOL;
}
$sapi_glob_list[] = $sapi;
ksort($functions);
file_put_contents($target_directory . $sapi . '_sapi_array.php',
"<?php
/**
* $sapi SAPI Function dictionary for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: \$Id: configure.php,v 1.8 2008/12/26 18:50:51 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0b2 (2008-12-19)
*/
\$GLOBALS['_PHP_COMPATINFO_SAPI_" . strtoupper($sapi) . "'] = " .
var_export($functions, true) . ";
?>");
}
$const_glob_list = array_unique($const_glob_list);
natcasesort($const_glob_list);
$requires = '';
$globals = '';
foreach ($const_glob_list as $cstExt) {
$requires .= "require_once 'PHP/CompatInfo/" . $cstExt . "_const_array.php';"
. PHP_EOL;
$globals .= " \$GLOBALS['_PHP_COMPATINFO_CONST_" . strtoupper($cstExt)
. "'], " . PHP_EOL;
}
$globals = rtrim($globals, ", ".PHP_EOL);
$globals .= PHP_EOL;
file_put_contents($target_directory . 'const_array.php',
"<?php
/**
* Constant dictionary for PHP_CompatInfo 1.1.1 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: \$Id: configure.php,v 1.8 2008/12/26 18:50:51 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.1.1 (2006-07-27)
*/
". $requires .
"
/**
* Predefined Constants
*
* @link http://www.php.net/manual/en/reserved.constants.php
* @global array \$GLOBALS['_PHP_COMPATINFO_CONST']
*/
\$GLOBALS['_PHP_COMPATINFO_CONST'] = array_merge(
". $globals .
" );
?>");
$class_glob_list = array_unique($class_glob_list);
natcasesort($class_glob_list);
$requires = '';
$globals = '';
foreach ($class_glob_list as $clsExt) {
$requires .= "require_once 'PHP/CompatInfo/" . $clsExt . "_class_array.php';"
. PHP_EOL;
$globals .= " \$GLOBALS['_PHP_COMPATINFO_CLASS_" . strtoupper($clsExt)
. "'], " . PHP_EOL;
}
$globals = rtrim($globals, ", ".PHP_EOL);
$globals .= PHP_EOL;
file_put_contents($target_directory . 'class_array.php',
"<?php
/**
* Class dictionary for PHP_CompatInfo 1.9.0a1 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: \$Id: configure.php,v 1.8 2008/12/26 18:50:51 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0a1 (2008-11-23)
*/
". $requires .
"
/**
* Predefined Classes
*
* > Standard Defined Classes
* These classes are defined in the standard set of functions included in
* the PHP build.
* - Directory
* - stdClass
* - __PHP_Incomplete_Class
*
* > Predefined classes as of PHP 5
* These additional predefined classes were introduced in PHP 5.0.0
* - Exception
* - php_user_filter
*
* > Miscellaneous extensions
* define other classes which are described in their reference.
*
* @link http://www.php.net/manual/en/function.get-declared-classes.php
* @link http://www.php.net/manual/en/reserved.classes.php
* @global array \$GLOBALS['_PHP_COMPATINFO_CLASS']
*/
\$GLOBALS['_PHP_COMPATINFO_CLASS'] = array_merge(
". $globals .
" );
?>");
$func_glob_list = array_unique($func_glob_list);
natcasesort($func_glob_list);
$requires = '';
$globals = '';
foreach ($func_glob_list as $funcExt) {
$requires .= "require_once 'PHP/CompatInfo/" . $funcExt . "_func_array.php';"
. PHP_EOL;
$globals .= " \$GLOBALS['_PHP_COMPATINFO_FUNC_" . strtoupper($funcExt)
. "'], " . PHP_EOL;
}
$globals = rtrim($globals, ", ".PHP_EOL);
$globals .= PHP_EOL;
file_put_contents($target_directory . 'func_array.php',
"<?php
/**
* Function dictionary for PHP_CompatInfo 1.9.0a1 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: \$Id: configure.php,v 1.8 2008/12/26 18:50:51 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0a1 (2008-11-23)
*/
". $requires .
"
/**
* Predefined Functions
*
* @global array \$GLOBALS['_PHP_COMPATINFO_FUNCS']
*/
\$GLOBALS['_PHP_COMPATINFO_FUNCS'] = array_merge(
". $globals .
" );
?>");
?>

View File

@@ -0,0 +1,19 @@
<?php
/**
* Constants official version known for PHP_CompatInfo 1.9.0a1 or better
*
* PHP versions 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: constant_exceptions.php,v 1.4 2008/12/28 19:45:52 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
*/
$constant_exceptions = array();
require_once 'internal_const_exceptions.php';
?>

View File

@@ -0,0 +1,32 @@
<?php
/**
* date extension Class Exceptions dictionary for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: date_class_exceptions.php,v 1.1 2008/12/28 19:48:59 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
*/
$class_exceptions['date'] = array (
'DateTime' =>
array (
'init' => '5.2.0',
'name' => 'DateTime',
'ext' => 'date',
'pecl' => false,
),
'DateTimeZone' =>
array (
'init' => '5.2.0',
'name' => 'DateTimeZone',
'ext' => 'date',
'pecl' => false,
),
);
?>

View File

@@ -0,0 +1,90 @@
<?php
/**
* date extension Constant Exceptions dictionary for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: date_const_exceptions.php,v 1.1 2008/12/28 19:48:59 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @link http://www.php.net/manual/en/datetime.constants.php
* @since version 1.9.0 (2009-01-19)
*/
$constant_exceptions['date'] = array (
'DATE_ATOM' =>
array (
'init' => '5.1.1',
'name' => 'DATE_ATOM',
),
'DATE_COOKIE' =>
array (
'init' => '5.1.1',
'name' => 'DATE_COOKIE',
),
'DATE_ISO8601' =>
array (
'init' => '5.1.1',
'name' => 'DATE_ISO8601',
),
'DATE_RFC822' =>
array (
'init' => '5.1.1',
'name' => 'DATE_RFC822',
),
'DATE_RFC850' =>
array (
'init' => '5.1.1',
'name' => 'DATE_RFC850',
),
'DATE_RFC1036' =>
array (
'init' => '5.1.1',
'name' => 'DATE_RFC1036',
),
'DATE_RFC1123' =>
array (
'init' => '5.1.1',
'name' => 'DATE_RFC1123',
),
'DATE_RFC2822' =>
array (
'init' => '5.1.1',
'name' => 'DATE_RFC2822',
),
'DATE_RFC3339' =>
array (
'init' => '5.1.3',
'name' => 'DATE_RFC3339',
),
'DATE_RSS' =>
array (
'init' => '5.1.1',
'name' => 'DATE_RSS',
),
'DATE_W3C' =>
array (
'init' => '5.1.1',
'name' => 'DATE_W3C',
),
'SUNFUNCS_RET_DOUBLE' =>
array (
'init' => '5.1.2',
'name' => 'SUNFUNCS_RET_DOUBLE',
),
'SUNFUNCS_RET_STRING' =>
array (
'init' => '5.1.2',
'name' => 'SUNFUNCS_RET_STRING',
),
'SUNFUNCS_RET_TIMESTAMP' =>
array (
'init' => '5.1.2',
'name' => 'SUNFUNCS_RET_TIMESTAMP',
),
);
?>

View File

@@ -0,0 +1,131 @@
<?php
/**
* date extension Function Exceptions dictionary for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: date_func_exceptions.php,v 1.1 2008/12/28 19:48:59 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0 (2009-01-19)
*/
if (!isset($function_exceptions['date'])) {
$function_exceptions['date'] = array();
}
$function_exceptions['date'] = array_merge($function_exceptions['date'], array(
'checkdate' =>
array (
'init' => '4.0.0',
'ext' => 'date',
'pecl' => false,
),
'getdate' =>
array (
'init' => '4.0.0',
'ext' => 'date',
'pecl' => false,
),
'gmdate' =>
array (
'init' => '4.0.0',
'ext' => 'date',
'pecl' => false,
),
'gmmktime' =>
array (
'init' => '4.0.0',
'ext' => 'date',
'pecl' => false,
),
'gmstrftime' =>
array (
'init' => '4.0.0',
'ext' => 'date',
'pecl' => false,
),
'idate' =>
array (
'init' => '5.0.0',
'ext' => 'date',
'pecl' => false,
),
'localtime' =>
array (
'init' => '4.0.0',
'ext' => 'date',
'pecl' => false,
),
'mktime' =>
array (
'init' => '4.0.0',
'ext' => 'date',
'pecl' => false,
),
'strftime' =>
array (
'init' => '4.0.0',
'ext' => 'date',
'pecl' => false,
),
'strtotime' =>
array (
'init' => '4.0.0',
'ext' => 'date',
'pecl' => false,
),
'time' =>
array (
'init' => '4.0.0',
'ext' => 'date',
'pecl' => false,
),
'timezone_abbreviations_list' =>
array (
'init' => '5.1.0',
'ext' => 'date',
'pecl' => false,
),
'timezone_identifiers_list' =>
array (
'init' => '5.1.0',
'ext' => 'date',
'pecl' => false,
),
'timezone_name_from_abbr' =>
array (
'init' => '5.1.3',
'ext' => 'date',
'pecl' => false,
),
'timezone_name_get' =>
array (
'init' => '5.1.0',
'ext' => 'date',
'pecl' => false,
),
'timezone_offset_get' =>
array (
'init' => '5.1.0',
'ext' => 'date',
'pecl' => false,
),
'timezone_open' =>
array (
'init' => '5.1.0',
'ext' => 'date',
'pecl' => false,
),
'timezone_transitions_get' =>
array (
'init' => '5.2.0',
'ext' => 'date',
'pecl' => false,
))
);
?>

View File

@@ -0,0 +1,118 @@
<?php
/**
* Exceptions definition for Versions, Functions, Classes and Constants
*
* PHP versions 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: exceptions.conf.php,v 1.21 2009/01/03 10:19:22 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since File available since Release 1.9.0b1
*/
/* default version for each extension
if not defined, then suppose its 4.0.0 */
$version_exceptions = array('bz2' => '4.0.4',
'com_dotnet' => '5.0.0',
'curl' => '4.0.2',
'dom' => '5.0.0',
'exif' => '4.2.0',
'fileinfo' => '5.3.0',
'filter' => '5.2.0',
'gmp' => '4.0.4',
'json' => '5.2.0',
'libxml' => '5.1.0',
'openssl' => '4.0.4',
'pcre' => '4.0.0',
'PDO' => '5.1.0',
'phar' => '5.3.0',
'pspell' => '4.0.2',
'Reflection' => '5.0.0',
'shmop' => '4.0.3',
'sockets' => '4.0.2',
'SimpleXML' => '5.0.0',
'SPL' => '5.0.0',
'standard' => '4.0.0',
'xsl' => '5.0.0',
'xmlreader' => '5.1.0',
'xmlwriter' => '5.1.2',
);
/* if default version is not 4.0.0, then we can fix the right
constant initial version here */
require_once 'constant_exceptions.php';
require_once 'calendar_const_exceptions.php';
require_once 'date_const_exceptions.php';
require_once 'ftp_const_exceptions.php';
require_once 'gd_const_exceptions.php';
require_once 'gmp_const_exceptions.php';
require_once 'iconv_const_exceptions.php';
require_once 'mysql_const_exceptions.php';
require_once 'mysqli_const_exceptions.php';
require_once 'openssl_const_exceptions.php';
require_once 'pcre_const_exceptions.php';
require_once 'standard_const_exceptions.php';
require_once 'xsl_const_exceptions.php';
/* if default version is not 4.0.0, then we can fix the right
predefined class initial version here */
require_once 'class_exceptions.php';
require_once 'date_class_exceptions.php';
require_once 'standard_class_exceptions.php';
/* if default is not from PHP core version 4.0.0, then we can fix the right
function data here */
require_once 'function_exceptions.php';
require_once 'calendar_func_exceptions.php';
require_once 'date_func_exceptions.php';
require_once 'gd_func_exceptions.php';
require_once 'gettext_func_exceptions.php';
require_once 'hash_func_exceptions.php';
require_once 'iconv_func_exceptions.php';
require_once 'libxml_func_exceptions.php';
require_once 'spl_func_exceptions.php';
require_once 'standard_func_exceptions.php';
require_once 'xmlwriter_func_exceptions.php';
require_once 'zlib_func_exceptions.php';
/**
* Function that provides to return exceptions results
*
* @param string $extension Extension name
* @param sting $type Type of exception (version | class | constant)
*
* @return mixed Return false if no exception exists for this $extension and $type
*/
function getExceptions($extension, $type)
{
global $version_exceptions, $class_exceptions, $function_exceptions, $constant_exceptions;
$exceptions = false;
switch ($type) {
case 'version' :
if (isset($version_exceptions[$extension])) {
$exceptions = $version_exceptions[$extension];
}
break;
case 'class' :
if (isset($class_exceptions[$extension])) {
$exceptions = $class_exceptions[$extension];
}
break;
case 'function' :
if (isset($function_exceptions[$extension])) {
$exceptions = $function_exceptions[$extension];
}
break;
case 'constant' :
if (isset($constant_exceptions[$extension])) {
$exceptions = $constant_exceptions[$extension];
}
}
return $exceptions;
}
?>

View File

@@ -0,0 +1,45 @@
<?php
/**
* ftp extension Constant Exceptions dictionary for PHP_CompatInfo 1.9.0a1 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: ftp_const_exceptions.php,v 1.1 2008/12/28 19:50:12 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @link http://www.php.net/manual/en/ftp.constants.php
* @since version 1.9.0 (2009-01-19)
*/
$constant_exceptions['ftp'] = array (
'FTP_AUTORESUME' =>
array (
'init' => '4.3.0',
'name' => 'FTP_AUTORESUME',
),
'FTP_AUTOSEEK' =>
array (
'init' => '4.3.0',
'name' => 'FTP_AUTOSEEK',
),
'FTP_FAILED' =>
array (
'init' => '4.3.0',
'name' => 'FTP_FAILED',
),
'FTP_FINISHED' =>
array (
'init' => '4.3.0',
'name' => 'FTP_FINISHED',
),
'FTP_MOREDATA' =>
array (
'init' => '4.3.0',
'name' => 'FTP_MOREDATA',
),
);
?>

View File

@@ -0,0 +1,235 @@
<?php
/**
* Predefined Functions official version known for PHP_CompatInfo 1.9.0a1 or better
*
* Sources came from :
* Revision Link
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/apache/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/apc/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/apd/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/bc/versions.xml
* 1.2 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/bzip2/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/com/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ctype/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/datetime/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/dom/versions.xml
* 1.2 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filter/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ftp/versions.xml
* 1.2 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gmp/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/hash/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/iconv/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/versions.xml
* 1.3 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/json/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mbstring/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysqli/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/openssl/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/pcre/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/pdo/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/posix/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/session/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/simplexml/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/spl/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/ssh2/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/tidy/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/wddx/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/xml/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/xmlreader/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/xmlwriter/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/xslt/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/zip/versions.xml
* 1.1 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/zlib/versions.xml
*
* PHP versions 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: function_exceptions.php,v 1.5 2008/12/29 10:27:42 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
*/
$function_exceptions = array();
$ds = DIRECTORY_SEPARATOR;
$version_pattern = '\d+(?:\.\d+)*(?:[a-zA-Z]+\d*)?';
$ext_pattern = '(.*)\\'.$ds.'phpdocref\\'.$ds.'(.*)\\'.$ds.'versions.xml';
$data_dir = '@data_dir@'.$ds.'@package_name@'.$ds.'data'.$ds.'phpdocref'.$ds;
$aliases = array('bc' => 'bcmath',
'bzip2' => 'bz2',
'datetime' => 'date',
'image' => 'gd',
'pdo' => 'PDO',
'simplexml' => 'SimpleXML',
'spl' => 'SPL'
);
// Iterating over extension specific version files
foreach(glob($data_dir.'*'.$ds.'versions.xml') as $file) {
preg_match('/'.$ext_pattern.'/', $file, $matches);
$ext = $matches[2];
// real extension name, is case sensitive
if (isset($aliases[$ext])) {
$ext = $aliases[$ext];
}
$xml = simplexml_load_file($file);
foreach ($xml->function as $function) {
$name = (string) $function['name'];
if (strpos($name, '::') !== false) {
// Do not keep extension methods class
continue;
}
$from = (string) $function['from'];
/**
* Match strings like :
* "PHP 3 &gt;= 3.0.7, PHP 4, PHP 5" for _
* "PHP 5 &gt;= 5.1.0RC1" for date_modify
* "PHP 3 &gt;= 3.0.7, PHP 4 &lt;= 4.2.3" for aspell_check
* "PHP 5 &gt;= 5.2.0, PECL zip:1.1.0-1.9.0" for addfile
*/
if (preg_match('/>= ('.$version_pattern.')/', $from, $matches)) {
$init = $matches[1];
if (preg_match('/<= ('.$version_pattern.')/', $from, $matches)) {
$end = $matches[1];
} else {
$end = false;
}
if (preg_match('/(\.*)PECL ([a-zA-Z_]+):('.$version_pattern.')-('.
$version_pattern.')/', $from, $matches)) {
$function_exceptions[$ext][$name]['init'] = $matches[3];
$function_exceptions[$ext][$name]['end'] = $matches[4];
$function_exceptions[$ext][$name]['ext'] = $ext;
$function_exceptions[$ext][$name]['pecl'] = true;
} elseif (preg_match('/(\.*)PECL ([a-zA-Z_]+):('.$version_pattern.')/',
$from, $matches)) {
$function_exceptions[$ext][$name]['init'] = $matches[3];
$function_exceptions[$ext][$name]['end'] = $matches[3];
$function_exceptions[$ext][$name]['ext'] = $ext;
$function_exceptions[$ext][$name]['pecl'] = true;
} else {
$function_exceptions[$ext][$name]['init'] = $init;
if ($end !== false) {
$function_exceptions[$ext][$name]['end'] = $end;
}
$function_exceptions[$ext][$name]['ext'] = $ext;
$function_exceptions[$ext][$name]['pecl'] = false;
}
continue;
/**
* Match string like :
* "PHP 5 &lt;= 5.0.4" for php_check_syntax
* "PHP 4 &lt;= 4.2.3, PECL cybercash:1.18" for cybercash_base64_decode
*/
} elseif (preg_match('/<= ('.$version_pattern.')/', $from, $matches)) {
$end = $matches[1];
if (preg_match('/(\.*)PECL ([a-zA-Z_]+):('.$version_pattern.')-('.
$version_pattern.')/', $from, $matches)) {
$function_exceptions[$ext][$name]['init'] = $matches[3];
$function_exceptions[$ext][$name]['end'] = $matches[4];
$function_exceptions[$ext][$name]['ext'] = $ext;
$function_exceptions[$ext][$name]['pecl'] = true;
continue;
} elseif (preg_match('/(\.*)PECL ([a-zA-Z_]+):('.$version_pattern.')/',
$from, $matches)) {
$function_exceptions[$ext][$name]['init'] = $matches[3];
$function_exceptions[$ext][$name]['end'] = $matches[3];
$function_exceptions[$ext][$name]['ext'] = $ext;
$function_exceptions[$ext][$name]['pecl'] = true;
continue;
}
$function_exceptions[$ext][$name]['end'] = $end;
$function_exceptions[$ext][$name]['ext'] = $ext;
$function_exceptions[$ext][$name]['pecl'] = false;
/**
* Match string like :
* "4.0.2 - 4.0.6 only" for accept_connect
*/
} elseif (preg_match('/('.$version_pattern.') - ('.$version_pattern.') only/',
$from, $matches)) {
$function_exceptions[$ext][$name]['init'] = $matches[1];
$function_exceptions[$ext][$name]['end'] = $matches[2];
$function_exceptions[$ext][$name]['ext'] = $ext;
$function_exceptions[$ext][$name]['pecl'] = false;
continue;
/**
* Match string like :
* "PHP 3.0.5 only" for PHP3_UODBC_FIELD_NUM
* "PHP 4.0.6 only" for ocifreecoll
*/
} elseif (preg_match('/PHP (\d)('.$version_pattern.') only/',
$from, $matches)) {
$function_exceptions[$ext][$name]['init'] = $matches[1] .'.0.0';
$function_exceptions[$ext][$name]['end'] = $matches[2];
$function_exceptions[$ext][$name]['ext'] = $ext;
$function_exceptions[$ext][$name]['pecl'] = false;
continue;
/**
* Match string like :
* "PHP 5, PECL oci8:1.1-1.2.4" for oci_error
*/
} elseif (preg_match('/(\.*)PECL ([a-zA-Z_]+):('.$version_pattern.')-('.
$version_pattern.')/', $from, $matches)) {
$function_exceptions[$ext][$name]['init'] = $matches[3];
$function_exceptions[$ext][$name]['end'] = $matches[4];
$function_exceptions[$ext][$name]['ext'] = $ext;
$function_exceptions[$ext][$name]['pecl'] = true;
continue;
/**
* Match string like :
* "PHP 4, PHP 5, PECL mysql:1.0" for mysql_connect
*/
} elseif (preg_match('/(\.*)PECL ([a-zA-Z_]+):('.$version_pattern.')/',
$from, $matches)) {
$function_exceptions[$ext][$name]['init'] = $matches[3];
$function_exceptions[$ext][$name]['end'] = $matches[3];
$function_exceptions[$ext][$name]['ext'] = $ext;
$function_exceptions[$ext][$name]['pecl'] = true;
continue;
}
if (strpos($function['from'], 'PHP 3') !== false) {
$function_exceptions[$ext][$name]['init'] = '3.0.0';
$function_exceptions[$ext][$name]['ext'] = $ext;
$function_exceptions[$ext][$name]['pecl'] = false;
continue;
}
if (strpos($function['from'], 'PHP 4') !== false) {
$function_exceptions[$ext][$name]['init'] = '4.0.0';
$function_exceptions[$ext][$name]['ext'] = $ext;
$function_exceptions[$ext][$name]['pecl'] = false;
continue;
}
if (strpos($function['from'], 'PHP 5') !== false) {
$function_exceptions[$ext][$name]['init'] = '5.0.0';
$function_exceptions[$ext][$name]['ext'] = $ext;
$function_exceptions[$ext][$name]['pecl'] = false;
continue;
}
}
} // end-iterating over extension specific version files
?>

View File

@@ -0,0 +1,46 @@
<?php
/**
* Image processing (gd) extension Constant Exceptions dictionary
* for PHP_CompatInfo 1.9.0a1 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: gd_const_exceptions.php,v 1.1 2008/12/28 19:51:26 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @link http://www.php.net/manual/en/image.constants.php
* @since version 1.9.0 (2009-01-19)
*/
$constant_exceptions['gd'] = array (
'GD_EXTRA_VERSION' =>
array (
'init' => '5.2.4',
'name' => 'GD_EXTRA_VERSION',
),
'GD_MAJOR_VERSION' =>
array (
'init' => '5.2.4',
'name' => 'GD_MAJOR_VERSION',
),
'GD_MINOR_VERSION' =>
array (
'init' => '5.2.4',
'name' => 'GD_MINOR_VERSION',
),
'GD_RELEASE_VERSION' =>
array (
'init' => '5.2.4',
'name' => 'GD_RELEASE_VERSION',
),
'GD_VERSION' =>
array (
'init' => '5.2.4',
'name' => 'GD_VERSION',
),
);
?>

View File

@@ -0,0 +1,60 @@
<?php
/**
* Image processing (gd) extension Function Exceptions dictionary
* for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: gd_func_exceptions.php,v 1.1 2008/12/28 19:51:26 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0 (2009-01-19)
*/
if (!isset($function_exceptions['gd'])) {
$function_exceptions['gd'] = array();
}
$function_exceptions['gd'] = array_merge($function_exceptions['gd'], array(
'gd_info' =>
array (
'init' => '4.3.0',
'ext' => 'gd',
'pecl' => false,
),
'getimagesize' =>
array (
'init' => '4.0.0',
'ext' => 'gd',
'pecl' => false,
),
'iptcembed' =>
array (
'init' => '4.0.0',
'ext' => 'gd',
'pecl' => false,
),
'iptcparse' =>
array (
'init' => '4.0.0',
'ext' => 'gd',
'pecl' => false,
),
'jpeg2wbmp' =>
array (
'init' => '4.0.5',
'ext' => 'gd',
'pecl' => false,
),
'png2wbmp' =>
array (
'init' => '4.0.5',
'ext' => 'gd',
'pecl' => false,
))
);
?>

View File

@@ -0,0 +1,84 @@
<?php
/**
* gettext extension Function Exceptions dictionary
* for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: gettext_func_exceptions.php,v 1.1 2008/12/29 17:47:08 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0 (2009-01-19)
*/
if (!isset($function_exceptions['gettext'])) {
$function_exceptions['gettext'] = array();
}
$function_exceptions['gettext'] = array_merge($function_exceptions['gettext'], array(
'_' =>
array (
'init' => '4.0.0',
'ext' => 'gettext',
'pecl' => false,
),
'bind_textdomain_codeset' =>
array (
'init' => '4.2.0',
'ext' => 'gettext',
'pecl' => false,
),
'bindtextdomain' =>
array (
'init' => '4.0.0',
'ext' => 'gettext',
'pecl' => false,
),
'dcgettext' =>
array (
'init' => '4.0.0',
'ext' => 'gettext',
'pecl' => false,
),
'dcngettext' =>
array (
'init' => '4.2.0',
'ext' => 'gettext',
'pecl' => false,
),
'dgettext' =>
array (
'init' => '4.0.0',
'ext' => 'gettext',
'pecl' => false,
),
'dngettext' =>
array (
'init' => '4.2.0',
'ext' => 'gettext',
'pecl' => false,
),
'gettext' =>
array (
'init' => '4.0.0',
'ext' => 'gettext',
'pecl' => false,
),
'ngettext' =>
array (
'init' => '4.2.0',
'ext' => 'gettext',
'pecl' => false,
),
'textdomain' =>
array (
'init' => '4.0.0',
'ext' => 'gettext',
'pecl' => false,
))
);
?>

View File

@@ -0,0 +1,26 @@
<?php
/**
* GNU Multiple Precision (gmp) extension Constant Exceptions dictionary
* for PHP_CompatInfo 1.9.0a1 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: gmp_const_exceptions.php,v 1.1 2008/12/29 09:27:00 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @link http://www.php.net/manual/en/gmp.constants.php
* @since version 1.9.0 (2009-01-19)
*/
$constant_exceptions['gmp'] = array (
'GMP_VERSION' =>
array (
'init' => '5.2.2',
'name' => 'GMP_VERSION',
),
);
?>

View File

@@ -0,0 +1,48 @@
<?php
/**
* hash extension Function Exceptions dictionary
* for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: hash_func_exceptions.php,v 1.1 2008/12/29 09:43:12 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0 (2009-01-19)
*/
if (!isset($function_exceptions['hash'])) {
$function_exceptions['hash'] = array();
}
$function_exceptions['hash'] = array_merge($function_exceptions['hash'], array(
'md5' =>
array (
'init' => '4.0.0',
'ext' => 'hash',
'pecl' => false,
),
'md5_file' =>
array (
'init' => '4.2.0',
'ext' => 'hash',
'pecl' => false,
),
'sha1' =>
array (
'init' => '4.3.0',
'ext' => 'hash',
'pecl' => false,
),
'sha1_file' =>
array (
'init' => '4.3.0',
'ext' => 'hash',
'pecl' => false,
))
);
?>

View File

@@ -0,0 +1,41 @@
<?php
/**
* iconv extension Constant Exceptions dictionary
* for PHP_CompatInfo 1.9.0a1 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: iconv_const_exceptions.php,v 1.1 2008/12/29 09:52:32 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @link http://www.php.net/manual/en/iconv.constants.php
* @since version 1.9.0 (2009-01-19)
*/
$constant_exceptions['iconv'] = array (
'ICONV_IMPL' =>
array (
'init' => '4.3.0',
'name' => 'ICONV_IMPL',
),
'ICONV_MIME_DECODE_CONTINUE_ON_ERROR' =>
array (
'init' => '5.0.0',
'name' => 'ICONV_MIME_DECODE_CONTINUE_ON_ERROR',
),
'ICONV_MIME_DECODE_STRICT' =>
array (
'init' => '5.0.0',
'name' => 'ICONV_MIME_DECODE_STRICT',
),
'ICONV_VERSION' =>
array (
'init' => '4.3.0',
'name' => 'ICONV_VERSION',
),
);
?>

View File

@@ -0,0 +1,30 @@
<?php
/**
* iconv extension Function Exceptions dictionary
* for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: iconv_func_exceptions.php,v 1.1 2008/12/29 16:52:38 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0 (2009-01-19)
*/
if (!isset($function_exceptions['iconv'])) {
$function_exceptions['iconv'] = array();
}
$function_exceptions['iconv'] = array_merge($function_exceptions['iconv'], array(
'ob_iconv_handler' =>
array (
'init' => '4.0.5',
'ext' => 'iconv',
'pecl' => false,
))
);
?>

View File

@@ -0,0 +1,177 @@
<?php
/**
* internal (PHP Core) Constant Exceptions dictionary for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: internal_const_exceptions.php,v 1.1 2008/12/28 19:53:22 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @link http://www.php.net/manual/en/reserved.constants.php
* @since version 1.9.0 (2009-01-19)
*/
$constant_exceptions['internal'] = array (
'E_RECOVERABLE_ERROR' =>
array (
'init' => '5.2.0',
'name' => 'E_RECOVERABLE_ERROR',
),
'E_STRICT' =>
array (
'init' => '5.0.0',
'name' => 'E_STRICT',
),
'PHP_DEBUG' =>
array (
'init' => '5.2.7',
'name' => 'PHP_DEBUG',
),
'PHP_EOL' =>
array (
'init' => '4.3.10',
'name' => 'PHP_EOL',
),
'PHP_EXTRA_VERSION' =>
array (
'init' => '5.2.7',
'name' => 'PHP_EXTRA_VERSION',
),
'PHP_INT_MAX' =>
array (
'init' => '4.4.0',
'name' => 'PHP_INT_MAX',
),
'PHP_INT_SIZE' =>
array (
'init' => '4.4.0',
'name' => 'PHP_INT_SIZE',
),
'PHP_MAJOR_VERSION' =>
array (
'init' => '5.2.7',
'name' => 'PHP_MAJOR_VERSION',
),
'PHP_MINOR_VERSION' =>
array (
'init' => '5.2.7',
'name' => 'PHP_MINOR_VERSION',
),
'PHP_PREFIX' =>
array (
'init' => '4.3.0',
'name' => 'PHP_PREFIX',
),
'PHP_RELEASE_VERSION' =>
array (
'init' => '5.2.7',
'name' => 'PHP_RELEASE_VERSION',
),
'PHP_SAPI' =>
array (
'init' => '4.2.0',
'name' => 'PHP_SAPI',
),
'PHP_SHLIB_SUFFIX' =>
array (
'init' => '4.3.0',
'name' => 'PHP_SHLIB_SUFFIX',
),
'PHP_VERSION_ID' =>
array (
'init' => '5.2.7',
'name' => 'PHP_VERSION_ID',
),
'PHP_ZTS' =>
array (
'init' => '5.2.7',
'name' => 'PHP_ZTS',
),
'STDERR' =>
array (
'init' => '4.3.0',
'name' => 'STDERR',
),
'STDIN' =>
array (
'init' => '4.3.0',
'name' => 'STDIN',
),
'STDOUT' =>
array (
'init' => '4.3.0',
'name' => 'STDOUT',
),
'UPLOAD_ERR_CANT_WRITE' =>
array (
'init' => '5.1.0',
'name' => 'UPLOAD_ERR_CANT_WRITE',
),
'UPLOAD_ERR_EXTENSION' =>
array (
'init' => '5.2.0',
'name' => 'UPLOAD_ERR_EXTENSION',
),
'UPLOAD_ERR_FORM_SIZE' =>
array (
'init' => '4.3.0',
'name' => 'UPLOAD_ERR_FORM_SIZE',
),
'UPLOAD_ERR_INI_SIZE' =>
array (
'init' => '4.3.0',
'name' => 'UPLOAD_ERR_INI_SIZE',
),
'UPLOAD_ERR_NO_FILE' =>
array (
'init' => '4.3.0',
'name' => 'UPLOAD_ERR_NO_FILE',
),
'UPLOAD_ERR_NO_TMP_DIR' =>
array (
'init' => '4.3.10',
'name' => 'UPLOAD_ERR_NO_TMP_DIR',
),
'UPLOAD_ERR_OK' =>
array (
'init' => '4.3.0',
'name' => 'UPLOAD_ERR_OK',
),
'UPLOAD_ERR_PARTIAL' =>
array (
'init' => '4.3.0',
'name' => 'UPLOAD_ERR_PARTIAL',
),
// @link http://www.php.net/manual/en/language.constants.predefined.php
// Magic constants
'__CLASS__' =>
array (
'init' => '4.3.0',
'name' => '__CLASS__',
),
'__FILE__' =>
array (
'init' => '4.0.0',
'name' => '__FILE__',
),
'__FUNCTION__' =>
array (
'init' => '4.3.0',
'name' => '__FUNCTION__',
),
'__LINE__' =>
array (
'init' => '4.0.0',
'name' => '__LINE__',
),
'__METHOD__' =>
array (
'name' => '__METHOD__',
'init' => '5.0.0',
),
);
?>

View File

@@ -0,0 +1,54 @@
<?php
/**
* libxml extension Function Exceptions dictionary
* for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: libxml_func_exceptions.php,v 1.1 2008/12/29 17:10:06 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0 (2009-01-19)
*/
if (!isset($function_exceptions['libxml'])) {
$function_exceptions['libxml'] = array();
}
$function_exceptions['libxml'] = array_merge($function_exceptions['libxml'], array(
'libxml_clear_errors' =>
array (
'init' => '5.1.0',
'ext' => 'libxml',
'pecl' => false,
),
'libxml_get_errors' =>
array (
'init' => '5.1.0',
'ext' => 'libxml',
'pecl' => false,
),
'libxml_get_last_error' =>
array (
'init' => '5.1.0',
'ext' => 'libxml',
'pecl' => false,
),
'libxml_set_streams_context' =>
array (
'init' => '5.0.0',
'ext' => 'libxml',
'pecl' => false,
),
'libxml_use_internal_errors' =>
array (
'init' => '5.1.0',
'ext' => 'libxml',
'pecl' => false,
))
);
?>

View File

@@ -0,0 +1,41 @@
<?php
/**
* MySQL extension Constant Exceptions dictionary
* for PHP_CompatInfo 1.9.0a1 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: mysql_const_exceptions.php,v 1.1 2008/12/29 10:11:54 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @link http://www.php.net/manual/en/mysql.constants.php
* @since version 1.9.0 (2009-01-19)
*/
$constant_exceptions['mysql'] = array (
'MYSQL_CLIENT_COMPRESS' =>
array (
'init' => '4.3.0',
'name' => 'MYSQL_CLIENT_COMPRESS',
),
'MYSQL_CLIENT_IGNORE_SPACE' =>
array (
'init' => '4.3.0',
'name' => 'MYSQL_CLIENT_IGNORE_SPACE',
),
'MYSQL_CLIENT_INTERACTIVE' =>
array (
'init' => '4.3.0',
'name' => 'MYSQL_CLIENT_INTERACTIVE',
),
'MYSQL_CLIENT_SSL' =>
array (
'init' => '4.3.0',
'name' => 'MYSQL_CLIENT_SSL',
),
);
?>

View File

@@ -0,0 +1,31 @@
<?php
/**
* MySQL Improved (mysqli) extension Constant Exceptions dictionary
* for PHP_CompatInfo 1.9.0a1 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: mysqli_const_exceptions.php,v 1.1 2008/12/29 10:23:02 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @link http://www.php.net/manual/en/mysqli.constants.php
* @since version 1.9.0 (2009-01-19)
*/
$constant_exceptions['mysqli'] = array (
'MYSQLI_DATA_TRUNCATED' =>
array (
'init' => '5.1.0',
'name' => 'MYSQLI_DATA_TRUNCATED',
),
'MYSQLI_ENUM_FLAG' =>
array (
'init' => '5.3.0',
'name' => 'MYSQLI_ENUM_FLAG',
),
);
?>

View File

@@ -0,0 +1,126 @@
<?php
/**
* openssl extension Constant Exceptions dictionary
* for PHP_CompatInfo 1.9.0a1 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: openssl_const_exceptions.php,v 1.1 2008/12/29 10:45:36 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @link http://www.php.net/manual/en/openssl.constants.php
* @since version 1.9.0 (2009-01-19)
*/
$constant_exceptions['openssl'] = array (
'OPENSSL_ALGO_DSS1' =>
array (
'init' => '5.0.0',
'name' => 'OPENSSL_ALGO_DSS1',
),
'OPENSSL_ALGO_MD2' =>
array (
'init' => '5.0.0',
'name' => 'OPENSSL_ALGO_MD2',
),
'OPENSSL_ALGO_MD4' =>
array (
'init' => '5.0.0',
'name' => 'OPENSSL_ALGO_MD4',
),
'OPENSSL_ALGO_MD5' =>
array (
'init' => '5.0.0',
'name' => 'OPENSSL_ALGO_MD5',
),
'OPENSSL_ALGO_SHA1' =>
array (
'init' => '5.0.0',
'name' => 'OPENSSL_ALGO_SHA1',
),
'OPENSSL_CIPHER_3DES' =>
array (
'init' => '4.3.0',
'name' => 'OPENSSL_CIPHER_3DES',
),
'OPENSSL_CIPHER_DES' =>
array (
'init' => '4.3.0',
'name' => 'OPENSSL_CIPHER_DES',
),
'OPENSSL_CIPHER_RC2_128' =>
array (
'init' => '4.3.0',
'name' => 'OPENSSL_CIPHER_RC2_128',
),
'OPENSSL_CIPHER_RC2_40' =>
array (
'init' => '4.3.0',
'name' => 'OPENSSL_CIPHER_RC2_40',
),
'OPENSSL_CIPHER_RC2_64' =>
array (
'init' => '4.3.0',
'name' => 'OPENSSL_CIPHER_RC2_64',
),
'OPENSSL_VERSION_NUMBER' =>
array (
'init' => '5.2.0',
'name' => 'OPENSSL_VERSION_NUMBER',
),
'OPENSSL_VERSION_TEXT' =>
array (
'init' => '5.2.0',
'name' => 'OPENSSL_VERSION_TEXT',
),
'PKCS7_BINARY' =>
array (
'init' => '4.0.6',
'name' => 'PKCS7_BINARY',
),
'PKCS7_DETACHED' =>
array (
'init' => '4.0.6',
'name' => 'PKCS7_DETACHED',
),
'PKCS7_NOATTR' =>
array (
'init' => '4.0.6',
'name' => 'PKCS7_NOATTR',
),
'PKCS7_NOCERTS' =>
array (
'init' => '4.0.6',
'name' => 'PKCS7_NOCERTS',
),
'PKCS7_NOCHAIN' =>
array (
'init' => '4.0.6',
'name' => 'PKCS7_NOCHAIN',
),
'PKCS7_NOINTERN' =>
array (
'init' => '4.0.6',
'name' => 'PKCS7_NOINTERN',
),
'PKCS7_NOSIGS' =>
array (
'init' => '4.0.6',
'name' => 'PKCS7_NOSIGS',
),
'PKCS7_NOVERIFY' =>
array (
'init' => '4.0.6',
'name' => 'PKCS7_NOVERIFY',
),
'PKCS7_TEXT' =>
array (
'init' => '4.0.6',
'name' => 'PKCS7_TEXT',
),
);
?>

View File

@@ -0,0 +1,22 @@
#!@php_bin@
<?php
/**
* Get the Compatibility info from PHP CLI
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: pci.php,v 1.3 2008/07/22 20:26:59 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @access public
*/
require_once 'PHP/CompatInfo/Cli.php';
$cli = new PHP_CompatInfo_Cli();
$cli->run();
?>

View File

@@ -0,0 +1,15 @@
@echo off
rem CLI Script to build system for extensions support
rem PHP version 5
rem @category PHP
rem @package PHP_CompatInfo
rem @author Laurent Laville <pear@laurent-laville.org>
rem @license http://www.opensource.org/licenses/bsd-license.php BSD
rem @version CVS: $Id: pciconf.bat,v 1.1 2008/11/29 18:18:55 farell Exp $
rem @link http://pear.php.net/package/PHP_CompatInfo
rem @since File available since Release 1.9.0b1
"@php_bin@" -f "@bin_dir@\pciconf" -- %*

View File

@@ -0,0 +1,70 @@
<?php
/**
* pcre extension Constant Exceptions dictionary for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: pcre_const_exceptions.php,v 1.1 2008/12/28 19:54:40 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @link http://www.php.net/manual/en/pcre.constants.php
* @since version 1.9.0 (2009-01-19)
*/
$constant_exceptions['pcre'] = array (
'PREG_OFFSET_CAPTURE' =>
array (
'init' => '4.3.0',
'name' => 'PREG_OFFSET_CAPTURE',
),
'PREG_SPLIT_DELIM_CAPTURE' =>
array (
'init' => '4.0.5',
'name' => 'PREG_SPLIT_DELIM_CAPTURE',
),
'PREG_SPLIT_OFFSET_CAPTURE' =>
array (
'init' => '4.3.0',
'name' => 'PREG_SPLIT_OFFSET_CAPTURE',
),
'PREG_NO_ERROR' =>
array (
'init' => '5.2.0',
'name' => 'PREG_NO_ERROR',
),
'PREG_INTERNAL_ERROR' =>
array (
'init' => '5.2.0',
'name' => 'PREG_INTERNAL_ERROR',
),
'PREG_BACKTRACK_LIMIT_ERROR' =>
array (
'init' => '5.2.0',
'name' => 'PREG_BACKTRACK_LIMIT_ERROR',
),
'PREG_RECURSION_LIMIT_ERROR' =>
array (
'init' => '5.2.0',
'name' => 'PREG_RECURSION_LIMIT_ERROR',
),
'PREG_BAD_UTF8_ERROR' =>
array (
'init' => '5.2.0',
'name' => 'PREG_BAD_UTF8_ERROR',
),
'PREG_BAD_UTF8_OFFSET_ERROR' =>
array (
'init' => '5.3.0',
'name' => 'PREG_BAD_UTF8_OFFSET_ERROR',
),
'PCRE_VERSION' =>
array (
'init' => '5.2.4',
'name' => 'PCRE_VERSION',
),
);
?>

View File

@@ -0,0 +1,54 @@
<?php
/**
* Standard PHP Library (SPL) extension Function Exceptions dictionary
* for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: spl_func_exceptions.php,v 1.2 2008/12/29 13:14:12 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0 (2009-01-19)
*/
if (!isset($function_exceptions['SPL'])) {
$function_exceptions['SPL'] = array();
}
$function_exceptions['SPL'] = array_merge($function_exceptions['SPL'], array(
'class_implements' =>
array (
'init' => '5.0.0',
'ext' => 'SPL',
'pecl' => false,
),
'class_parents' =>
array (
'init' => '5.0.0',
'ext' => 'SPL',
'pecl' => false,
),
'iterator_apply' =>
array (
'init' => '5.2.0',
'ext' => 'SPL',
'pecl' => false,
),
'iterator_count' =>
array (
'init' => '5.1.3',
'ext' => 'SPL',
'pecl' => false,
),
'iterator_to_array' =>
array (
'init' => '5.1.3',
'ext' => 'SPL',
'pecl' => false,
))
);
?>

View File

@@ -0,0 +1,30 @@
<?php
/**
* standard extension Class Exceptions dictionary for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: standard_class_exceptions.php,v 1.1 2008/12/28 19:56:18 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
*/
$class_exceptions['standard'] = array (
'Exception' =>
array (
'init' => '5.0.0',
),
'php_user_filter' =>
array (
'init' => '5.0.0',
),
'stdClass' =>
array (
'init' => '4.0.0',
),
);
?>

View File

@@ -0,0 +1,100 @@
<?php
/**
* standard extension Constant Exceptions dictionary for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: standard_const_exceptions.php,v 1.1 2008/12/28 19:56:18 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @link http://www.php.net/manual/en/reserved.constants.php
* @since version 1.9.0 (2009-01-19)
*/
$constant_exceptions['standard'] = array (
'ABSTRACT' =>
array (
'init' => '5.0.0',
'name' => 'abstract',
),
'CATCH' =>
array (
'init' => '5.0.0',
'name' => 'catch',
),
'FINAL' =>
array (
'init' => '5.0.0',
'name' => 'final',
),
'INSTANCEOF' =>
array (
'init' => '5.0.0',
'name' => 'instanceof',
),
'PRIVATE' =>
array (
'init' => '5.0.0',
'name' => 'private',
),
'PROTECTED' =>
array (
'init' => '5.0.0',
'name' => 'protected',
),
'PUBLIC' =>
array (
'init' => '5.0.0',
'name' => 'public',
),
'THROW' =>
array (
'init' => '5.0.0',
'name' => 'throw',
),
'TRY' =>
array (
'init' => '5.0.0',
'name' => 'try',
),
'CLONE' =>
array (
'init' => '5.0.0',
'name' => 'clone',
),
'INTERFACE' =>
array (
'init' => '5.0.0',
'name' => 'interface',
),
'IMPLEMENTS' =>
array (
'init' => '5.0.0',
'name' => 'implements',
),
'DIRECTORY_SEPARATOR' =>
array (
'init' => '4.0.6',
'name' => 'DIRECTORY_SEPARATOR',
),
'FILE_BINARY' =>
array (
'init' => '5.2.7',
'name' => 'FILE_BINARY',
),
'FILE_TEXT' =>
array (
'init' => '5.2.7',
'name' => 'FILE_TEXT',
),
'PATH_SEPARATOR' =>
array (
'init' => '4.3.0',
'name' => 'PATH_SEPARATOR',
),
);
?>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,42 @@
<?php
/**
* xmlwriter extension Function Exceptions dictionary
* for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: xmlwriter_func_exceptions.php,v 1.1 2008/12/29 13:48:44 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0 (2009-01-19)
*/
if (!isset($function_exceptions['xmlwriter'])) {
$function_exceptions['xmlwriter'] = array();
}
$function_exceptions['xmlwriter'] = array_merge($function_exceptions['xmlwriter'], array(
'xmlwriter_end_dtd_entity' =>
array (
'init' => '5.2.1',
'ext' => 'xmlwriter',
'pecl' => false,
),
'xmlwriter_start_dtd_entity' =>
array (
'init' => '5.2.1',
'ext' => 'xmlwriter',
'pecl' => false,
),
'xmlwriter_write_dtd_entity' =>
array (
'init' => '5.2.1',
'ext' => 'xmlwriter',
'pecl' => false,
))
);
?>

View File

@@ -0,0 +1,55 @@
<?php
/**
* xsl extension Constant Exceptions dictionary for PHP_CompatInfo 1.9.0a1 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: xsl_const_exceptions.php,v 1.1 2009/01/03 10:19:22 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @link http://www.php.net/manual/en/xsl.constants.php
* @since version 1.9.0 (2009-01-19)
*/
$constant_exceptions['xsl'] = array (
'LIBEXSLT_DOTTED_VERSION' =>
array (
'init' => '5.1.2',
'name' => 'LIBEXSLT_DOTTED_VERSION',
),
'LIBEXSLT_VERSION' =>
array (
'init' => '5.1.2',
'name' => 'LIBEXSLT_VERSION',
),
'LIBXSLT_DOTTED_VERSION' =>
array (
'init' => '5.1.2',
'name' => 'LIBXSLT_DOTTED_VERSION',
),
'LIBXSLT_VERSION' =>
array (
'init' => '5.1.2',
'name' => 'LIBXSLT_VERSION',
),
'XSL_CLONE_ALWAYS' =>
array (
'init' => '5.0.0',
'name' => 'XSL_CLONE_ALWAYS',
),
'XSL_CLONE_AUTO' =>
array (
'init' => '5.0.0',
'name' => 'XSL_CLONE_AUTO',
),
'XSL_CLONE_NEVER' =>
array (
'init' => '5.0.0',
'name' => 'XSL_CLONE_NEVER',
),
);
?>

View File

@@ -0,0 +1,36 @@
<?php
/**
* zlib extension Function Exceptions dictionary
* for PHP_CompatInfo 1.9.0b2 or better
*
* PHP versions 4 and 5
*
* @category PHP
* @package PHP_CompatInfo
* @author Davey Shafik <davey@php.net>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version CVS: $Id: zlib_func_exceptions.php,v 1.1 2008/12/29 14:11:55 farell Exp $
* @link http://pear.php.net/package/PHP_CompatInfo
* @since version 1.9.0 (2009-01-19)
*/
if (!isset($function_exceptions['zlib'])) {
$function_exceptions['zlib'] = array();
}
$function_exceptions['zlib'] = array_merge($function_exceptions['zlib'], array(
'ob_gzhandler' =>
array (
'init' => '4.0.4',
'ext' => 'zlib',
'pecl' => false,
),
'readgzfile' =>
array (
'init' => '4.0.0',
'ext' => 'zlib',
'pecl' => false,
))
);
?>