php.net |  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 php.ebolamonkeys.net 2.2.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-13 14:26 UTC] jan@php.net
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 http://www.php.net/support.php

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: Tue Dec 03 18:01:30 2024 UTC