Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.3

Bug #5419 isValidString() incorrect
Submitted: 2005-09-15 14:33 UTC Modified: 2006-12-17 05:02 UTC
From: vladimir at webrover dot ru Assigned: schst
Status: Closed Package: XML_Util
PHP Version: 4.3.10 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-09-15 14:33 UTC] vladimir at webrover dot ru
Description: ------------ function isValidString() uses this regular expression to check, whether string is valid XML name: /^([a-zA-Z_]([a-zA-Z0-9_\-\.]*)?:)?[a-zA-Z_]([a-zA-Z0-9_\-\.]+)?$/ i.e. XML letter defined as [a-zA-Z], which is not correct - it must include wider range of characters according to XML specification. I think, it would be better, but maybe not the best, to use this definition of letter: /^([[:alpha:]_]([[:alnum:]\-\.]*)?:)?[[:alpha:]_]([[:alnum:]\-\.]+)?$/

Comments

 [2005-09-22 10:55 UTC] schst
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.