It's probably not PHP 5 and more likely that someone changed the php.ini
error reporting settings in the process of upgrading (or maybe PHP 5 has a
different set of default settings?).

You should probably trace through your application and note what files are
being loaded, in what order, etc.. so thath you can identify why the error
occurred.  Using include_once fixes the problem but may not address bigger
issues.

-Ed


> -----Original Message-----
> Hi All,
> 
> 
> 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.
> 
> I've looked through the release notes and found nothing.  I looked
> through the manual and found nothing that I can really put my finger on.
> I was able to correct the problem with changing the 'include()' to
> 'include_once()', but I really want to know why this happened and why it
> didn't throw that error until now.
> 
> 
> alex hogan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to