php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63403 Segmentation fault with preg_match
Submitted: 2012-10-31 06:44 UTC Modified: 2012-11-01 03:43 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: to dot yashin at gmail dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.3.18 OS: linux ubuntu
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: to dot yashin at gmail dot com
New email:
PHP Version: OS:

 

 [2012-10-31 06:44 UTC] to dot yashin at gmail dot com
Description:
------------
reproduced on:
php 5.3.10
php 5.4.6

Test script:
---------------
$text = file_get_contents('http://dl.dropbox.com/u/31119503/php_segfault/data.txt');
preg_match('/(?:^.*$\n*)+/mx', $text);

Expected result:
----------------
preg_match return false

Actual result:
--------------
Segmentation fault (core dumped)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-01 03:43 UTC] laruence@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

stack overflow, see #45735
 [2012-11-01 03:43 UTC] laruence@php.net
-Status: Open +Status: Not a bug
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 18:01:33 2025 UTC