|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24375 php.exe - Application error caused when I execute preg_replace
Submitted: 2003-06-28 12:10 UTC Modified: 2003-06-28 12:23 UTC
From: zvorygin at kenjitsu dot net Assigned:
Status: Not a bug Package: PCRE related
PHP Version: 4.3.1 OS: Win2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
34 - 32 = ?
Subscribe to this entry?

 [2003-06-28 12:10 UTC] zvorygin at kenjitsu dot net
I wrote a simple program which had to replace some strings in file using regular expressions and display the reult.
I used next sample templatesource_text here:
<!--%description_text="Default header"-->
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">

Reproduce code:
$templ= new template();
function applyTransform $matches_array=NULL,$replace_array=NULL){
return preg_replace("/<!--#(.*)-->/U",$repl,$text);

Expected result:
I was expected to see may be warning, or error, but NOT application error.
Also when I use "preg_replace("/<!--%(.*)-->/U",$repl,$text);"
 everythjing is fine

Actual result:
php.exe-application error
The instruction at "0x10074d7e" referenced memory at "0x00a4a000" the memory could not be "read"...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-28 12:18 UTC]
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

4.3.2 was released already...
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu May 26 20:05:44 2022 UTC