Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit fae6352bf28fcb8b2ce16a8a6e72dafc8373019c 1 parent 60b674c
anubis authored
Showing with 17,307 additions and 20,536 deletions.
  1. +0 −133 includes/pear/Compat.php
  2. +0 −71 includes/pear/Compat/Components.php
  3. +0 −35 includes/pear/Compat/Constant/E_STRICT.php
  4. +0 −51 includes/pear/Compat/Constant/FILE.php
  5. +0 −49 includes/pear/Compat/Constant/PHP_EOL.php
  6. +0 −43 includes/pear/Compat/Constant/STD.php
  7. +0 −72 includes/pear/Compat/Constant/T.php
  8. +0 −51 includes/pear/Compat/Constant/UPLOAD_ERR.php
  9. +0 −71 includes/pear/Compat/Function/array_combine.php
  10. +0 −75 includes/pear/Compat/Function/array_diff_assoc.php
  11. +0 −66 includes/pear/Compat/Function/array_diff_key.php
  12. +0 −83 includes/pear/Compat/Function/array_diff_uassoc.php
  13. +0 −79 includes/pear/Compat/Function/array_diff_ukey.php
  14. +0 −69 includes/pear/Compat/Function/array_intersect_assoc.php
  15. +0 −67 includes/pear/Compat/Function/array_intersect_key.php
  16. +0 −90 includes/pear/Compat/Function/array_intersect_uassoc.php
  17. +0 −79 includes/pear/Compat/Function/array_intersect_ukey.php
  18. +0 −83 includes/pear/Compat/Function/array_udiff.php
  19. +0 −85 includes/pear/Compat/Function/array_udiff_assoc.php
  20. +0 −82 includes/pear/Compat/Function/array_udiff_uassoc.php
  21. +0 −82 includes/pear/Compat/Function/array_uintersect.php
  22. +0 −81 includes/pear/Compat/Function/array_uintersect_assoc.php
  23. +0 −97 includes/pear/Compat/Function/array_uintersect_uassoc.php
  24. +0 −68 includes/pear/Compat/Function/array_walk_recursive.php
  25. +0 −56 includes/pear/Compat/Function/clone.php
  26. +0 −79 includes/pear/Compat/Function/convert_uudecode.php
  27. +0 −79 includes/pear/Compat/Function/convert_uuencode.php
  28. +0 −67 includes/pear/Compat/Function/debug_print_backtrace.php
  29. +0 −57 includes/pear/Compat/Function/file_get_contents.php
  30. +0 −104 includes/pear/Compat/Function/file_put_contents.php
  31. +0 −54 includes/pear/Compat/Function/fprintf.php
  32. +0 −77 includes/pear/Compat/Function/get_headers.php
  33. +0 −39 includes/pear/Compat/Function/get_include_path.php
  34. +0 −72 includes/pear/Compat/Function/html_entity_decode.php
  35. +0 −99 includes/pear/Compat/Function/http_build_query.php
  36. +0 −147 includes/pear/Compat/Function/image_type_to_mime_type.php
  37. +0 −46 includes/pear/Compat/Function/ob_get_clean.php
  38. +0 −46 includes/pear/Compat/Function/ob_get_flush.php
  39. +0 −86 includes/pear/Compat/Function/php_strip_whitespace.php
  40. +0 −37 includes/pear/Compat/Function/restore_include_path.php
  41. +0 −69 includes/pear/Compat/Function/scandir.php
  42. +0 −37 includes/pear/Compat/Function/set_include_path.php
  43. +0 −113 includes/pear/Compat/Function/str_ireplace.php
  44. +0 −53 includes/pear/Compat/Function/str_shuffle.php
  45. +0 −52 includes/pear/Compat/Function/str_split.php
  46. +0 −68 includes/pear/Compat/Function/str_word_count.php
  47. +0 −73 includes/pear/Compat/Function/stripos.php
  48. +0 −63 includes/pear/Compat/Function/strpbrk.php
  49. +0 −82 includes/pear/Compat/Function/strripos.php
  50. +0 −74 includes/pear/Compat/Function/substr_compare.php
  51. +732 −708 includes/pear/Image/Canvas.php
  52. +181 −181 includes/pear/Image/Canvas/Color.php
  53. +11 −11 includes/pear/Image/Canvas/Fonts/README
  54. +24 −24 includes/pear/Image/Canvas/Fonts/fontmap.txt
  55. +1,792 −1,631 includes/pear/Image/Canvas/GD.php
  56. +118 −118 includes/pear/Image/Canvas/GD/JPG.php
  57. +124 −124 includes/pear/Image/Canvas/GD/PNG.php
  58. +353 −353 includes/pear/Image/Canvas/ImageMap.php
  59. +1,011 −1,006 includes/pear/Image/Canvas/PDF.php
  60. +978 −884 includes/pear/Image/Canvas/SVG.php
  61. +216 −216 includes/pear/Image/Canvas/Tool.php
  62. +277 −277 includes/pear/Image/Canvas/WithMap.php
  63. +720 −716 includes/pear/Image/Color.php
  64. +850 −852 includes/pear/Image/Graph.php
  65. +1,689 −1,642 includes/pear/Image/Graph/Axis.php
  66. +436 −425 includes/pear/Image/Graph/Axis/Category.php
  67. +151 −174 includes/pear/Image/Graph/Axis/Logarithmic.php
  68. +155 −155 includes/pear/Image/Graph/Axis/Marker/Area.php
  69. +123 −123 includes/pear/Image/Graph/Axis/Marker/Line.php
  70. +203 −203 includes/pear/Image/Graph/Axis/Radar.php
  71. +312 −307 includes/pear/Image/Graph/Common.php
  72. +29 −29 includes/pear/Image/Graph/Config.php
  73. +224 −224 includes/pear/Image/Graph/Constants.php
  74. +73 −73 includes/pear/Image/Graph/DataPreprocessor.php
  75. +102 −102 includes/pear/Image/Graph/DataPreprocessor/Array.php
  76. +65 −65 includes/pear/Image/Graph/DataPreprocessor/Currency.php
  77. +89 −89 includes/pear/Image/Graph/DataPreprocessor/Date.php
  78. +89 −89 includes/pear/Image/Graph/DataPreprocessor/Formatted.php
  79. +91 −91 includes/pear/Image/Graph/DataPreprocessor/Function.php
  80. +88 −88 includes/pear/Image/Graph/DataPreprocessor/NumberText.php
  81. +78 −78 includes/pear/Image/Graph/DataPreprocessor/RomanNumerals.php
  82. +66 −66 includes/pear/Image/Graph/DataPreprocessor/Sequential.php
  83. +66 −66 includes/pear/Image/Graph/DataSelector.php
  84. +96 −96 includes/pear/Image/Graph/DataSelector/EveryNthPoint.php
  85. +67 −67 includes/pear/Image/Graph/DataSelector/NoZeros.php
  86. +89 −89 includes/pear/Image/Graph/DataSelector/Values.php
  87. +482 −482 includes/pear/Image/Graph/Dataset.php
  88. +146 −146 includes/pear/Image/Graph/Dataset/Function.php
  89. +76 −76 includes/pear/Image/Graph/Dataset/Random.php
  90. +113 −113 includes/pear/Image/Graph/Dataset/Sequential.php
  91. +259 −259 includes/pear/Image/Graph/Dataset/Trivial.php
  92. +184 −184 includes/pear/Image/Graph/Dataset/VectorFunction.php
  93. +762 −726 includes/pear/Image/Graph/Element.php
  94. +63 −63 includes/pear/Image/Graph/Figure/Circle.php
  95. +96 −96 includes/pear/Image/Graph/Figure/Ellipse.php
  96. +93 −93 includes/pear/Image/Graph/Figure/Polygon.php
  97. +95 −95 includes/pear/Image/Graph/Figure/Rectangle.php
  98. +62 −62 includes/pear/Image/Graph/Fill.php
  99. +136 −136 includes/pear/Image/Graph/Fill/Array.php
  100. +148 −148 includes/pear/Image/Graph/Fill/Gradient.php
  101. +96 −96 includes/pear/Image/Graph/Fill/Image.php
  102. +157 −157 includes/pear/Image/Graph/Font.php
  103. +174 −174 includes/pear/Image/Graph/Grid.php
  104. +116 −116 includes/pear/Image/Graph/Grid/Bars.php
  105. +113 −113 includes/pear/Image/Graph/Grid/Lines.php
  106. +110 −110 includes/pear/Image/Graph/Grid/Polar.php
  107. +16 −16 includes/pear/Image/Graph/Images/Maps/README
  108. +218 −218 includes/pear/Image/Graph/Layout.php
  109. +185 −185 includes/pear/Image/Graph/Layout/Horizontal.php
  110. +200 −200 includes/pear/Image/Graph/Layout/Matrix.php
  111. +107 −107 includes/pear/Image/Graph/Layout/Vertical.php
  112. +384 −384 includes/pear/Image/Graph/Legend.php
  113. +128 −128 includes/pear/Image/Graph/Line/Array.php
  114. +75 −75 includes/pear/Image/Graph/Line/Dashed.php
  115. +66 −66 includes/pear/Image/Graph/Line/Dotted.php
  116. +89 −89 includes/pear/Image/Graph/Line/Formatted.php
  117. +104 −104 includes/pear/Image/Graph/Line/Solid.php
  118. +152 −152 includes/pear/Image/Graph/Logo.php
  119. +122 −122 includes/pear/Image/Graph/Marker.php
  120. +104 −104 includes/pear/Image/Graph/Marker/Array.php
  121. +108 −108 includes/pear/Image/Graph/Marker/Asterisk.php
Sorry, we could not display the entire diff because too many files (384) changed.
View
133 includes/pear/Compat.php
@@ -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;
- }
-}
-
-?>
View
71 includes/pear/Compat/Components.php
@@ -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';
-?>
View
35 includes/pear/Compat/Constant/E_STRICT.php
@@ -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);
-}
-
-?>
View
51 includes/pear/Compat/Constant/FILE.php
@@ -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);
-}
-
-?>
View
49 includes/pear/Compat/Constant/PHP_EOL.php
@@ -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");
- }
-}
-
-?>
View
43 includes/pear/Compat/Constant/STD.php
@@ -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'));
-}
-
-?>
View
72 includes/pear/Compat/Constant/T.php
@@ -1,72 +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: T.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace tokenizer constants
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/ref.tokenizer
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5
- */
-if (!defined('T_ML_COMMENT')) {
- define('T_ML_COMMENT', T_COMMENT);
-}
-if (!defined('T_DOC_COMMENT')) {
- define('T_DOC_COMMENT', T_ML_COMMENT);
-}
-
-if (!defined('T_OLD_FUNCTION')) {
- define('T_OLD_FUNCTION', -1);
-}
-if (!defined('T_ABSTRACT')) {
- define('T_ABSTRACT', -1);
-}
-if (!defined('T_CATCH')) {
- define('T_CATCH', -1);
-}
-if (!defined('T_FINAL')) {
- define('T_FINAL', -1);
-}
-if (!defined('T_INSTANCEOF')) {
- define('T_INSTANCEOF', -1);
-}
-if (!defined('T_PRIVATE')) {
- define('T_PRIVATE', -1);
-}
-if (!defined('T_PROTECTED')) {
- define('T_PROTECTED', -1);
-}
-if (!defined('T_PUBLIC')) {
- define('T_PUBLIC', -1);
-}
-if (!defined('T_THROW')) {
- define('T_THROW', -1);
-}
-if (!defined('T_TRY')) {
- define('T_TRY', -1);
-}
-if (!defined('T_CLONE')) {
- define('T_CLONE', -1);
-}
-
-?>
View
51 includes/pear/Compat/Constant/UPLOAD_ERR.php
@@ -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: UPLOAD_ERR.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace upload error constants
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/features.file-upload.errors
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 4.3.0
- */
-if (!defined('UPLOAD_ERR_OK')) {
- define('UPLOAD_ERR_OK', 0);
-}
-
-if (!defined('UPLOAD_ERR_INI_SIZE')) {
- define('UPLOAD_ERR_INI_SIZE', 1);
-}
-
-if (!defined('UPLOAD_ERR_FORM_SIZE')) {
- define('UPLOAD_ERR_FORM_SIZE', 2);
-}
-
-if (!defined('UPLOAD_ERR_PARTIAL')) {
- define('UPLOAD_ERR_PARTIAL', 3);
-}
-
-if (!defined('UPLOAD_ERR_NO_FILE')) {
- define('UPLOAD_ERR_NO_FILE', 4);
-}
-
-?>
View
71 includes/pear/Compat/Function/array_combine.php
@@ -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: array_combine.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace array_combine()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/function.array_combine
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5
- * @require PHP 4.0.0 (user_error)
- */
-if (!function_exists('array_combine')) {
- function array_combine($keys, $values)
- {
- if (!is_array($keys)) {
- user_error('array_combine() expects parameter 1 to be array, ' .
- gettype($keys) . ' given', E_USER_WARNING);
- return;
- }
-
- if (!is_array($values)) {
- user_error('array_combine() expects parameter 2 to be array, ' .
- gettype($values) . ' given', E_USER_WARNING);
- return;
- }
-
- $key_count = count($keys);
- $value_count = count($values);
- if ($key_count !== $value_count) {
- user_error('array_combine() Both parameters should have equal number of elements', E_USER_WARNING);
- return false;
- }
-
- if ($key_count === 0 || $value_count === 0) {
- user_error('array_combine() Both parameters should have number of elements at least 0', E_USER_WARNING);
- return false;
- }
-
- $keys = array_values($keys);
- $values = array_values($values);
-
- $combined = array();
- for ($i = 0; $i < $key_count; $i++) {
- $combined[$keys[$i]] = $values[$i];
- }
-
- return $combined;
- }
-}
-
-?>
View
75 includes/pear/Compat/Function/array_diff_assoc.php
@@ -1,75 +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: array_diff_assoc.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace array_diff_assoc()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/function.array_diff_assoc
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 4.3.0
- * @require PHP 4.0.0 (user_error)
- */
-if (!function_exists('array_diff_assoc')) {
- function array_diff_assoc()
- {
- // Check we have enough arguments
- $args = func_get_args();
- $count = count($args);
- if (count($args) < 2) {
- user_error('Wrong parameter count for array_diff_assoc()', E_USER_WARNING);
- return;
- }
-
- // Check arrays
- for ($i = 0; $i < $count; $i++) {
- if (!is_array($args[$i])) {
- user_error('array_diff_assoc() Argument #' .
- ($i + 1) . ' is not an array', E_USER_WARNING);
- return;
- }
- }
-
- // Get the comparison array
- $array_comp = array_shift($args);
- --$count;
-
- // Traverse values of the first array
- foreach ($array_comp as $key => $value) {
- // Loop through the other arrays
- for ($i = 0; $i < $count; $i++) {
- // Loop through this arrays key/value pairs and compare
- foreach ($args[$i] as $comp_key => $comp_value) {
- if ((string)$key === (string)$comp_key &&
- (string)$value === (string)$comp_value)
- {
-
- unset($array_comp[$key]);
- }
- }
- }
- }
-
- return $array_comp;
- }
-}
-?>
View
66 includes/pear/Compat/Function/array_diff_key.php
@@ -1,66 +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: array_diff_key.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace array_diff_key()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/function.array_diff_key
- * @author Tom Buskens <ortega@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5.0.2
- * @require PHP 4.0.0 (user_error)
- */
-if (!function_exists('array_diff_key')) {
- function array_diff_key()
- {
- $args = func_get_args();
- if (count($args) < 2) {
- user_error('Wrong parameter count for array_diff_key()', E_USER_WARNING);
- return;
- }
-
- // Check arrays
- $array_count = count($args);
- for ($i = 0; $i !== $array_count; $i++) {
- if (!is_array($args[$i])) {
- user_error('array_diff_key() Argument #' .
- ($i + 1) . ' is not an array', E_USER_WARNING);
- return;
- }
- }
-
- $result = $args[0];
- foreach ($args[0] as $key1 => $value1) {
- for ($i = 1; $i !== $array_count; $i++) {
- foreach ($args[$i] as $key2 => $value2) {
- if ((string) $key1 === (string) $key2) {
- unset($result[$key2]);
- break 2;
- }
- }
- }
- }
- return $result;
- }
-}
-
-?>
View
83 includes/pear/Compat/Function/array_diff_uassoc.php
@@ -1,83 +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: array_diff_uassoc.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace array_diff_uassoc()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/function.array_diff_uassoc
- * @version $Revision: 1.1 $
- * @since PHP 5.0.0
- * @require PHP 4.0.6 (is_callable)
- */
-if (!function_exists('array_diff_uassoc')) {
- function array_diff_uassoc()
- {
- // Sanity check
- $args = func_get_args();
- if (count($args) < 3) {
- user_error('Wrong parameter count for array_diff_uassoc()', E_USER_WARNING);
- return;
- }
-
- // Get compare function
- $compare_func = array_pop($args);
- if (!is_callable($compare_func)) {
- if (is_array($compare_func)) {
- $compare_func = $compare_func[0] . '::' . $compare_func[1];
- }
- user_error('array_diff_uassoc() Not a valid callback ' .
- $compare_func, E_USER_WARNING);
- return;
- }
-
- // Check arrays
- $array_count = count($args);
- for ($i = 0; $i !== $array_count; $i++) {
- if (!is_array($args[$i])) {
- user_error('array_diff_uassoc() Argument #' .
- ($i + 1) . ' is not an array', E_USER_WARNING);
- return;
- }
- }
-
- // Compare entries
- $result = array();
- foreach ($args[0] as $k => $v) {
- for ($i = 1; $i < $array_count; $i++) {
- foreach ($args[$i] as $kk => $vv) {
- if ($v == $vv) {
- $compare = call_user_func_array($compare_func, array($k, $kk));
- if ($compare == 0) {
- continue 3;
- }
- }
- }
- }
-
- $result[$k] = $v;
- }
-
- return $result;
- }
-}
-
-?>
View
79 includes/pear/Compat/Function/array_diff_ukey.php
@@ -1,79 +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: array_diff_ukey.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace array_diff_ukey()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/function.array_diff_ukey
- * @author Tom Buskens <ortega@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5.0.2
- * @require PHP 4.0.6 (is_callable)
- */
-if (!function_exists('array_diff_ukey')) {
- function array_diff_ukey()
- {
- $args = func_get_args();
- if (count($args) < 3) {
- user_error('Wrong parameter count for array_diff_ukey()', E_USER_WARNING);
- return;
- }
-
- // Get compare function
- $compare_func = array_pop($args);
- if (!is_callable($compare_func)) {
- if (is_array($compare_func)) {
- $compare_func = $compare_func[0].'::'.$compare_func[1];
- }
- user_error('array_diff_ukey() Not a valid callback ' .
- $compare_func, E_USER_WARNING);
- return;
- }
-
- // Check arrays
- $array_count = count($args);
- for ($i = 0; $i !== $array_count; $i++) {
- if (!is_array($args[$i])) {
- user_error('array_diff_ukey() Argument #' .
- ($i + 1) . ' is not an array', E_USER_WARNING);
- return;
- }
- }
-
- // Compare entries
- $result = $args[0];
- foreach ($args[0] as $key1 => $value1) {
- for ($i = 1; $i !== $array_count; $i++) {
- foreach ($args[$i] as $key2 => $value2) {
- if (!(call_user_func($compare_func, (string) $key1, (string) $key2))) {
- unset($result[$key1]);
- break 2;
- }
- }
- }
- }
-
- return $result;
- }
-}
-
-?>
View
69 includes/pear/Compat/Function/array_intersect_assoc.php
@@ -1,69 +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: array_intersect_assoc.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace array_intersect_assoc()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/function.array_intersect_assoc
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 4.3.0
- * @require PHP 4.0.0 (user_error)
- */
-if (!function_exists('array_intersect_assoc')) {
- function array_intersect_assoc()
- {
- // Sanity check
- $args = func_get_args();
- if (count($args) < 2) {
- user_error('wrong parameter count for array_intersect_assoc()', E_USER_WARNING);
- return;
- }
-
- // Check arrays
- $array_count = count($args);
- for ($i = 0; $i !== $array_count; $i++) {
- if (!is_array($args[$i])) {
- user_error('array_intersect_assoc() Argument #' .
- ($i + 1) . ' is not an array', E_USER_WARNING);
- return;
- }
- }
-
- // Compare entries
- $intersect = array();
- foreach ($args[0] as $key => $value) {
- $intersect[$key] = $value;
-
- for ($i = 1; $i < $array_count; $i++) {
- if (!isset($args[$i][$key]) || $args[$i][$key] != $value) {
- unset($intersect[$key]);
- break;
- }
- }
- }
-
- return $intersect;
- }
-}
-
-?>
View
67 includes/pear/Compat/Function/array_intersect_key.php
@@ -1,67 +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: array_intersect_key.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace array_intersect_key()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/function.array_intersect_key
- * @author Tom Buskens <ortega@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5.0.2
- * @require PHP 4.0.0 (user_error)
- */
-if (!function_exists('array_intersect_key')) {
- function array_intersect_key()
- {
- $args = func_get_args();
- if (count($args) < 2) {
- user_error('Wrong parameter count for array_intersect_key()', E_USER_WARNING);
- return;
- }
-
- // Check arrays
- $array_count = count($args);
- for ($i = 0; $i !== $array_count; $i++) {
- if (!is_array($args[$i])) {
- user_error('array_intersect_key() Argument #' .
- ($i + 1) . ' is not an array', E_USER_WARNING);
- return;
- }
- }
-
- // Compare entries
- $result = array();
- foreach ($args[0] as $key1 => $value1) {
- for ($i = 1; $i !== $array_count; $i++) {
- foreach ($args[$i] as $key2 => $value2) {
- if ((string) $key1 === (string) $key2) {
- $result[$key1] = $value1;
- }
- }
- }
- }
-
- return $result;
- }
-}
-
-?>
View
90 includes/pear/Compat/Function/array_intersect_uassoc.php
@@ -1,90 +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: array_intersect_uassoc.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace array_intersect_assoc()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/function.array_intersect_uassoc
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5
- * @require PHP 4.0.6 (is_callable)
- */
-if (!function_exists('array_intersect_uassoc')) {
- function array_intersect_uassoc()
- {
- // Sanity check
- $args = func_get_args();
- if (count($args) < 3) {
- user_error('Wrong parameter count for array_intersect_ukey()', E_USER_WARNING);
- return;
- }
-
- // Get compare function
- $compare_func = array_pop($args);
- if (!is_callable($compare_func)) {
- if (is_array($compare_func)) {
- $compare_func = $compare_func[0] . '::' . $compare_func[1];
- }
- user_error('array_intersect_uassoc() Not a valid callback ' .
- $compare_func, E_USER_WARNING);
- return;
- }
-
- // Check arrays
- $array_count = count($args);
- for ($i = 0; $i !== $array_count; $i++) {
- if (!is_array($args[$i])) {
- user_error('array_intersect_uassoc() Argument #' .
- ($i + 1) . ' is not an array', E_USER_WARNING);
- return;
- }
- }
-
- // Compare entries
- $result = array();
- foreach ($args[0] as $k => $v) {
- for ($i = 0; $i < $array_count; $i++) {
- $match = false;
- foreach ($args[$i] as $kk => $vv) {
- $compare = call_user_func_array($compare_func, array($k, $kk));
- if ($compare === 0 && $v == $vv) {
- $match = true;
- continue 2;
- }
- }
-
- if ($match === false) {
- continue 2;
- }
- }
-
- if ($match === true) {
- $result[$k] = $v;
- }
- }
-
- return $result;
- }
-}
-
-?>
View
79 includes/pear/Compat/Function/array_intersect_ukey.php
@@ -1,79 +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: array_intersect_ukey.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace array_intersect_ukey()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/function.array_intersect_ukey
- * @author Tom Buskens <ortega@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5.0.2
- * @require PHP 4.0.6 (is_callable)
- */
-if (!function_exists('array_intersect_ukey')) {
- function array_intersect_ukey()
- {
- $args = func_get_args();
- if (count($args) < 3) {
- user_error('Wrong parameter count for array_intersect_ukey()', E_USER_WARNING);
- return;
- }
-
- // Get compare function
- $compare_func = array_pop($args);
- if (!is_callable($compare_func)) {
- if (is_array($compare_func)) {
- $compare_func = $compare_func[0].'::'.$compare_func[1];
- }
- user_error('array_diff_ukey() Not a valid callback ' .
- $compare_func, E_USER_WARNING);
- return;
- }
-
- // Check arrays
- $array_count = count($args);
- for ($i = 0; $i !== $array_count; $i++) {
- if (!is_array($args[$i])) {
- user_error('array_intersect_ukey() Argument #' .
- ($i + 1) . ' is not an array', E_USER_WARNING);
- return;
- }
- }
-
- // Compare entries
- $result = array();
- foreach ($args[0] as $key1 => $value1) {
- for ($i = 1; $i !== $array_count; $i++) {
- foreach ($args[$i] as $key2 => $value2) {
- if (!(call_user_func($compare_func, (string) $key1, (string) $key2))) {
- $result[$key1] = $value1;
- break 2;
- }
- }
- }
- }
-
- return $result;
- }
-}
-
-?>
View
83 includes/pear/Compat/Function/array_udiff.php
@@ -1,83 +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: Stephan Schmidt <schst@php.net> |
-// | Aidan Lister <aidan@php.net> |
-// +----------------------------------------------------------------------+
-//
-// $Id: array_udiff.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace array_udiff()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/function.array_udiff
- * @author Stephan Schmidt <schst@php.net>
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5
- * @require PHP 4.0.6 (is_callable)
- */
-if (!function_exists('array_udiff')) {
- function array_udiff()
- {
- $args = func_get_args();
-
- if (count($args) < 3) {
- user_error('Wrong parameter count for array_udiff()', E_USER_WARNING);
- return;
- }
-
- // Get compare function
- $compare_func = array_pop($args);
- if (!is_callable($compare_func)) {
- if (is_array($compare_func)) {
- $compare_func = $compare_func[0] . '::' . $compare_func[1];
- }
- user_error('array_udiff() Not a valid callback ' .
- $compare_func, E_USER_WARNING);
- return;
- }
-
- // Check arrays
- $cnt = count($args);
- for ($i = 0; $i < $cnt; $i++) {
- if (!is_array($args[$i])) {
- user_error('array_udiff() Argument #' .
- ($i + 1). ' is not an array', E_USER_WARNING);
- return;
- }
- }
-
- $diff = array ();
- // Traverse values of the first array
- foreach ($args[0] as $key => $value) {
- // Check all arrays
- for ($i = 1; $i < $cnt; $i++) {
- foreach ($args[$i] as $cmp_value) {
- $result = call_user_func($compare_func, $value, $cmp_value);
- if ($result === 0) {
- continue 3;
- }
- }
- }
- $diff[$key] = $value;
- }
- return $diff;
- }
-}
-
-?>
View
85 includes/pear/Compat/Function/array_udiff_assoc.php
@@ -1,85 +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: Stephan Schmidt <schst@php.net> |
-// | Aidan Lister <aidan@php.net> |
-// +----------------------------------------------------------------------+
-//
-// $Id: array_udiff_assoc.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace array_udiff_assoc()
- *
- * @category PHP
- * @package PHP_Compat
- * @author Stephan Schmidt <schst@php.net>
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @link http://php.net/function.array-udiff-assoc
- * @since PHP 5
- * @require PHP 4.0.6 (is_callable)
- */
-if (!function_exists('array_udiff_assoc')) {
- function array_udiff_assoc()
- {
- $args = func_get_args();
- if (count($args) < 3) {
- user_error('Wrong parameter count for array_udiff_assoc()', E_USER_WARNING);
- return;
- }
-
- // Get compare function
- $compare_func = array_pop($args);
- if (!is_callable($compare_func)) {
- if (is_array($compare_func)) {
- $compare_func = $compare_func[0] . '::' . $compare_func[1];
- }
- user_error('array_udiff_assoc() Not a valid callback ' .
- $compare_func, E_USER_WARNING);
- return;
- }
-
- // Check arrays
- $count = count($args);
- for ($i = 0; $i < $count; $i++) {
- if (!is_array($args[$i])) {
- user_error('array_udiff_assoc() Argument #' .
- ($i + 1) . ' is not an array', E_USER_WARNING);
- return;
- }
- }
-
- $diff = array ();
- // Traverse values of the first array
- foreach ($args[0] as $key => $value) {
- // Check all arrays
- for ($i = 1; $i < $count; $i++) {
- if (!array_key_exists($key, $args[$i])) {
- continue;
- }
- $result = call_user_func($compare_func, $value, $args[$i][$key]);
- if ($result === 0) {
- continue 2;
- }
- }
-
- $diff[$key] = $value;
- }
-
- return $diff;
- }
-}
-
-?>
View
82 includes/pear/Compat/Function/array_udiff_uassoc.php
@@ -1,82 +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: array_udiff_uassoc.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace array_udiff_uassoc()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/function.array_udiff_uassoc
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5
- * @require PHP 4.0.6 (is_callable)
- */
-if (!function_exists('array_udiff_uassoc')) {
- function array_udiff_uassoc()
- {
- $args = func_get_args();
- if (count($args) < 3) {
- user_error('Wrong parameter count for array_udiff_uassoc()', E_USER_WARNING);
- return;
- }
-
- // Get compare function
- $compare_func = array_pop($args);
- if (!is_callable($compare_func)) {
- if (is_array($compare_func)) {
- $compare_func = $compare_func[0] . '::' . $compare_func[1];
- }
- user_error('array_udiff_uassoc() Not a valid callback ' . $compare_func, E_USER_WARNING);
- return;
- }
-
- // Check arrays
- $count = count($args);
- for ($i = 0; $i < $count; $i++) {
- if (!is_array($args[$i])) {
- user_error('array_udiff_uassoc() Argument #' .
- ($i + 1) . ' is not an array', E_USER_WARNING);
- return;
- }
- }
-
- // Traverse values of the first array
- $diff = array ();
- foreach ($args[0] as $key => $value) {
- // Check all arrays
- for ($i = 1; $i < $count; $i++) {
- if (!array_key_exists($key, $args[$i])) {
- continue;
- }
- $result = call_user_func($compare_func, $value, $args[$i][$key]);
- if ($result === 0) {
- continue 2;
- }
- }
-
- $diff[$key] = $value;
- }
-
- return $diff;
- }
-}
-
-?>
View
82 includes/pear/Compat/Function/array_uintersect.php
@@ -1,82 +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: Tom Buskens <ortega@php.net> |
-// | Aidan Lister <aidan@php.net> |
-// +----------------------------------------------------------------------+
-//
-// $Id: array_uintersect.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace array_uintersect()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/function.array_uintersect
- * @author Tom Buskens <ortega@php.net>
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5
- * @require PHP 4.0.6 (is_callable)
- */
-if (!function_exists('array_uintersect')) {
- function array_uintersect()
- {
- $args = func_get_args();
- if (count($args) < 3) {
- user_error('wrong parameter count for array_uintersect()',
- E_USER_WARNING);
- return;
- }
-
- // Get compare function
- $user_func = array_pop($args);
- if (!is_callable($user_func)) {
- if (is_array($user_func)) {
- $user_func = $user_func[0] . '::' . $user_func[1];
- }
- user_error('array_uintersect() Not a valid callback ' .
- $user_func, E_USER_WARNING);
- return;
- }
-
- // Check arrays
- $array_count = count($args);
- for ($i = 0; $i < $array_count; $i++) {
- if (!is_array($args[$i])) {
- user_error('array_uintersect() Argument #' .
- ($i + 1) . ' is not an array', E_USER_WARNING);
- return;
- }
- }
-
- // Compare entries
- $output = array();
- foreach ($args[0] as $key => $item) {
- for ($i = 1; $i !== $array_count; $i++) {
- $array = $args[$i];
- foreach($array as $key0 => $item0) {
- if (!call_user_func($user_func, $item, $item0)) {
- $output[$key] = $item;
- }
- }
- }
- }
-
- return $output;
- }
-}
-
-?>
View
81 includes/pear/Compat/Function/array_uintersect_assoc.php
@@ -1,81 +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: Tom Buskens <ortega@php.net> |
-// | Aidan Lister <aidan@php.net> |
-// +----------------------------------------------------------------------+
-//
-// $Id: array_uintersect_assoc.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace array_uintersect_assoc()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/function.array_uintersect_assoc
- * @author Tom Buskens <ortega@php.net>
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5
- * @require PHP 4.0.6 (is_callable)
- */
-if (!function_exists('array_uintersect_assoc')) {
- function array_uintersect_assoc()
- {
- $args = func_get_args();
- if (count($args) < 3) {
- user_error('wrong parameter count for array_uintersect_assoc()', E_USER_WARNING);
- return;
- }
-
- // Get compare function
- $user_func = array_pop($args);
- if (!is_callable($user_func)) {
- if (is_array($user_func)) {
- $user_func = $user_func[0] . '::' . $user_func[1];
- }
- user_error('array_uintersect_assoc() Not a valid callback ' .
- $user_func, E_USER_WARNING);
- return;
- }
-
- // Check arrays
- $array_count = count($args);
- for ($i = 0; $i < $array_count; $i++) {
- if (!is_array($args[$i])) {
- user_error('array_uintersect_assoc() Argument #' .
- ($i + 1) . ' is not an array', E_USER_WARNING);
- return;
- }
- }
-
- // Compare entries
- $output = array();
- foreach ($args[0] as $key => $item) {
- for ($i = 1; $i !== $array_count; $i++) {
- if (array_key_exists($key, $args[$i])) {
- $compare = call_user_func($user_func, $item, $args[$i][$key]);
- if ($compare === 0) {
- $output[$key] = $item;
- }
- }
- }
- }
-
- return $output;
- }
-}
-
-?>
View
97 includes/pear/Compat/Function/array_uintersect_uassoc.php
@@ -1,97 +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: array_uintersect_uassoc.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace array_uintersect_uassoc()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/function.array_uintersect_uassoc
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5
- * @require PHP 4.0.6 (is_callable)
- */
-if (!function_exists('array_uintersect_uassoc')) {
- function array_uintersect_uassoc()
- {
- $args = func_get_args();
- if (count($args) < 4) {
- user_error('Wrong parameter count for array_uintersect_uassoc()',
- E_USER_WARNING);
- return;
- }
-
- // Get key_compare_func
- $key_compare_func = array_pop($args);
- if (!is_callable($key_compare_func)) {
- if (is_array($key_compare_func)) {
- $key_compare_func = $key_compare_func[0] . '::' . $key_compare_func[1];
- }
- user_error('array_uintersect_uassoc() Not a valid callback ' .
- $key_compare_func, E_USER_WARNING);
- return;
- }
-
- // Get data_compare_func
- $data_compare_func = array_pop($args);
- if (!is_callable($data_compare_func)) {
- if (is_array($data_compare_func)) {
- $data_compare_func = $data_compare_func[0] . '::' . $data_compare_func[1];
- }
- user_error('array_uintersect_uassoc() Not a valid callback '
- . $data_compare_func, E_USER_WARNING);
- return;
- }
-
- // Check arrays
- $count = count($args);
- for ($i = 0; $i !== $count; $i++) {
- if (!is_array($args[$i])) {
- user_error('array_uintersect_uassoc() Argument #' .
- ($i + 1) . ' is not an array', E_USER_WARNING);
- return;
- }
- }
-
- // Traverse values of the first array
- $intersect = array ();
- foreach ($args[0] as $key => $value) {
- // Check against each array
- for ($i = 1; $i < $count; $i++) {
- // Traverse each element in current array
- foreach ($args[$i] as $ckey => $cvalue) {
- // Compare key and value
- if (call_user_func($key_compare_func, $key, $ckey) === 0 &&
- call_user_func($data_compare_func, $value, $cvalue) === 0)
- {
-
- $intersect[$key] = $value;
- continue;
- }
- }
- }
- }
-
- return $intersect;
- }
-}
-
-?>
View
68 includes/pear/Compat/Function/array_walk_recursive.php
@@ -1,68 +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: Tom Buskens <ortega@php.net> |
-// | Aidan Lister <aidan@php.net> |
-// +----------------------------------------------------------------------+
-//
-// $Id: array_walk_recursive.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace array_walk_recursive()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/function.array_walk_recursive
- * @author Tom Buskens <ortega@php.net>
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5
- * @require PHP 4.0.6 (is_callable)
- */
-if (!function_exists('array_walk_recursive')) {
- function array_walk_recursive(&$input, $funcname)
- {
- if (!is_callable($funcname)) {
- if (is_array($funcname)) {
- $funcname = $funcname[0] . '::' . $funcname[1];
- }
- user_error('array_walk_recursive() Not a valid callback ' . $user_func,
- E_USER_WARNING);
- return;
- }
-
- if (!is_array($input)) {
- user_error('array_walk_recursive() The argument should be an array',
- E_USER_WARNING);
- return;
- }
-
- $args = func_get_args();
-
- foreach ($input as $key => $item) {
- if (is_array($item)) {
- array_walk_recursive($item, $funcname, $args);
- $input[$key] = $item;
- } else {
- $args[0] = &$item;
- $args[1] = &$key;
- call_user_func_array($funcname, $args);
- $input[$key] = $item;
- }
- }
- }
-}
-
-?>
View
56 includes/pear/Compat/Function/clone.php
@@ -1,56 +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: clone.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace clone()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/language.oop5.cloning
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5.0.0
- * @require PHP 4.0.0 (user_error)
- */
-if (version_compare(phpversion(), '5.0') === -1) {
- // Needs to be wrapped in eval as clone is a keyword in PHP5
- eval('
- function clone($object)
- {
- // Sanity check
- if (!is_object($object)) {
- user_error(\'clone() __clone method called on non-object\', E_USER_WARNING);
- return;
- }
-
- // Use serialize/unserialize trick to deep copy the object
- $object = unserialize(serialize($object));
-
- // If there is a __clone method call it on the "new" class
- if (method_exists($object, \'__clone\')) {
- $object->__clone();
- }
-
- return $object;
- }
- ');
-}
-
-?>
View
79 includes/pear/Compat/Function/convert_uudecode.php
@@ -1,79 +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: Michael Wallner <mike@php.net> |
-// | Aidan Lister <aidan@php.net> |
-// +----------------------------------------------------------------------+
-//
-// $Id: convert_uudecode.php,v 1.1 2005/07/23 05:56:02 Tony Exp $
-
-
-/**
- * Replace convert_uudecode()
- *
- * @category PHP
- * @package PHP_Compat
- * @link http://php.net/function.convert_uudecode
- * @author Michael Wallner <mike@php.net>
- * @author Aidan Lister <aidan@php.net>
- * @version $Revision: 1.1 $
- * @since PHP 5
- * @require PHP 4.0.0 (user_error)
- */
-if (!function_exists('convert_uudecode')) {
- function convert_uudecode($string)
- {
- // Sanity check
- if (!is_scalar($string)) {
- user_error('convert_uuencode() expects parameter 1 to be string, ' .
- gettype($string) . ' given', E_USER_WARNING);
- return false;
- }
-
- if (strlen($string) < 8) {
- user_error('convert_uuencode() The given parameter is not a valid uuencoded string', E_USER_WARNING);
- return false;
- }
-
- $decoded = '';
- foreach (explode("\n", $string) as $line) {
-
- $c = count($bytes = unpack('c*', substr(trim($line), 1)));
-
- while ($c % 4) {
- $bytes[++$c] = 0;
- }
-
- foreach (array_chunk($bytes, 4) as $b) {
- $b0 = $b[0] == 0x60 ? 0 : $b[0] - 0x20;
- $b1 = $b[1] == 0x60 ? 0 : $b[1] - 0x20;
- $b2 = $b[2] == 0x60 ? 0 : $b[2] - 0x20;
- $b3 = $b[3] == 0x60 ? 0 : $b[3] - 0x20;
-
- $b0 <<= 2;
- $b0 |= ($b1 >> 4) & 0x03;
- $b1 <<= 4;
- $b1 |= ($b2 >> 2) & 0x0F;
- $b2 <<= 6;
- $b2 |= $b3 & 0x3F;
-
- $decoded .= pack('c*', $b0, $b1, $b2);
- }
- }
-
- return rtrim($decoded, "\0");
- }
-}
-
-?>
View
79 includes/pear/Compat/Function/convert_uuencode.php
@@ -1,79 +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. |
-// +----------------------------------------------------------------------+