Re: Cannot redeclare function
| From: | John W. Holmes | Date: | Tue, 10 Aug 2004 19:00:39 +0000 |
| Subject: | Re: Cannot redeclare function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193364@lists.php.net to get a copy of this message | ||
From: "Alex Hogan" <Alex.Hogan@alliedelec.com>
> I have a registration page that hasn't changed in several weeks. Today
> it decided to freak-out by throwing an error;
> 'Cannot redeclare myfunctionname() on line 10 of myfunctions.inc'
>
> Nothing has changed in either the calling page, or the function. The
> only thing that has changed since these files were put into production
> is the upgrade on php to 5.
Did your error_reporting level change with the upgrade? This was more than
likely silently ignored with PHP4 and now showing as a warning/error in PHP5
or just dependent upon your error_reporting level.
---John Holmes...