PHP_Compat
pear.php.net
Provides components to achieve PHP version independence
PHP_Compat provides drop-in functions and constants for compatibility with newer versions of PHP, environment emulation, and an API to allow for version independent authoring.
Aidan Lister
aidan
aidan@php.net yes
Arpad Ray
arpad
arpad@php.net yes
2010-10-06
01:23:18
1.6.0a3
1.6.0
alpha
stable
PHP License
QA Release Bug #7402 Missing unit tests hm2k Bug #15409 Broken unit tests arpad Bug #15531 getmxrr() support for windows hm2k Bug #15532 ini_set('register_globals', 'off'); not required hm2k Bug #15537 IIS REQUEST_URI compatibility hm2k Bug #15539 PHP_EOL link is incorrect. hm2k Bug #15540 htmlspecialchars has incorrect "since" arpad Bug #15684 Add str_getcsv support for 5.1.0 + arpad Bug #15688 PATHINFO_FILENAME hm2k Bug #15698 Typo in str_ireplace.php hm2k Bug #15707 file_get_contents has incomplete support arpad Bug #16157 Missing argument 5 for setrawcookie() hm2k Bug #16158 Win Seven Fatal error: Cannot call __clone() method on objects arpad Bug #16191 fprintf parameters lost arpad Bug #16462 add json_decode-function that behaves like in PHP5.2 hm2k Bug #16921 PHP_Compat includes functions that no version of PHP does hm2k Bug #16922 bad minimum reqirements - getopt hm2k Bug #16945 Spelling error in long desc saltybeagle
4.0.0
1.4.0b1
1.5.0RC1
2005-12-06
PHP License
beta
Added more components: * is_scalar * property_exists * inet_pton * inet_ntop * bcinvert * bcpowmod * mime_content_type * time_sleep_until * array_product * idate

Bug fixes: * Fixed #4783 (PATH_SEPARATOR) * Fixed #4788 (version_compare) * Fixed #4851 (var_export) * Fixed #5049 (strripos) * Fixed #5078 (str_shuffle) * Fixed #5691 (fputcsv) * Fixed #5469 (md5_file) * Fixed #6082 (file_put_contents)
0.2
2004-05-27
PHP License
beta
Still in beta until any last bugs are found and removed.

Added more components: * str_split * STDIN * STDOUT * STDERR

Bug fixes: * file_get_contents * file_put_contents * array_combine

Other changes: * Added replica PHP error messages.
1.5.0
1.5.0
stable
stable
2005-12-15
PHP License
Added more components: * is_scalar * property_exists * inet_pton * inet_ntop * bcinvert * bcpowmod * mime_content_type * time_sleep_until * array_product * idate Bug fixes: * Fixed #4783 (PATH_SEPARATOR) * Fixed #4788 (version_compare) * Fixed #4851 (var_export) * Fixed #5049 (strripos) * Fixed #5078 (str_shuffle) * Fixed #5691 (fputcsv) * Fixed #5469 (md5_file) * Fixed #6082 (file_put_contents) RC bug fixes: * Fixed #6184 (idate)
1.6.0a1
1.5.0
alpha
stable
2007-05-08
PHP License
Added more components: * array_fill * Hyperbolic and inverse hyperbolic math functions * glob * is_callable Added more components with changed parameters: * array_splice * microtime * mkdir * range * setcookie * setrawcookie

Added new Environment module * register_globals * magic_quotes_gpc * magic_quotes_sybase * register_argc_argv * register_long_arrays Changed the way PHP_Compat stores functions. * Function declaration is prefixed with php_compat_ * Dummy declaration calls php_compat_ function This allows for redefinition of functions with changed parameters. Added support for packages which modify the function tables at runtime * PHP_Compat::loadFunction now tries to rename the old function on load This further supports redefinition of functions with changed parameters. * Fix Bug #1956: stripos - not returning false [aidan] * Fix Bug #3190: [PATCH] md5_file() depends on possibly nonexistent file_get_contents() [aidan] * Fix Bug #3572: Use of addslashes() adds too much backslashes [aidan] * Fix Bug #3586: bug in str_word_count.php code [aidan] * Fix Bug #4605: debug_print_backtrace - Object to string conversion [aidan] * Fix Bug #4851: var_export severely broken! (new implementation attached) [aidan] * Fix Bug #6293: array_intersect_key produces incorrect results with more than 2 arguments [arpad] * Fix Bug #6560: missing 'Function/property_exists.php' when installed with pear [aidan] * Fix Bug #6687: array_intersect_key() fails due to func_get_args() [arpad] * Fix Bug #6758: notice errors with debug_print_backtrace and call_user_func_array usage [arpad] * Fix Bug #6922: Space after php close markup in Function/mime_content_type.php [arpad] * Fix Bug #7520: cyclic reference cloning causes timeout [aidan] * Fix Bug #8338: convert_uudecode removes spaces from line ends, causing corruption [aidan] * Fix Bug #8864: magic quotes gpc emulation missing server vars [arpad] * Fix Bug #9042: Various uninitialized variables [aidan] * Fix Bug #9043: Various issues in str_shuffle [aidan] * Fix Bug #9687: array_*_key function(s) slow [aidan] * Fix Bug #9983: Function [array_udiff_uassoc()] is incorrectly implemented [arpad] * Implement Feature #4372: addition of glob() function for php < 4.3.0 [arpad] * Implement Feature #7139: PHP 5.1.1 Datetime Constants [arpad] * Implement Feature #7403: str_ireplace too slow [arpad] * Implement Feature #7414: making var_export() generating correct PHP code with nested objects [arpad] * Implement Feature #8208: is_callable missing in php 4.0.4, 4.0.5 [arpad] * Implement Feature #9187: Adding httponly to setcookie/setrawcookie (new in php 5.2) [aidan] * Implement Feature #9659: The userdata parameter isn't correctly send to the recursive call [arpad] * Implement Feature #10177: add most recent UPLOAD ERR constants [arpad]
1.6.0a3
1.6.0
alpha
stable
2010-10-06
PHP License
QA Release Bug #7402 Missing unit tests hm2k Bug #15409 Broken unit tests arpad Bug #15531 getmxrr() support for windows hm2k Bug #15532 ini_set('register_globals', 'off'); not required hm2k Bug #15537 IIS REQUEST_URI compatibility hm2k Bug #15539 PHP_EOL link is incorrect. hm2k Bug #15540 htmlspecialchars has incorrect "since" arpad Bug #15684 Add str_getcsv support for 5.1.0 + arpad Bug #15688 PATHINFO_FILENAME hm2k Bug #15698 Typo in str_ireplace.php hm2k Bug #15707 file_get_contents has incomplete support arpad Bug #16157 Missing argument 5 for setrawcookie() hm2k Bug #16158 Win Seven Fatal error: Cannot call __clone() method on objects arpad Bug #16191 fprintf parameters lost arpad Bug #16462 add json_decode-function that behaves like in PHP5.2 hm2k Bug #16921 PHP_Compat includes functions that no version of PHP does hm2k Bug #16922 bad minimum reqirements - getopt hm2k Bug #16945 Spelling error in long desc saltybeagle