php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #39430 Fatal error: Cannot redeclare date_format()
Submitted: 2006-11-08 14:56 UTC Modified: 2006-11-09 16:02 UTC
Votes:1
Avg. Score:2.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: r dot vandruten at usc dot ru dot nl Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.2.0 OS: freebsd 6.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: r dot vandruten at usc dot ru dot nl
New email:
PHP Version: OS:

 

 [2006-11-08 14:56 UTC] r dot vandruten at usc dot ru dot nl
Description:
------------
Fatal error: Cannot redeclare date_format() in /usr/home/tester.php on line 4

<?
function date_format($x){
    return 1;
}
?>

is date_format a new undocumented function?


Reproduce code:
---------------
<?
function date_format($x){
    return 1;
}
?>


Expected result:
----------------
In 5.1.4 nothing in 5.2.0 ?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-08 15:08 UTC] r dot vandruten at usc dot ru dot nl
addition perhaps its an engine or module problem
 [2006-11-08 15:13 UTC] r dot vandruten at usc dot ru dot nl
its an internal function? but not in the documents?
 [2006-11-08 19:27 UTC] judas dot iscariote at gmail dot com
it is a new , yet to be documented function part of the new DateTime Facilities on 5.2.
 [2006-11-09 08:35 UTC] derick@php.net
Yes it is.
 [2006-11-09 16:02 UTC] nlopess@php.net
We have tools to track undocumented functions, so there's no need to have this bug open.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 00:01:31 2025 UTC