#25932 [Fbk->Opn]: s (PCRE_DOTALL) modifier makes Apache2 crash
| From: | dcahh at gmx dot de | Date: | Wed, 22 Oct 2003 06:58:38 +0000 |
| Subject: | #25932 [Fbk->Opn]: s (PCRE_DOTALL) modifier makes Apache2 crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49322@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: Feedback
+Status: Open
Bug Type: PCRE related
Operating System: W2K Prof
PHP Version: 4.3.4RC2
New Comment:
<?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>
Previous Comments:
------------------------------------------------------------------------
[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