ID:               37435
 Updated by:       [EMAIL PROTECTED]
 Reported By:      spamhere at chello dot nl
-Status:           Open
+Status:           Bogus
 Bug Type:         DOM XML related
 Operating System: win xp/2000/2003
 PHP Version:      5.1.4
 New Comment:

Not a PHP bug, please try the latest libxml2 release and if the problem
persists, report it there.


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

[2006-05-14 20:25:49] spamhere at chello dot nl

With php 5.2 dev and Apache 2.2 the error still occurs.
Bug shows itself on seven different Windows/PHP/Apache configurations:
(XP/5.1.4/2.0.54) (XP-SP2/5.1.0/2.0.54) (XP-SP2/5.1.3/2.0.54)
(XP-SP2/5.2dev/2.2) (2000-SP4/5.1.3/2.0.53) (2003/5.1.0/2.0.53)
(2003/5.1.3/2.0.53)
It's clearly a bug in the libxml module, but I have no access to MSVC
therefore I am unable to produce a backtrace.

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

[2006-05-14 12:53:59] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Not reproducible here.

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

[2006-05-14 12:24:44] spamhere at chello dot nl

Description:
------------
Validating an xml file containing tags with multiple CDATA sections
'crashes' Apache. (see Actual Result)
schemaValidateSource causes the same unexpected result.

Workaround is available, but consequences have not been thouroughly
investigated:
use $dom->load($xmlfile, LIBXML_NOCDATA);
instead of $dom->load($xmlfile);

System configuration: (but reproducible on all kinds of Windows
configurations: 2000 / 2003)
Windows XP Version 2002 SP2
PHP 5.1.4 (and PHP 5.1.3 and 5.1.0)
Apache 2.0.55 (but also on 2.0.54 and 2.0.53 with or without SSL)
With or without php_oci.dll enabled


Reproduce code:
---------------
php script:
<?php
 $dom = new DomDocument();
 if ($dom->load($xmlfile))
 {
   if ($dom->schemaValidate($schemafile))
   {
        echo 'valid';
   } else {
        echo 'invalid';
   }
 }
?>

xml:
<?xml version="1.0" encoding="windows-1252"?>
<x:checklist xmlns:x="urn:checklists">
  <bevinding><![CDATA[cdata section 1]]>hello<![CDATA[cdata section
2]]></bevinding>
</x:checklist>

xsd (schema):
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema";
xmlns:v="urn:checklists" targetNamespace="urn:checklists">
  <element name="checklist" type="v:CheckListData">
  </element>
  <complexType name="CheckListData">
        <all>
        <element name="bevinding" type="string" minOccurs="1"
maxOccurs="1"/>
        </all>
  </complexType>
</schema>


Expected result:
----------------
schemaValidate boolean result
or
schemaValidateSource boolean result

Actual result:
--------------
Apache crashing:
[Sun May 14 14:02:34 2006] [notice] Parent: child process exited with
status 3221225477 -- Restarting.
[Sun May 14 14:02:34 2006] [notice] Apache/2.0.55 (Win32) PHP/5.1.4
configured -- resuming normal operations
[Sun May 14 14:02:34 2006] [notice] Server built: Oct  9 2005 19:16:56
[Sun May 14 14:02:34 2006] [notice] Parent: Created child process 3512
[Sun May 14 14:02:34 2006] [notice] Child 3512: Child process is
running
[Sun May 14 14:02:34 2006] [notice] Child 3512: Acquired the start
mutex.
[Sun May 14 14:02:34 2006] [notice] Child 3512: Starting 25 worker
threads.



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


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

Reply via email to