php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9591 Segmentation fault
Submitted: 2001-03-06 19:18 UTC Modified: 2001-03-06 19:21 UTC
From: torkel at stjordalsnett dot no Assigned:
Status: Closed Package: Date/time related
PHP Version: 4.0.4pl1 OS: Linux RedHat 6.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
39 - 16 = ?
Subscribe to this entry?

 
 [2001-03-06 19:18 UTC] torkel at stjordalsnett dot no
The following code produces a segmentation fault:
<? echo date('h:i:s <br> d/m-y'); ?>
If i remove the <br> it works just fine.

In the web-browser it outputs wrong day of the month
Example: "12:59:40 3158065/03-01"

In error_log the following message is printed:
"child pid xxxxx exit signal Segmentation fault (11)"

No core dump or any output in gdb

The code above works fine in earlier versions of PHP

I have tried the code with serveral different apache versions,
with different modules/configure options, and with both DSO and static compiles, and on different computers. Always the same result.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-06 19:21 UTC] sniper@php.net
The segfault bug is fixed in CVS already. 

FYI (from NEWS file in CVS):
- Added 'r' flag to date() which generates an RFC822 formatted date, e.g.
   "Thu,  9 Nov 2000 16:33:01 -0500" (Colin)


--Jani


 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu May 26 07:03:36 2022 UTC