]> granicus.if.org Git - php/commitdiff
Fixed bug #55014 (Compile failure due to improper use of ctime_r()).
authorIlia Alshanetsky <iliaa@php.net>
Mon, 11 Jul 2011 17:01:23 +0000 (17:01 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 11 Jul 2011 17:01:23 +0000 (17:01 +0000)
NEWS
main/reentrancy.c

diff --git a/NEWS b/NEWS
index 6f1f63a08c927df58b6670604fb315d3fd8c4aa5..97c4031d59e47224c8cd63752c93a481f91e5f6c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ PHP                                                                        NEWS
     though the class has none). (Felipe)
 
 - Core
+  . Fixed bug #55014 (Compile failure due to improper use of ctime_r()). (Ilia)
   . Fixed bug #54332 (Crash in zend_mm_check_ptr // Heap corruption). (Dmitry)
   . Fixed bug #54305 (Crash in gc_remove_zval_from_buffer). (Dmitry)
   . Fixed bug #53727 (Inconsistent behavior of is_subclass_of with interfaces)
index 5a714273b90eddd61dd5db9c6a1d394eb5872d6a..b2fe8f117fdeafd6e7d7db025a9e6f1222868087 100644 (file)
@@ -60,14 +60,14 @@ static MUTEX_T reentrant_locks[NUMBER_OF_LOCKS];
 
 PHPAPI char *php_ctime_r(const time_t *clock, char *buf)
 {
-       if (ctime_r(clock, buf, 26) == buf)
+       if (ctime_r(clock, buf) == buf)
                return (buf);
        return (NULL);
 }
 
 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf)
 {
-       if (asctime_r(tm, buf, 26) == buf)
+       if (asctime_r(tm, buf) == buf)
                return (buf);
        return (NULL);
 }