Bug #63846 [Nab]: preg_match cause segmentation fault

From: Date: Mon, 24 Dec 2012 12:19:35 +0000
Subject: Bug #63846 [Nab]: preg_match cause segmentation fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-175592@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63846&edit=1 ID: 63846 User updated by: saprykin dot dmitry at gmail dot com Reported by: saprykin dot dmitry at gmail dot com Summary: preg_match cause segmentation fault Status: Not a bug Type: Bug Package: PCRE related PHP Version: 5.4.10 Block user comment: N Private report: N New Comment: Thanks for reply! Found compile option to solve this Previous Comments: ------------------------------------------------------------------------ [2012-12-24 11:21:44] felipe@php.net Related to bug #63829 ------------------------------------------------------------------------ [2012-12-24 10:40:07] saprykin dot dmitry at gmail dot com Description: ------------ simple regular expression causes segmentation fault. Details are below. Test script: --------------- $text = str_repeat('text ', 870); echo 'Text size: '.strlen($text).PHP_EOL; preg_match('/([a-z]\s*)+/', $text); echo 'Working!'; Expected result: ---------------- Text size: 4350 Working! Actual result: -------------- Text size: 4350 Segmentation fault (core dumped) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63846&edit=1

« previous php.bugs (#175592) next »