|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-09-28 13:32 UTC] rasmus at cvs dot php dot net
[2023-04-29 09:22 UTC] git@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 12:00:01 2025 UTC |
PHP running as an Apache v1.3.9 module. The following script: <?php $current_time = date("M j Y g:i A"); ?> causes a segmentation fault of the process running the script if it is run when the hour of the local time is 2 digits (ie between 10am and 12pm and 10pm and 12am). The problem can be traced back to the _php3_date() function in functions/datetime.c. The switch case for computing the size of the string required to hold the formatted date does not increment the size by 2 for the 'g' and 'G' cases. It is incorrectly incremented by 1. Venkat