|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17187 Cannot declare class "User"
Submitted: 2002-05-13 14:23 UTC Modified: 2002-05-13 14:26 UTC
From: ivica at vigord dot com Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 4.1.2 OS: Linux 2.2.1
Private report: No CVE-ID: None
 [2002-05-13 14:23 UTC] ivica at vigord dot com
When I try to declare class "User" I get:

Fatal error: Cannot redeclare class user in <file-name> on line 4

I didn't find that "user" or "User" is reserved word?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-13 14:26 UTC]
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit

Thank you for your interest in PHP.

this is most likely an include issue, try to improve your logic or use include_once or require_once respectively.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 17 00:01:28 2024 UTC