Menu

#2 php4 patch

open
nobody
None
5
2007-04-17
2007-04-17
No

Please see attached for a patch against 0.7.2 that makes ajaxMyTop compatible with php4. `patch -p1 <php4.patch` will apply the patch under linux.
Note, however, that it will probably work with PHP5 as well as PHP4 so long as a version check is performed and the following file is included conditionally when the PHP version is above 5.0. in example:

if (version_compare(PHP_VERSION,'5','>='))
require_once('domxml-php4-to-php5.php');

I haven't tested with PHP5 in this case, but I've used PHP5 in the past and it shouldn't be that big of a problem. See below for the download of domxml-php4-to-php5.php (remove the .txt extension after downloading):

http://alexandre.alapetite.net/doc-alex/domxml-php4-php5/domxml-php4-to-php5.php.txt

Discussion

  • Jesse Guardiani

    Jesse Guardiani - 2007-04-17

    php4.patch

     
  • Nobody/Anonymous

    how to apply the patch on windows?

     

Log in to post a comment.