Permalink
Browse files

Update to PEAR 1.7.2, Image_Canvas 0.3.1, Image_Color 1.0.3, Image_Gr…

…aph 0.7.2, XML_Parser 1.3.1.

Removed PHP_Compat, and references to it.
Removed ionCube/Zend/mmCache compatibility checks in test.php script.
Changed minimum PHP requirement to 5.0 in test.php script.
  • Loading branch information...
anubis
anubis committed Jan 5, 2009
1 parent 60b674c commit fae6352bf28fcb8b2ce16a8a6e72dafc8373019c
Showing 384 changed files with 34,058 additions and 44,432 deletions.
View
@@ -1,133 +0,0 @@
-<?php
-// +----------------------------------------------------------------------+
-// | PHP Version 4 |
-// +----------------------------------------------------------------------+
-// | Copyright (c) 1997-2004 The PHP Group |
-// +----------------------------------------------------------------------+
-// | This source file is subject to version 3.0 of the PHP license, |
-// | that is bundled with this package in the file LICENSE, and is |
-// | available at through the world-wide-web at |
-// | http://www.php.net/license/3_0.txt. |
-// | If you did not receive a copy of the PHP license and are unable to |
-// | obtain it through the world-wide-web, please send a note to |
-// | license@php.net so we can mail you a copy immediately. |
-// +----------------------------------------------------------------------+
-// | Authors: Aidan Lister <aidan@php.net> |
-// +----------------------------------------------------------------------+
-//
-// $Id: Compat.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Provides missing functionality in the form of constants and functions
- * for older versions of PHP
- *
- * Optionally, you may simply include the file.
- * e.g. require_once 'PHP/Compat/Function/scandir.php';
- *
- * @category PHP
- * @package PHP_Compat
- * @version $Revision: 1.1 $
- * @author Aidan Lister <aidan@php.net>
- * @static
- */
-class PHP_Compat
-{
- /**
- * Load a function, or array of functions
- *
- * @param string|array $function The function or functions to load
- * @return bool|array TRUE if loaded, FALSE if not
- */
- function loadFunction($function)
- {
- // Recursiveness
- if (is_array($function)) {
- $res = array();
- foreach ($function as $singlefunc) {
- $res[$singlefunc] = PHP_Compat::loadFunction($singlefunc);
- }
-
- return $res;
- }
-
- // Load function
- if (!function_exists($function)) {
- $file = sprintf('PHP/Compat/Function/%s.php', $function);
- if ((@include_once $file) !== false) {
- return true;
- }
- }
-
- return false;
- }
-
-
- /**
- * Load a constant, or array of constants
- *
- * @param string|array $constant The constant or constants to load
- * @return bool|array TRUE if loaded, FALSE if not
- */
- function loadConstant($constant)
- {
- // Recursiveness
- if (is_array($constant)) {
- $res = array();
- foreach ($constant as $singleconst) {
- $res[$singleconst] = PHP_Compat::loadConstant($singleconst);
- }
-
- return $res;
- }
-
- // Load constant
- $file = sprintf('PHP/Compat/Constant/%s.php', $constant);
- if ((@include_once $file) !== false) {
- return true;
- }
-
- return false;
- }
-
-
- /**
- * Load components for a PHP version
- *
- * @param string $version PHP Version to load
- * @return array An associative array of component names loaded
- */
- function loadVersion($version = null)
- {
- // Include list of components
- require 'PHP/Compat/Components.php';
-
- // Include version_compare to work with older versions
- PHP_Compat::loadFunction('version_compare');
-
- // Init
- $phpversion = phpversion();
- $methods = array(
- 'function' => 'loadFunction',
- 'constant' => 'loadConstant');
- $res = array();
-
- // Iterate each component
- foreach ($components as $type => $slice) {
- foreach ($slice as $component => $compversion) {
- if (($version === null &&
- 1 === version_compare($compversion, $phpversion)) || // C > PHP
- (0 === version_compare($compversion, $version) || // C = S
- 1 === version_compare($compversion, $phpversion))) { // C > PHP
-
- $res[$type][$component] =
- call_user_func(array('PHP_Compat', $methods[$type]), $component);
- }
- }
- }
-
- return $res;
- }
-}
-
-?>
@@ -1,71 +0,0 @@
-<?php
-// +----------------------------------------------------------------------+
-// | PHP Version 4 |
-// +----------------------------------------------------------------------+
-// | Copyright (c) 1997-2004 The PHP Group |
-// +----------------------------------------------------------------------+
-// | This source file is subject to version 3.0 of the PHP license, |
-// | that is bundled with this package in the file LICENSE, and is |
-// | available at through the world-wide-web at |
-// | http://www.php.net/license/3_0.txt. |
-// | If you did not receive a copy of the PHP license and are unable to |
-// | obtain it through the world-wide-web, please send a note to |
-// | license@php.net so we can mail you a copy immediately. |
-// +----------------------------------------------------------------------+
-// | Authors: Aidan Lister <aidan@php.net> |
-// +----------------------------------------------------------------------+
-//
-// $Id: Components.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-// Functions
-$components['function']['array_combine'] = '5.0.0';
-$components['function']['array_diff_assoc'] = '4.3.0';
-$components['function']['array_diff_key'] = '5.0.2';
-$components['function']['array_diff_ukey'] = '5.0.2';
-$components['function']['array_intersect_assoc'] = '5.0.0';
-$components['function']['array_intersect_key'] = '5.0.2';
-$components['function']['array_intersect_uassoc'] = '5.0.0';
-$components['function']['array_intersect_ukey'] = '5.0.2';
-$components['function']['array_udiff'] = '5.0.0';
-$components['function']['array_udiff_assoc'] = '5.0.0';
-$components['function']['array_udiff_uassoc'] = '5.0.0';
-$components['function']['array_uintersect'] = '5.0.0';
-$components['function']['array_uintersect_assoc'] = '5.0.0';
-$components['function']['array_uintersect_uassoc'] = '5.0.0';
-$components['function']['array_walk_recursive'] = '5.0.0';
-$components['function']['clone'] = '5.0.0';
-$components['function']['convert_uudecode'] = '5.0.0';
-$components['function']['convert_uuencode'] = '5.0.0';
-$components['function']['debug_print_backtrace'] = '5.0.0';
-$components['function']['file_get_contents'] = '4.3.0';
-$components['function']['file_put_contents'] = '5.0.0';
-$components['function']['fprintf'] = '5.0.0';
-$components['function']['get_headers'] = '5.0.0';
-$components['function']['get_include_path'] = '4.3.0';
-$components['function']['html_entity_decode'] = '4.3.0';
-$components['function']['http_build_query'] = '5.0.0';
-$components['function']['image_type_to_mime_type'] = '4.3.0';
-$components['function']['ob_get_clean'] = '4.3.0';
-$components['function']['ob_get_flush'] = '4.3.0';
-$components['function']['php_strip_whitespace'] = '5.0.0';
-$components['function']['restore_include_path'] = '4.3.0';
-$components['function']['scandir'] = '5.0.0';
-$components['function']['set_include_path'] = '4.3.0';
-$components['function']['str_ireplace'] = '5.0.0';
-$components['function']['str_shuffle'] = '4.3.0';
-$components['function']['str_split'] = '5.0.0';
-$components['function']['str_word_count'] = '4.3.0';
-$components['function']['stripos'] = '5.0.0';
-$components['function']['strpbrk'] = '5.0.0';
-$components['function']['strripos'] = '5.0.0';
-$components['function']['substr_compare'] = '5.0.0';
-
-// Constants
-$components['constant']['E_STRICT'] = '5.0.0';
-$components['constant']['FILE'] = '4.3.0';
-$components['constant']['PHP_EOL'] = '5.0.1';
-$components['constant']['STD'] = '4.3.0';
-$components['constant']['T'] = '5.0.0';
-$components['constant']['UPLOAD_ERR'] = '4.3.0';
-?>
@@ -1,35 +0,0 @@
-<?php
-// +----------------------------------------------------------------------+
-// | PHP Version 4 |
-// +----------------------------------------------------------------------+
-// | Copyright (c) 1997-2004 The PHP Group |
-// +----------------------------------------------------------------------+
-// | This source file is subject to version 3.0 of the PHP license, |
-// | that is bundled with this package in the file LICENSE, and is |
-// | available at through the world-wide-web at |
-// | http://www.php.net/license/3_0.txt. |
-// | If you did not receive a copy of the PHP license and are unable to |
-// | obtain it through the world-wide-web, please send a note to |
-// | license@php.net so we can mail you a copy immediately. |
-// +----------------------------------------------------------------------+
-// | Authors: Aidan Lister <aidan@php.net> |
-// +----------------------------------------------------------------------+
-//
-// $Id: E_STRICT.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace constant E_STRICT
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/ref.errorfunc
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5
- */
-if (!defined('E_STRICT')) {
- define('E_STRICT', 2048);
-}
-
-?>
@@ -1,51 +0,0 @@
-<?php
-// +----------------------------------------------------------------------+
-// | PHP Version 4 |
-// +----------------------------------------------------------------------+
-// | Copyright (c) 1997-2004 The PHP Group |
-// +----------------------------------------------------------------------+
-// | This source file is subject to version 3.0 of the PHP license, |
-// | that is bundled with this package in the file LICENSE, and is |
-// | available at through the world-wide-web at |
-// | http://www.php.net/license/3_0.txt. |
-// | If you did not receive a copy of the PHP license and are unable to |
-// | obtain it through the world-wide-web, please send a note to |
-// | license@php.net so we can mail you a copy immediately. |
-// +----------------------------------------------------------------------+
-// | Authors: Aidan Lister <aidan@php.net> |
-// +----------------------------------------------------------------------+
-//
-// $Id: FILE.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace filesystem constants
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/ref.filesystem
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5
- */
-if (!defined('FILE_USE_INCLUDE_PATH')) {
- define('FILE_USE_INCLUDE_PATH', 1);
-}
-
-if (!defined('FILE_IGNORE_NEW_LINES')) {
- define('FILE_IGNORE_NEW_LINES', 2);
-}
-
-if (!defined('FILE_SKIP_EMPTY_LINES')) {
- define('FILE_SKIP_EMPTY_LINES', 4);
-}
-
-if (!defined('FILE_APPEND')) {
- define('FILE_APPEND', 8);
-}
-
-if (!defined('FILE_NO_DEFAULT_CONTEXT')) {
- define('FILE_NO_DEFAULT_CONTEXT', 16);
-}
-
-?>
@@ -1,49 +0,0 @@
-<?php
-// +----------------------------------------------------------------------+
-// | PHP Version 4 |
-// +----------------------------------------------------------------------+
-// | Copyright (c) 1997-2004 The PHP Group |
-// +----------------------------------------------------------------------+
-// | This source file is subject to version 3.0 of the PHP license, |
-// | that is bundled with this package in the file LICENSE, and is |
-// | available at through the world-wide-web at |
-// | http://www.php.net/license/3_0.txt. |
-// | If you did not receive a copy of the PHP license and are unable to |
-// | obtain it through the world-wide-web, please send a note to |
-// | license@php.net so we can mail you a copy immediately. |
-// +----------------------------------------------------------------------+
-// | Authors: Aidan Lister <aidan@php.net> |
-// +----------------------------------------------------------------------+
-//
-// $Id: PHP_EOL.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace PHP_EOL constant
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/reserved.constants.core
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5.0.2
- */
-if (!defined('PHP_EOL')) {
- switch (strtoupper(substr(PHP_OS, 0, 3))) {
- // Windows
- case 'WIN':
- define('PHP_EOL', "\r\n");
- break;
-
- // Mac
- case 'DAR':
- define('PHP_EOL', "\r");
- break;
-
- // Unix
- default:
- define('PHP_EOL', "\n");
- }
-}
-
-?>
@@ -1,43 +0,0 @@
-<?php
-// +----------------------------------------------------------------------+
-// | PHP Version 4 |
-// +----------------------------------------------------------------------+
-// | Copyright (c) 1997-2004 The PHP Group |
-// +----------------------------------------------------------------------+
-// | This source file is subject to version 3.0 of the PHP license, |
-// | that is bundled with this package in the file LICENSE, and is |
-// | available at through the world-wide-web at |
-// | http://www.php.net/license/3_0.txt. |
-// | If you did not receive a copy of the PHP license and are unable to |
-// | obtain it through the world-wide-web, please send a note to |
-// | license@php.net so we can mail you a copy immediately. |
-// +----------------------------------------------------------------------+
-// | Authors: Aidan Lister <aidan@php.net> |
-// +----------------------------------------------------------------------+
-//
-// $Id: STD.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace commandline constants
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/features.commandline
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 4.3.0
- */
-if (!defined('STDIN')) {
- define('STDIN', fopen('php://stdin', 'r'));
-}
-
-if (!defined('STDOUT')) {
- define('STDOUT', fopen('php://stdout', 'w'));
-}
-
-if (!defined('STDERR')) {
- define('STDERR', fopen('php://stderr', 'w'));
-}
-
-?>
Oops, something went wrong.

0 comments on commit fae6352

Please sign in to comment.