|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25932 s (PCRE_DOTALL) modifier makes Apache2 crash
Submitted: 2003-10-21 06:15 UTC Modified: 2003-10-23 02:30 UTC
From: dcahh at gmx dot de Assigned:
Status: Not a bug Package: PCRE related
PHP Version: 4.3.4RC2 OS: W2K Prof
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: dcahh at gmx dot de
New email:
PHP Version: OS:


 [2003-10-21 06:15 UTC] dcahh at gmx dot de
I tried to parse a .xml-file using the regular expression as below. Using the s modifier reproduces a crash, leaving it away the crash does not appear.

System message:

The exception "unkown software expection" (0xc00000fd) occured in the program at 0x00c3912d. OK / Cancel

(translated from German error message)

Reproduce code:
preg_match_all('~<(\w+)/?>(.)*</(\1)>~sm', $this->sFile, $aTags); // havin s modifier reproduces the crash, leaving it away = no crash

Expected result:
Regular Expression matches


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-21 10:54 UTC]
What is the XML file used?
 [2003-10-22 02:58 UTC] dcahh at gmx dot de
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE seite SYSTEM "">
		<seitentitel>Partner der LCO</seitentitel>
		<seitenbeschreibung>Partner der LINEAS Consulting GmbH</seitenbeschreibung>
		<schluesselworte>LINEAS Consulting GmbH Hamburg Partnerfirmen</schluesselworte>
		<revisit>30 days</revisit>
			<firma>LINEAS Consulting</firma>

		<absatzueberschrift>Die Partnerfirmen der LINEAS Consulting GmbH</absatzueberschrift>

		<absatz><link ziel="" zielfenster="_blank">
		<bild name="logo_ca.gif" rahmen="no"/></link> <link
		ziel="" zielfenster="_blank"><bild
		name="logo_euy.gif" rahmen="no"/></link>

		<absatz><link ziel="" zielfenster="_blank">
		<bild name="logo_cisco.gif" rahmen="ja"/></link></absatz>

		<absatz><link ziel="" zielfenster="_blank"><bild
		name="logo_atelion.gif" rahmen="no"/></link>

		<absatz><link ziel="" zielfenster="_blank">
		<bild name="logo_line_information.gif" rahmen="no"/></link>

		<absatz><bild name="logo_aw.gif" rahmen="no"/></absatz>

		<absatz><link ziel="" zielfenster="_blank"><bild
		name="logo_incognis.gif" rahmen="no"/></link></absatz>

		<absatz><link ziel="" zielfenster="_blank"><bild
		name="logo_addcraft.gif" rahmen="no"/></link></absatz>

		<absatz><link ziel="" zielfenster="_blank"><bild
		name="logo_comendo.gif" rahmen="no"/></link></absatz>

 [2003-10-22 21:12 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

This code does infact cause a crash (not limited to Win32). However, the crash is the result of a bug in the PCRE library, please report it to the authors of said library. This is not a PHP bug.
 [2003-10-23 02:30 UTC] dcahh at gmx dot de
ok, tks
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 14:01:27 2024 UTC