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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 16:01:30 2024 UTC