Last modified: 2014-10-12 18:34:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T73922, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71922 - HHVM gives incorrect results for certain PCRE patterns
HHVM gives incorrect results for certain PCRE patterns
Status: NEW
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
wmf-deployment
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: hhvm
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-10 21:03 UTC by Brad Jorsch
Modified: 2014-10-12 18:34 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Brad Jorsch 2014-10-10 21:03:47 UTC
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' )

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links