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

Bug #9561 Not allowing underscores in middle of tags
Submitted: 2006-12-06 15:44 UTC
From: darren at cwebd dot co dot uk Assigned: schst
Status: Closed Package: XML_Util (version 1.1.2)
PHP Version: 5.2.0 RC4 OS: Linux 2.6.10 - Debian Sarge
Roadmaps: (Not assigned)    
Subscription  


 [2006-12-06 15:44 UTC] darren at cwebd dot co dot uk (Darren Clark)
Description: ------------ When a tag name such as "TEST_UNDERSCORE" is passed to XML_Util::isValidName the test fails due to a regex error. Test script: --------------- $result = XML_Util::isValidName("TEST_UNDERSCORE"); if (PEAR::isError($result)) { print "Invalid XML name: " . $result->getMessage(); } FIX: Line:753 change to: if (!preg_match('/^([[:alpha:]_]([[:alnum:]\-\.]*)?:)?[[:alpha:]_]([[:alnum:]\_\-\.]+)?$/', $string)) { Expected result: ---------------- isValidName should return true Actual result: -------------- isValidName should return's false

Comments

 [2006-12-16 09:46 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!