#25932 [Bgs]: s (PCRE_DOTALL) modifier makes Apache2 crash

From: Date: Thu, 23 Oct 2003 06:30:24 +0000
Subject: #25932 [Bgs]: s (PCRE_DOTALL) modifier makes Apache2 crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-49383@lists.php.net to get a copy of this message
 ID:               25932
 User updated by:  dcahh at gmx dot de
 Reported By:      dcahh at gmx dot de
 Status:           Bogus
 Bug Type:         PCRE related
 Operating System: W2K Prof
 PHP Version:      4.3.4RC2
 New Comment:

ok, tks


Previous Comments:
------------------------------------------------------------------------

[2003-10-22 21:12:22] 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-22 02:58:38] 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-21 10:54:15] iliaa@php.net

What is the XML file used?

------------------------------------------------------------------------

[2003-10-21 06:15:42] 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



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25932&edit=1


Thread (5 messages)

« previous php.bugs (#49383) next »