nlopess Fri Sep 1 23:25:29 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/date/lib parse_tz.c
Log:
omg. take #2 to fix the bug. sorry..
http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/parse_tz.c?r1=1.20.2.6.2.5&r2=1.20.2.6.2.6&diff_format=u
Index: php-src/ext/date/lib/parse_tz.c
diff -u php-src/ext/date/lib/parse_tz.c:1.20.2.6.2.5
php-src/ext/date/lib/parse_tz.c:1.20.2.6.2.6
--- php-src/ext/date/lib/parse_tz.c:1.20.2.6.2.5 Fri Sep 1 23:13:20 2006
+++ php-src/ext/date/lib/parse_tz.c Fri Sep 1 23:25:29 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: parse_tz.c,v 1.20.2.6.2.5 2006/09/01 23:13:20 nlopess Exp $ */
+/* $Id: parse_tz.c,v 1.20.2.6.2.6 2006/09/01 23:25:29 nlopess Exp $ */
#include "timelib.h"
@@ -196,7 +196,7 @@
{
int mid, cmp;
- if (left >= right) {
+ if (left > right) {
return -1; /* not found */
}
@@ -217,7 +217,7 @@
{
int pos;
- pos = tz_search(timezone, 0, tzdb->index_size, tzdb);
+ pos = tz_search(timezone, 0, tzdb->index_size - 1, tzdb);
if (pos == -1) {
return 0;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php