Bug #17882 Updated: case sensitivity of functions in classes
| From: | derick@php.net | Date: | Sat, 13 Jul 2002 22:29:37 +0000 |
| Subject: | Bug #17882 Updated: case sensitivity of functions in classes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14099@lists.php.net to get a copy of this message | ||
ID: 17882
Updated by: derick@php.net
Reported By: erickoh@chopchopsolutions.com
-Status: Open
+Status: Assigned
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.3.0-dev
-Assigned To:
+Assigned To: andi
New Comment:
assigning to andi
Previous Comments:
------------------------------------------------------------------------
[2002-06-29 07:26:46] andi@php.net
This wasn't really fixed so I'm reopening the bug.
------------------------------------------------------------------------
[2002-06-29 04:38:58] andi@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a
documentation
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
We error out now if the same method is declared more than once.
------------------------------------------------------------------------
[2002-06-20 14:13:00] mfischer@php.net
It's actually a duplicate, I'm pretty sure, but can't find the
@$@#^^&%3 report
------------------------------------------------------------------------
[2002-06-20 14:06:42] sander@php.net
Hm, you're right. This is a bug. Confirmed with 4.3.0-dev.
------------------------------------------------------------------------
[2002-06-20 14:02:50] erickoh@chopchopsolutions.com
Hi,
I understand that PHP functions are not case sensitive.
Declaring such 2 functions outside a class gives:
Fatal error: Cannot redeclare a() in /var/www/html/a.php on line 6
However declaring the same 2 functions in a class produces no errors.
This led me to believe that class methods are case-sensitive.
I think it will be nice if an error can be thrown during the
interpretation phase, else a note about this should be put in under the
section 'PHP Classes'
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/17882
--
Edit this bug report at http://bugs.php.net/?id=17882&edit=1