php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #121 Subclass can't overwrite function
Submitted: 1998-03-01 08:52 UTC Modified: 1998-03-01 09:04 UTC
From: cs at hal dot kph dot tuwien dot ac dot at Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0b2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
36 + 29 = ?
Subscribe to this entry?

 
 [1998-03-01 08:52 UTC] cs at hal dot kph dot tuwien dot ac dot at
If function names contain of mixed upper- and lower case letters, subclasses can't overwrite the function.
Error Message:
	Fatal error: Can't redeclare already declared
	function in....

Workaround: Convert all function names to lower case.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-03-01 09:04 UTC] zeev
Fixed long ago...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 22:01:30 2024 UTC