php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37326 Win32 PHP crash
Submitted: 2006-05-05 11:02 UTC Modified: 2006-05-05 11:16 UTC
From: alex at onix-systems dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.1.4 OS: WinXP
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: alex at onix-systems dot com
New email:
PHP Version: OS:

 

 [2006-05-05 11:02 UTC] alex at onix-systems dot com
Description:
------------
Can be reproduced on Win32. Works fine on Linux.
Appieared in PHP-5.1.3 ans still exists in PHP-5.1.4

Code works fine if $a < 1560


Reproduce code:
---------------
<?
$value = "";
for( $a=0; $a < 1561; $a++ ) {
	$value .= "t";
}
$res = preg_split( '/(?:(?:(?:(?<!\\\\)(?:[\\\\](?:[\\\\]{2})*))+[\$])|[^\$])*/', $value );
?>


Expected result:
----------------
nothing in this example

Actual result:
--------------
PHP crash

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-05 11:12 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Not reproducible on Linux.
 [2006-05-05 11:16 UTC] tony2001@php.net
Ah, this is just another stack overflow.
This is expected and actually related to PCRELib, not PHP itself.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 13:01:34 2025 UTC