iliaa Sun Aug 20 18:20:07 2006 UTC
Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/time bug38524.phpt
Modified files:
/php-src NEWS
/php-src/ext/standard datetime.c
Log:
Fixed bug #38524 (strptime() does not initialize the internal date storage
structure).
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.209&r2=1.2027.2.547.2.210&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.209 php-src/NEWS:1.2027.2.547.2.210
--- php-src/NEWS:1.2027.2.547.2.209 Thu Aug 17 14:04:09 2006
+++ php-src/NEWS Sun Aug 20 18:20:07 2006
@@ -1,6 +1,8 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? Sep 2006, PHP 5.2.0
+- Fixed bug #38524 (strptime() does not initialize the internal date storage
+ structure). (Ilia)
17 Aug 2006, PHP 5.2.0RC2
- Increased default memory limit to 16 megabytes to accommodate for a more
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/datetime.c?r1=1.134.2.2&r2=1.134.2.2.2.1&diff_format=u
Index: php-src/ext/standard/datetime.c
diff -u php-src/ext/standard/datetime.c:1.134.2.2
php-src/ext/standard/datetime.c:1.134.2.2.2.1
--- php-src/ext/standard/datetime.c:1.134.2.2 Sun Jan 1 12:50:14 2006
+++ php-src/ext/standard/datetime.c Sun Aug 20 18:20:07 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: datetime.c,v 1.134.2.2 2006/01/01 12:50:14 sniper Exp $ */
+/* $Id: datetime.c,v 1.134.2.2.2.1 2006/08/20 18:20:07 iliaa Exp $ */
#if HAVE_STRPTIME
#define _XOPEN_SOURCE
@@ -101,6 +101,8 @@
return;
}
+ memset(&parsed_time, 0, sizeof(parsed_time));
+
unparsed_part = strptime(ts, format, &parsed_time);
if (unparsed_part == NULL) {
RETURN_FALSE;
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/time/bug38524.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/time/bug38524.phpt
+++ php-src/ext/standard/tests/time/bug38524.phpt
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php