|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-01-02 15:27 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 01:00:02 2025 UTC |
date("r") prints current time in rfc822 format = 31 characters. In "ext/standard/datetime.c" (line 491) these 31 chars are copied into a buffer (tmp_buff) that is only 16 chars long. On my machine this has caused segmentation faults on various occations. Suggested patch: --- datetime.c Sun Dec 31 13:06:48 2000 +++ datetime_fixed.c Sun Dec 31 13:04:41 2000 @@ -214,7 +214,7 @@ time_t the_time; struct tm *ta, tmbuf; int i, size = 0, length, h, beat; - char tmp_buff[16]; + char tmp_buff[32]; switch(ZEND_NUM_ARGS()) { case 1: