Edit report at https://bugs.php.net/bug.php?id=52368&edit=1
ID: 52368 Updated by: [email protected] Reported by: cobexer at gmail dot com Summary: crash in preg_replace_impl -Status: Feedback +Status: No Feedback Type: Bug Package: PCRE related Operating System: Debian Lenny (5.0.5) PHP Version: 5.2.13 New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2010-08-30 21:05:22] cobexer at gmail dot com i found a workaround for the crash: as soon as i removed the $count parameter(and the $limit) tha crash was gone =) mixed preg_replace_callback ( mixed $pattern , callback $callback , mixed $subject [, int $limit = -1 [, int &$count ]] ) regards cobexer ------------------------------------------------------------------------ [2010-08-12 21:19:59] cobexer at gmail dot com I did a quick test today using http://snaps.php.net/php5.3-latest.tar.gz (from yesterday) does not crash(as expected since the problem didn't exist there anyway). however using http://snaps.php.net/php5.2-latest.tar.gz (from yesterday) still crashes on the same line as before. (tested on i586 openSuSE 11.4(Factory)) regards cobexer ------------------------------------------------------------------------ [2010-08-09 03:19:31] [email protected] Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2010-07-30 21:24:40] cobexer at gmail dot com hmm that crash is hard to nail down, it doesn't crash on all of my computers, therefore i did the following: * created crashing test script (currently ~150 Lines) * compiled php 5.2.14 (with -O0) (in /php) on a i586 openSUSE Factory(a bit newer than 11.3) * created a core dump * tar'gz ed it together and uploaded that to http://gomorrah-online.de/php-5.2.14-crash.tar.gz important contents: scrash.php : the php script with the code to crash (run with php -e) scrash.php.log : the output of the script till it crashed php-bt.txt : output of "bt" and "bt full" core : the coredump itself maybe that helps already, regards cobexer ------------------------------------------------------------------------ [2010-07-18 19:39:03] [email protected] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ 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 https://bugs.php.net/bug.php?id=52368 -- Edit this bug report at https://bugs.php.net/bug.php?id=52368&edit=1
