php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #23026 Make Zend case-sensitive (classes, functions, remove case-insensitive)
Submitted: 2003-04-02 15:08 UTC Modified: 2004-11-08 12:15 UTC
Votes:13
Avg. Score:4.9 ± 0.3
Reproduced:12 of 12 (100.0%)
Same Version:11 (91.7%)
Same OS:2 (16.7%)
From: mfischer@php.net Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5CVS-2003-04-02 (dev) OS: Any
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 + 17 = ?
Subscribe to this entry?

 
 [2003-04-02 15:08 UTC] mfischer@php.net
Keep subject for bugdb searching.

Make Zend case-sensitive (and therefore PHP) in regards to namesapces, classes, functions. Basically everything which is currently str_tolower()d inside the engine.

This is just a meta-bug to keep track of suggestions to this topic.

A big "NO" is to make such a thing php.ini dependant ("Not yet another switch") but truly case-sensitive.

For a start our great Hero[tm] Andrei has made a patch some time ago against ZE2 to achive this goal (see http://www.gravitonic.com/software/php/ ). It doesn't apply cleanly to current HEAD but given the patch size it should be trivial to get it working.

The big "contra" many people are concerned is BC (backwards compatibility). Yes, face it. Changing this behaviour will definitely break millions of scripts. I'm having bad dreams remembering reading code like $db = MySQL_Connect (and therefore failing my search for it with 'grep mysql_connect *' because I was to lazy about three extra characters ;).

Also see (bogusified) bug http://bugs.php.net/bug.php?id=15415 for a VOTE on this issue.

Ok, there we go :)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-08 12:15 UTC] john@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 09 10:01:31 2024 UTC