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] fel...@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

Reply via email to