#48907 [Opn->Fbk]: Apache restarts due to a regular expression

From: Date: Wed, 15 Jul 2009 12:08:41 +0000
Subject: #48907 [Opn->Fbk]: Apache restarts due to a regular expression
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-139752@lists.php.net to get a copy of this message
ID: 48907 Updated by: jani@php.net Reported By: sworddragon2 at aol dot com -Status: Open +Status: Feedback Bug Type: PCRE related Operating System: Windows XP Professional SP3 PHP Version: 5.3.0 New Comment: Exactly what PHP version are you using? This works fine on both 5.2.10 and 5.3.0 for me.. Previous Comments: ------------------------------------------------------------------------ [2009-07-13 19:35:00] sworddragon2 at aol dot com Description: ------------ I found a regular expression with which i can restart the apache service with the notification: [notice] Parent: child process exited with status 3221225477 -- Restarting. I'm using Apache 2.2.11. Reproduce code: --------------- <?php preg_replace('#a((?:.|\n)*?)a#','a$1a','a11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111a'); ?> Expected result: ---------------- I expected that preg_replace() repaces the string. Actual result: -------------- Apache restarts with the above message an Firefox 3.5 tells me that the connection to the server was recessed. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48907&edit=1

« previous php.bugs (#139752) next »