Re: PHP Overload __call() and case sensitive
| From: | Alan Knowles | Date: | Sat, 08 May 2004 02:39:52 +0000 |
| Subject: | Re: PHP Overload __call() and case sensitive | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-28994@lists.php.net to get a copy of this message | ||
Guillaume Lecanu wrote:
Hi, With the PHP overload system, when a method is call, the internal __call() method don't return the correct case of the method. Anybody know how to get the correct case of the method called ? Does it work in PHP5? - I doubt it will ever work in PHP4Regards Alan
For my XML_FastCreate, we can use translation option to bypass this bug, but this is not the best solution. Thanks, Le ven 07/05/2004 à 20:06, patrick dot lambert at noggin dot com a écrit :From: patrick dot lambert at noggin dot comOperating system: Solaris 9PHP version: 4.3.4 PHP Bug Type: XML_FastCreateBug description: XML tags are converted to lowercase Description: ------------ Upper or mixed-case XML tags are converted to lowercase. Reproduce code: --------------- $x =& new XML_FastCreate_Text(); $x->outer( $x->INNER('foo') ); $x->toXML(); Expected result: ---------------- <?xml version="1.0" encoding="UTF-8" standalone="no" ?> <outer> <INNER>foo</INNER></outer> Actual result: -------------- <?xml version="1.0" encoding="UTF-8" standalone="no" ?> <outer> <inner>foo</inner></outer> -- Edit bug report at http://pear.php.net/bugs/bug.php?id=1367&edit=1