ID:               19386
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         PCRE related
 Operating System: *
 PHP Version:      4.2.3, 4.3.0-dev
 New Comment:

I cannot reproduce this bug using the latest cvs on redhat 7.3.  The
script just keeps going.  I cut it off after 20000 chars.

I also do not experience this problem with the latest cvs release on
FreeBSD 4.6-STABLE.

Devon


Previous Comments:
------------------------------------------------------------------------

[2002-09-17 08:07:05] [EMAIL PROTECTED]

I've reproduced this using the php4-win32-latest snapshot.
The only difference is that it crashes at
char 3915 instead of 4041. Sorry, but not gdb hence no
backtrace.

------------------------------------------------------------------------

[2002-09-17 07:56:38] [EMAIL PROTECTED]

And I can still reproduce it with the short script and using latest
CVS. (which has the new pcre lib)


------------------------------------------------------------------------

[2002-09-17 07:10:20] [EMAIL PROTECTED]

I didn't see that Jani reproduced this.

FWIW, I can not reproduce using current CVS or with
PHP 4.2.1 (the oldest version I had to hand just now)
using the short script that you provided.

------------------------------------------------------------------------

[2002-09-17 07:03:48] [EMAIL PROTECTED]

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

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.

Could you supply a backtrace?
Also, could you try with a non-stable snapshot from the
last couple of days as the PCRE library was updated recently.

------------------------------------------------------------------------

[2002-09-17 05:22:14] [EMAIL PROTECTED]

Tests of different lengths of string '$x' show that if
strlen($x) > 4040 the crash occurs i.e. with the last
text is 'Randomized-Controlled-Trial' php will crash. A
shorter script as requested is:
<?php
$x = '';
while (true) {
        $x .= '*';
        $len = strlen($x);
        preg_match('/(.|[\r\n])+/', $x, $match);
        echo "<br />$len\n";
}
?>

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/19386

-- 
Edit this bug report at http://bugs.php.net/?id=19386&edit=1

Reply via email to