|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 08 11:03:42 2023 UTC