 |
|
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.
| Ratings | Utility |
Consistency |
Documentation |
Examples |
Tests |
Videos |
Overall |
Rank |
| All time: |
Good (90.0%) |
Good (85.0%) |
- |
- |
Sufficient (75.0%) |
- |
Sufficient (61.0%) |
638 |
| Month: |
Not yet rated by the users |
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| File |
Role |
Description |
fixed.LICENSE |
Lic. |
BSD License for the class code just to make explicit that you may do anything with it. |
fixed.php |
Class |
Class with fixed functions and the respective standalone function wrappers |
test_fixed.php |
Test |
Test script that tells you whether the PHP version you are using has any of the functions broken |