https://bugzilla.wikimedia.org/show_bug.cgi?id=71922
Bug ID: 71922
Summary: HHVM gives incorrect results for certain PCRE patterns
Product: Wikimedia
Version: wmf-deployment
Hardware: All
OS: All
Status: NEW
Keywords: hhvm
Severity: normal
Priority: Unprioritized
Component: General/Unknown
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Web browser: ---
Mobile Platform: ---
The following call
preg_match( '/[^\p{S}\p{Nd}]/us', '4' )
correctly returns 0 on Zend but returns 1 under HHVM on MediaWiki appservers
such as mw1017. It does not seem to occur on osmium.
The same occurs with various other permutations:
preg_match( '/[^\p{P}\p{Nd}]/us', '4' )
preg_match( '/[^\p{Z}\p{Nd}]/us', '4' )
preg_match( '/[^\p{Xps}\p{Nd}]/us', '4' )
preg_match( '/[^\p{Xsp}\p{Nd}]/us', '4' )
preg_match( '/[^\p{M}\p{Ll}]/us', 'a' )
preg_match( '/[^\p{N}\p{Ll}]/us', 'a' )
preg_match( '/[^\p{P}\p{Ll}]/us', 'a' )
preg_match( '/[^\p{S}\p{Ll}]/us', 'a' )
preg_match( '/[^\p{Z}\p{Ll}]/us', 'a' )
preg_match( '/[^\p{Xps}\p{Ll}]/us', 'a' )
preg_match( '/[^\p{Xsp}\p{Ll}]/us', 'a' )
preg_match( '/[^\p{M}\p{Lu}]/us', 'A' )
preg_match( '/[^\p{N}\p{Lu}]/us', 'A' )
preg_match( '/[^\p{P}\p{Lu}]/us', 'A' )
preg_match( '/[^\p{S}\p{Lu}]/us', 'A' )
preg_match( '/[^\p{Z}\p{Lu}]/us', 'A' )
preg_match( '/[^\p{Xps}\p{Lu}]/us', 'A' )
preg_match( '/[^\p{Xsp}\p{Lu}]/us', 'A' )
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l