cvs: php-gtk-doc /scripts genchapterents.php.in
| From: | James Moore | Date: | Sat, 31 Aug 2002 08:26:03 +0000 |
| Subject: | cvs: php-gtk-doc /scripts genchapterents.php.in | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-558@lists.php.net to get a copy of this message | ||
jmoore Sat Aug 31 04:26:03 2002 EDT
Modified files:
/php-gtk-doc/scripts genchapterents.php.in
Log:
Work around for bug in various versions of PHP
# Dont know when this bug reappeard or disappeard as I cant figure out
# correct behaviour but if this breaks things for you then change 4.2.0
# to your version (as long as you are using the 4.2.x series
# if not email me and Ill help sort it with you.
Index: php-gtk-doc/scripts/genchapterents.php.in
diff -u php-gtk-doc/scripts/genchapterents.php.in:1.14
php-gtk-doc/scripts/genchapterents.php.in:1.15
--- php-gtk-doc/scripts/genchapterents.php.in:1.14 Thu Apr 18 10:47:46 2002
+++ php-gtk-doc/scripts/genchapterents.php.in Sat Aug 31 04:26:02 2002
@@ -46,11 +46,15 @@
closedir($dir_handle);
}
-if (strnatcmp(PHP_VERSION, '4.1.0') >= 0)
+if ((strnatcmp(PHP_VERSION, '4.1.0') >= 0) &&
+ !(strnatcmp(PHP_VERSION, '4.2.0') >= 0) )
+{
gen_dir_ents("en");
+}
else
+{
gen_dir_ents("../en");
-
+}
sort($entities, SORT_STRING);
while(list(,$val) = each($entities))
{