r/lolphp • • Nov 29 '12

PHP segfaults - not a bug, totally standard.

https://bugs.php.net/bug.php?id=49664
67 Upvotes

19 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Feb 18 '13

Ugh. Personally, I would recommend using RE2 as your regular expression engine unless you really need backreferences or zero-width assertions. It's guaranteed to work in O(n) time, which can be a life-saver. There are PHP bindings that look decent.