You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.
This might actually be a bug with PHP, but Phalanger acts differently from PHP that can cause problems.
When an optional matching group doesn't match in a preg_match_all() call with PREG_OFFSET_CAPTURE, PHP returns "" (an empty string) for that group, whereas Phalanger returns array("",0).
@mgduk Phalanger's development is mostly discontinued in favor of PeachPie, the more modern compiler and runtime that also targets .NET Core. Please feel free to give that a try.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This might actually be a bug with PHP, but Phalanger acts differently from PHP that can cause problems.
When an optional matching group doesn't match in a preg_match_all() call with PREG_OFFSET_CAPTURE, PHP returns "" (an empty string) for that group, whereas Phalanger returns array("",0).
Reproduction code:
PHP returns:
Phalanger:
Phalanger 3.0
PHP 5.0.4 – 5.5.18.
The text was updated successfully, but these errors were encountered: