Error "cannot redeclare class Auth in php/pear/Auth.php"

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Error "cannot redeclare class Auth in php/pear/Auth.php"

Postby maspai » 16. August 2014 06:47

I use XAMPP both in Linux and Windows (ver 1.8.3).
Opening in Windows a PHP website I write in Linux results error as in topic title. I create a class named Auth used in my program, and no error in Linux.
I tried uninstall and install older version of Windows XAMPP, 1.8.1. Same error. Also after I change name of the class to auth.
Thanks for help.
maspai
 
Posts: 2
Joined: 16. August 2014 06:29
Operating System: Linux, Windows

Re: Error "cannot redeclare class Auth in php/pear/Auth.php"

Postby Nobbie » 16. August 2014 10:36

Either delete pear Package (what i do not recommend) or rename your own class from Auth to a different name. Auth is already used by pear, maybe pear is not installed on your Linux version or comes with a different release.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Error "cannot redeclare class Auth in php/pear/Auth.php"

Postby maspai » 16. August 2014 15:03

Nobbie wrote:Either delete pear Package (what i do not recommend) or rename your own class from Auth to a different name. Auth is already used by pear, maybe pear is not installed on your Linux version or comes with a different release.

I did change the class name, from Auth to auth, as I already said in first post. But same error appears. Maybe I'll retry it, restart XAMPP in the Windows box. Thanks anyway.
maspai
 
Posts: 2
Joined: 16. August 2014 06:29
Operating System: Linux, Windows

Re: Error "cannot redeclare class Auth in php/pear/Auth.php"

Postby Nobbie » 16. August 2014 16:16

PHP Class Names are NOT case sensitiv (so changing from upper to lower does not change anything).
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 76 guests