Re: Auth problem

From: Date: Thu, 22 Apr 2004 10:01:11 +0000
Subject: Re: Auth problem
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12019@lists.php.net to get a copy of this message
lists wrote:
require_once "Auth/Auth.php";
Fatal error: Cannot redeclare loginfunction() (previously declared in D:\MyWork\WebServer\auth.php:10) in D:\MyWork\WebServer\Auth.php on line 4
trivial: rename you file auth.php to something else and try again. Auth has moved it's main file from <pear>/Auth/Auth.php to <pear>/Auth.php, the file Auth/Auth.php requires Auth.php for this to work. and windows doesn't differ between auth.php and Auth.php, so Auth/Auth.php includes your file again, and this redeclares the function :) so you have to rename your file, and you can change the require_once-line to require_once "Auth.php"; stephan

« previous php.pear.general (#12019) next »