#39430 [Opn]: Fatal error: Cannot redeclare date_format()

From: Date: Thu, 09 Nov 2006 08:35:25 +0000
Subject: #39430 [Opn]: Fatal error: Cannot redeclare date_format()
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969374345@lists.php.net to get a copy of this message
ID: 39430 Updated by: derick@php.net Reported By: r dot vandruten at usc dot ru dot nl Status: Open Bug Type: Documentation problem Operating System: freebsd 6.0 PHP Version: 5.2.0 New Comment: Yes it is. Previous Comments: ------------------------------------------------------------------------ [2006-11-08 19:27:57] 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-08 15:13:21] r dot vandruten at usc dot ru dot nl its an internal function? but not in the documents? ------------------------------------------------------------------------ [2006-11-08 15:08:13] r dot vandruten at usc dot ru dot nl addition perhaps its an engine or module problem ------------------------------------------------------------------------ [2006-11-08 14:56:09] 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 ? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39430&edit=1

« previous php.doc (#969374345) next »