[php-maint] preg_match: Segmentation fault
fw at deneb.enyo.de
Sun Dec 2 15:22:28 UTC 2007
* sean finney:
>> the following code causes a segmentation fault with the latest stable php5:
>> preg_match("/(?:a|bb)*/", str_repeat("a", 5000));
> i believe this is a known limitation in php, any version. try looking
> through bugs.php.net and you'll probably find similar reports.
Is preg_match implemented using PCRE? There's a compile-time option in
PCRE that would avoid the stack overflow.
AFAICT, this is bug #400121.
More information about the pkg-php-maint