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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sat Dec 14 01:01:28 2024 UTC