PHP Classes
Icontem

Class: Fixed functions broken before PHP 4.2.0


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Manuel Lemos  >  Fixed functions broken before PHP 4.2.0  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Fixed functions broken before PHP 4.2.0 Support forum
Base name: fixedfunctions
Description: Fix for broken PHP functions.
Version: -
Required PHP version: -
License: BSD License
All time users: 1107 users
All time rank: 2302
Week users: 1 user
Week rank: 3577
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Related links   Files Files  

Author

Picture of Manuel Lemos
Name: Manuel Lemos <e-mail contact>
Published packages: 30 Browse this author's classes Browse this author's classes
Country: Portugal Portugal - PHP jobs in Portugal
Home page: http://www.ManuelLemos.net/
Age: 40
All time rank: 1
Week rank: 2

Groups

Group folder image Libraries Frameworks and libraries of cooperating classes View top rated classes

Detailed description

Between versions 4.0.0 and 4.2.0 some PHP functions had their behaviour broken by PHP developers.

Bug reports about the broken behaviour were made. Despite the broken functions in question behaved like they did since they were introduced about 4 years ago, PHP developers that changed the behaviour considered the bug reports as bogus and did not want provide any means of backwards compatibility that would make the functions behave as they originally did.

This means that PHP programs that rely on the original behaviour of the broken functions will also be broken starting from PHP version 4.2.0. If you have PHP programs rely on these functions, either you need to fix your program eventually banning the use of the broken functions or simply not upgrading to PHP version 4.2.0 or later.

This class and some wrapper functions are intended to provide original behaviour of functions that were broken.

So far only three functions were found to be broken: dirname (broken before PHP 4.0.3), strtok (broken after PHP 4.0.6), odbc_fetch_into (broken after PHP 4.0.5 and then again after 4.2.0). If you know any other functions that were broken and PHP developers do not want to fix them, please let me know so we can provide an emulation that provides the original behaviour to help people that are not aware or do not know how to restore the broken behaviour.

User ratings

Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (90.0%)
Good (85.0%)
-
-
Sufficient (75.0%)
-
Sufficient (61.0%)
635
Month:
Not yet rated by the users

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Related links

Link Description
dirname bug report Bug report made to PHP developers about dirname broken behaviour
odbc_fetch_into bug report Bug report made to PHP developers about odbc_fetch_into broken behaviour
strtok bug report Bug report made to PHP developers about strtok broken behaviour

Files

File Role Description
Plain text file fixed.LICENSE Lic. BSD License for the class code just to make explicit that you may do anything with it.
Accessible without login Plain text file fixed.php Class Class with fixed functions and the respective standalone function wrappers
Plain text file test_fixed.php Test Test script that tells you whether the PHP version you are using has any of the functions broken
Download all files: fixedfunctions.tar.gz fixedfunctions.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products