#46089 [NEW]: Case folding should be off by default
| From: | joeedh at gmail dot com | Date: | Mon, 15 Sep 2008 23:12:15 +0000 |
| Subject: | #46089 [NEW]: Case folding should be off by default | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-129005@lists.php.net to get a copy of this message | ||
From: joeedh at gmail dot com
Operating system:
PHP version: 5.2.6
PHP Bug Type: XML related
Bug description: Case folding should be off by default
Description:
------------
Case folding is against the XML standard, as stated in:
http://markmail.org/message/exlh6us4wpbt7juk#query:xml%20case%20folding%20xml-dev+page:1+mid:rikx6p3veteu5und+state:results
and:
http://www.xml.com/axml/notes/CaseSensitive.html
A previous bug was submitted in 2003 about this issue; the decision then
was that backwards compatibility trumped adhering to the standard. I'd
like to resubmit this issue for consideration, with the following
arguments:
* XML is a standard. As such, people expect XML parsers to all
behave the same way within reasonable limits. Violating the
standard is definitely something people never expect the parser to
do.
* Backwards compatibility is important, yet there are ways to
mitigate the problems. Deprecation warning are used a lot.
Unfortunately, they'd be fairly tricky in this case.
I guess one way would be to have a flag in php.ini to use
the old default. And also perhaps have a version
of PHP (with the same default) that spat out warnings if the
case folding setting isn't user-set *with a note about the
php.ini flag and that the default will change next version*
(of course the warnings would be disabled if the flag is set).
As evil as that would be, it's the only deprecation warning
scheme I can think of (not that I have the slightest
experience deprecating aspects of APIs or languages :) ).
* Finally, to expand on my first point, since case folding is against
the XML spec, enabling it by default screws everyone over who is
using XML precisely because it *is* a standard.
--
Edit bug report at http://bugs.php.net/?id=46089&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46089&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46089&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46089&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46089&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=46089&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46089&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46089&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46089&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46089&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46089&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46089&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46089&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46089&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46089&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46089&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46089&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46089&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46089&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46089&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46089&r=mysqlcfg