PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PHP » PHP_Compat

Provides components to achieve PHP version independence

This package is unmaintained.

Download latest release 1.6.0a3 (archived versions might be outdated)

License: PHP License

Description

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.

Documentation

Manual

Maintainers

Dependencies

Required

Releases

Bugs

IDStatusTypeVersionDateSummary
#1647BogusBug2004-06-15var_export leaves comma at end of array
#1956ClosedBug2004-07-22stripos - not returning false
#2266ClosedBug2004-09-01image_type_to_mime_type : bad redeclaration of constants
#2769ClosedReq2004-11-16Object cloning
#2793ClosedBug2004-11-19str_split is too strict on arguments
#2794ClosedBug2004-11-19version_compare doesn't handle the 'p' suffix and behaves differently
#2795ClosedBug2004-11-19str_ireplace fails on arrays that don't have indexes from 0 to count(array)-1
#3103ClosedReq2005-01-05loadVersion show Failed opening required 'Compat/Components.php' in php 4.0.6
#3155ClosedReq2005-01-10[PATCH] pg_(un)escape_bytea()
#3190ClosedBug2005-01-13[PATCH] md5_file() depends on possibly nonexistent file_get_contents()
#3497ClosedReq2005-02-16Need PHP5 function get_headers
#3499ClosedReq2005-02-16the function ibase_timefmt was removed in PHP 5
#3572ClosedBug2005-02-24Use of addslashes() adds too much backslashes
#3586ClosedBug2005-02-24bug in str_word_count.php code
#3649ClosedBug2005-02-28clone() fails
#3711ClosedReq2005-03-05adds function debug_print_backtrace
#3757ClosedBug2005-03-09missing array_uintersect.php
#4273ClosedReq2005-05-03[PATCH] pg_affected_rows() function
#4372ClosedReq2005-05-17addition of glob() function for php < 4.3.0
#4385ClosedBug2005-05-18spelling mistake, minor errors in file_put_contents.php
#4444ClosedReq2005-05-26mkdir with recursive boolean
#4466ClosedBug2005-05-29str_split() dont work with big split_lenght parameter
#4480ClosedBug2005-05-30strripos doesn't return false
#4605ClosedBug2005-06-16debug_print_backtrace - Object to string conversion
#4691ClosedReq2005-06-27[PATCH] mime_content_type() implementation
#4783ClosedBug2005-07-11PATH_SEPARATOR version wrong
#4788ClosedBug2005-07-11syntax error in version_compare + new: implementation of is_scalar!!!
#4830BogusReq2005-07-13combine_array that you can use in php4..
#4851ClosedBug2005-07-18var_export severely broken! (new implementation attached)
#4857ClosedReq2005-07-19Add property_exists
#5049ClosedBug2005-08-09function strripos does not report (int)0
#5078ClosedBug2005-08-12[patch] Current implementation of str_shuffle sux.
#5104ClosedBug2005-08-16debug_print_backtrace requires PHP 4.3.0 (and not 4.0.0)
#5106ClosedReq2005-08-16inet_ntop function
#5425ClosedReq2005-09-15array_slice missing
#5469ClosedBug2005-09-21md5_file just display the file contents :)
#5691ClosedBug2005-10-14fputcsv uses wrong variable in is_resource()
#6082ClosedReq2005-11-26[patch] file_put_contents with locking support
#6184ClosedBug2005-12-07new line at the end on idate function causing trouble...
#6293ClosedBug2005-12-19array_intersect_key produces incorrect results with more than 2 arguments
#6558No FeedbackBug2006-01-23var_export
#6560ClosedBug2006-01-23missing 'Function/property_exists.php' when installed with $ pear install PHP_C
#6687ClosedBugCVS2006-02-03array_intersect_key() fails due to func_get_args()
#6758ClosedBug1.5.02006-02-12notice errors with debug_print_backtrace and call_user_func_array usage
#6922ClosedBug1.5.02006-02-24Space after php close markup in Function/mime_content_type.php
#6923BogusBug1.5.02006-02-24Space after php close markup in Function/mime_content_type.php
#7139ClosedReq1.5.02006-03-17PHP 5.1.1 Datetime Constants
#7402ClosedReq1.5.02006-04-15Missing unit tests
#7403ClosedReq1.5.02006-04-15str_ireplace too slow
#7414ClosedReq1.5.02006-04-17making var_export() generating correct PHP code with nested objects
#7519Wont fixBug1.5.02006-04-28clone does not return reference
#7520ClosedBug1.5.02006-04-28cyclic reference cloning causes timeout
#8208ClosedReq1.5.02006-07-13is_callable missing in php 4.0.4, 4.0.5
#8338ClosedBug1.5.02006-08-01convert_uudecode removes spaces from line ends, causing corruption
#8864ClosedBug1.5.02006-10-05magic quotes gpc emulation missing server vars
#9042ClosedBug1.5.02006-10-15Various uninitialized variables
#9043ClosedBug1.5.02006-10-15Various issues in str_shuffle
#9187ClosedReqCVS2006-10-27Adding httponly to setcookie/setrawcookie (new in php 5.2)
#9659ClosedReq1.5.02006-12-19The userdata parameter isn't correctly send to the recursive call
#9687ClosedBug1.5.02006-12-23array_*_key function(s) slow
#9983ClosedBug1.5.02007-01-30Function [array_udiff_uassoc()] is incorrectly implemented
#10177ClosedReq1.5.02007-02-24add most recent UPLOAD ERR constants
#10734ClosedBug1.5.02007-04-15Magic Quotes Compatability
#11205ClosedReq1.5.02007-06-01register globals SERVER not SESSION
#11206ClosedBug1.6.0a12007-06-01clone() bug
#11631ClosedBug1.6.0a12007-07-18Missing '}' in loadFunction()
#12158ClosedBug1.6.0a12007-10-01wrong function name
#12227ClosedReqCVS2007-10-11sys_get_temp_dir missing
#12301ClosedBug1.6.0a12007-10-22Compat calls php 5 function
#13018ClosedBug1.6.0a12008-01-31Curly bracket missing
#13165ClosedBug1.6.0a12008-02-21array_fill() not matching output from V5.3.0-dev.
#13400ClosedReqCVS2008-03-15php_ini_loaded_file()
#13802Wont fixReq1.5.02008-04-29Add is_executable() for Windows
#14138ClosedBug1.6.0a12008-06-13htmlspecialchars_decode() converts irreversibly
#14687ClosedReq1.6.0a12008-09-22htmlspecialchars missing 4th parameter
#14824ClosedBugCVS2008-10-18Invalid sections formats in test file(s) (unit tests)
#14891ClosedBugCVS2008-10-26Parse error: syntax error, unexpected '}' in /home/clockwerx/pear/PHP_Compat/Co
#15119ClosedBug1.6.0a12008-11-21Patch and tests for getopt()
#15139VerifiedReq1.6.0a22008-11-24PHP_Compat does not comform to PEAR CS
#15409ClosedBugCVS2008-12-27Broken unit tests
#15531ClosedReq1.6.0a22009-01-07getmxrr() support for windows
#15532ClosedBug1.6.0a22009-01-07ini_set('register_globals', 'off'); not required
#15537ClosedReq1.6.0a22009-01-07IIS REQUEST_URI compatibility
#15539ClosedDoc1.6.0a22009-01-07PHP_EOL link is incorrect.
#15540ClosedDoc1.6.0a22009-01-07htmlspecialchars has incorrect "since"
#15684ClosedReq1.6.0a22009-01-19Add str_getcsv support for 5.1.0 +
#15688ClosedReq1.6.0a22009-01-20PATHINFO_FILENAME
#15698ClosedBug1.6.0a22009-01-20Typo in str_ireplace.php
#15707ClosedReqCVS2009-01-21file_get_contents has incomplete support
#16157ClosedBug1.6.0a22009-04-29Missing argument 5 for setrawcookie()
#16158ClosedBug1.6.0a22009-04-29Fatal error: Cannot call __clone() method on objects
#16190BogusReq1.6.0a22009-05-06Missing EndTags (or trailling spaces)
#16191ClosedBug1.6.0a22009-05-06fprintf parameters lost
#16262Wont fixReq1.6.0a22009-05-26Filenaming issues
#16462ClosedReq1.5.02009-07-22add json_decode-function that behaves like in PHP5.2
#16521OpenReq1.6.0a22009-08-14Support for hash_hmac() function
#16769BogusReq1.6.0a22009-11-06Replacements for deprecated POSIX functions
#16921ClosedBugCVS2009-12-17PHP_Compat includes functions that no version of PHP does
#16922ClosedBugCVS2009-12-17bad minimum reqirements - getopt
#16945ClosedDocUnknown2009-12-26Spelling error in long desc
#17072Wont fixBugCVS2010-02-06bc math warning's in bcpowmod not emulated
#18180ClosedBug1.6.0a32011-01-07Typo in Conection
#18181FeedbackBug1.6.0a32011-01-07HTTP recursion broken in file_get_contents
#19822OpenBug1.6.0a32013-02-15Class file PHP_Compat missing from package
#20011OpenReq1.6.0a32013-07-17hex2bin missing
#20300OpenReq1.6.0a32014-06-17add stream_resolve_include_path