|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ivica at vigord dot com
New email:
PHP Version: OS:


 [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: Sun Feb 25 16:01:27 2024 UTC