php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dcahh at gmx dot de
New email:
PHP Version: OS:

 

 [2003-10-21 06:15 UTC] dcahh at gmx dot de
Description:
------------
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-21 10:54 UTC] iliaa@php.net
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 "http://www.lco.lineas.de/xmlCms.dtd">
<seite>
	<dokumenteninformation>
		<seitentitel>Partner der LCO</seitentitel>
		<sprache>de</sprache>
		<seitenbeschreibung>Partner der LINEAS Consulting GmbH</seitenbeschreibung>
		<schluesselworte>LINEAS Consulting GmbH Hamburg Partnerfirmen</schluesselworte>
		<revisit>30 days</revisit>
		<robots>index,follow</robots>
		<menueinformation>
			<aktiv>ja</aktiv>
			<menueposition>3</menueposition>
			<menuetext>Partner</menuetext>
		</menueinformation>
		<lastedited>
			<autor>LCO</autor>
			<firma>LINEAS Consulting</firma>
			<datum>15.10.2003</datum>
		</lastedited>
	</dokumenteninformation>
	<inhalt>

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

		<absatz><link ziel="http://www.ca.com/" zielfenster="_blank">
		<bild name="logo_ca.gif" rahmen="no"/></link> <link
		ziel="http://www.ey.com/" zielfenster="_blank"><bild
		name="logo_euy.gif" rahmen="no"/></link>
		</absatz>

		<absatz><link ziel="http://www.cisco.de/" zielfenster="_blank">
		<bild name="logo_cisco.gif" rahmen="ja"/></link></absatz>

		<absatz><link ziel="http://www.atelion.de/" zielfenster="_blank"><bild
		name="logo_atelion.gif" rahmen="no"/></link>
		</absatz>

		<absatz><link ziel="http://www.line-information.de/" zielfenster="_blank">
		<bild name="logo_line_information.gif" rahmen="no"/></link>
		</absatz>

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

		<absatz><link ziel="http://www.incognis.de/" zielfenster="_blank"><bild
		name="logo_incognis.gif" rahmen="no"/></link></absatz>

		<absatz><link ziel="http://www.addcraft.com/" zielfenster="_blank"><bild
		name="logo_addcraft.gif" rahmen="no"/></link></absatz>

		<absatz><link ziel="http://www.comendo.com/" zielfenster="_blank"><bild
		name="logo_comendo.gif" rahmen="no"/></link></absatz>

	</inhalt>
</seite>
 [2003-10-22 21:12 UTC] iliaa@php.net
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 http://www.php.net/support.php 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: Sat Dec 21 16:01:28 2024 UTC