PHP Developer's Network : Network Member Forums

Class: Fixed functions broken before PHP 4.2.0



  Search   All class groups   Latest entries   Top 10 charts   Newsletter   Blog   Forums   Help FAQ  
  Login   Register  
Recommend this page to a friend! Trackback URL: http://www.phpclasses.org/trackback/browse/package/404.html
      Classes of Manuel Lemos  > 
Fixed functions broken before PHP 4.2.0
 >  Download  >  Support forum Support forum  >  RSS 1.0 feed RSS 2.0 feed Latest changes  >  Stumble It! Stumble It!  >  Bookmark in del.icio.us Bookmark in del.icio.us  
  Supplied by   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Related links   Files Files  
  • Supplied by:

  • Picture of Manuel Lemos
    Name: Manuel Lemos <e-mail contact>
    Published packages: 28
    Country: Portugal Portugal - PHP professionals from Portugal looking for PHP jobs
    Home page: http://www.ManuelLemos.net/
    Age: 39
    All time rank: 1
    Week rank: 1

    Browse this author's classes

  • Groups:

  • Group folder image
    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%)
    522
    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   Site map   Statistics   Site tips   Privacy policy   Contact  

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