php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8694 Date function core dumps with escaped chars
Submitted: 2001-01-13 22:41 UTC Modified: 2001-01-14 00:40 UTC
From: dirk at rackspace dot com Assigned:
Status: Closed Package: Date/time related
PHP Version: 4.0.4pl1 OS: Red Hat 6.2
Private report: No CVE-ID: None
 [2001-01-13 22:41 UTC] dirk at rackspace dot com
<?
        $stamp=time();
   print(date("m d \o\f \t\h\e \w\e\e\k M F Y"));
 
?>

put the above code snippet in a file called test.php - run the php cgi from the command line 

php -q test.php

And it will core 

remove the \o\f \t\h\e \w\e\e\k and it works fine 
This used to work before 4.0.4

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-13 23:54 UTC] rasmus@php.net
Unable to reproduce in current CVS - perhaps fixed.  Try a snapshot from snaps.php.net please.
 [2001-01-14 00:40 UTC] david@php.net
Fixed in CVS. Note also that "\t" produces a tab character. You probably want to use '\t' with single quotes instead. Or even better, date("m d")." of the week ".date("M F Y");
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC