php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32292 XML parser script crashes PHP5ts.dll in Apache 2
Submitted: 2005-03-13 19:07 UTC Modified: 2008-12-30 19:00 UTC
Votes:52
Avg. Score:4.7 ± 0.7
Reproduced:44 of 45 (97.8%)
Same Version:14 (31.8%)
Same OS:39 (88.6%)
From: admin at skynetlabs dot org Assigned:
Status: Not a bug Package: XML related
PHP Version: 5.0.4 RC1 OS: Windows XP (SP2)
Private report: No CVE-ID: None
 [2005-03-13 19:07 UTC] admin at skynetlabs dot org
Description:
------------
I tested this script on two Win32 machines. 
It works perfectly on apache 2.0.53 and apache 2.0.52 with php 5.0.2
It crashes apache with error in module php5ts.dll on both machines if I use php 5.0.3




Reproduce code:
---------------
source code can be found here: http://skynetlabs.org/torrents/crashserver.txt


Expected result:
----------------
what i expect is to see is a table with the data extracted from the xml file.

Actual result:
--------------
Total server crash.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-15 11:11 UTC] admin at skynetlabs dot org
I have just tested the same file on 5.0.4 RC1 (latest snapshot) with the same results. Whoever runs the script crashes Apache.

The XML used by the script can be found here:
http://www.skynetlabs.org/torrents/azureus_stats.xml

the script running as it should (PHP 5.0.2):
http://www.skynetlabs.org/torrents/crashserver.php

download of the script:
http://www.skynetlabs.org/torrents/crashserver.txt

(be aware that server has been busy, so please be patient in receiving the results from the php script)

Don't know exactly what the procedure is that crashes php >=5.0.3... going to examine the script better this afternoon.
 [2005-03-18 19:55 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

It does not crash for me..

 [2005-03-25 01:49 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2005-06-27 04:00 UTC] rick dot martinez at gmail dot com
The crash is reproduced on my system. I have the same problem on other scripts as well. All those scripts use DOM. Here is the Windows error signature for the error produced by the submitted script:

szAppName : Apache.exe     szAppVer : 2.0.54.0     szModName : php5ts.dll     
szModVer : 5.0.4.4     offset : 00007798     

Files created by Windows related to the error are available here:

http://www.digxworld.com/files/phpXmlErrors/Apache.exe.mdmp
http://www.digxworld.com/files/phpXmlErrors/appcompat.txt

If you need any more info, just let me know.
Hope this helps! (especially since this error is really annoying me :P)
 [2005-11-28 17:47 UTC] vicoasis at gmail dot com
At me the same mistake when I use plus still MySQL


szAppName : Apache.exe     szAppVer : 2.0.55.0     szModName : php5ts.dll     
szModVer : 5.0.5.5     offset : 00007da9     

Any body know to what it is caused :((((
 [2006-02-04 08:22 UTC] dwivedi dot vibhor at gmail dot com
i just installed apache server and php. i add these 3 lines in config file.

LoadModule php5_module c:/PHP/php5ts.dll
AddType application/x-httpd-php .php
 [2006-02-04 08:26 UTC] dwivedi dot vibhor at gmail dot com
i just installed apache and php in my windows xp apache is running nicely when i am not loading php module but when i changed configuration file as add ing this two lines

LoadModule php5_module "c:/PHP/php5ts.dll"
AddType application/x-httpd-php .php

but now if i restart the server it is giving error i don't know what t o do next plese try with php5 and apache latest version.
 [2006-02-04 10:06 UTC] dwivedi dot vibhor at gmail dot com
i am facing following problem

Can't locate API module structure `php5_module' in file C:/PHP/php5ts.dll:
 [2007-05-03 01:18 UTC] lew_0911 at yahoo dot com
I'm also experiencing this problem. I have xammplite on my system. I needed to use symfony for my work and so I am studying it, I tried doing the tutorial provided (http://www.symfony-project.com/tutorial/my_first_project.html) and everytime I attempt to create a post, my apache crashes.
 [2007-06-19 07:27 UTC] scybeam at yahoo dot com
I just reproduced this error with apache 2.2.4 and php 5.2.3.
 [2007-07-22 11:59 UTC] benz dot amg at gmail dot com
I just installed PHP 5.x (php-5.2.3-win32-installer.msi) and Apache 2.2.x on WinXP for testing. 

I haven't changed php.ini or moved anything anywhere, just basic plain install with some modules (not all enabled!).

This is first time I've installed PHP on this windwos mathine.
However it gives me same problem. I wasn't able to get it working.

--------------------------------------------------------------------
C:\php>php -v
PHP Notice:  Constant XML_ELEMENT_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_TEXT_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_CDATA_SECTION_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_ENTITY_REF_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_ENTITY_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_PI_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_COMMENT_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_DOCUMENT_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_DOCUMENT_TYPE_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_DOCUMENT_FRAG_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_NOTATION_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_HTML_DOCUMENT_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_DTD_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_ELEMENT_DECL_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_DECL_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_ENTITY_DECL_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_NAMESPACE_DECL_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_LOCAL_NAMESPACE already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_CDATA already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_ID already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_IDREF already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_IDREFS already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_ENTITY already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_NMTOKEN already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_NMTOKENS already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_ENUMERATION already defined in Unknown on line 0
PHP Notice:  Constant XML_ATTRIBUTE_NOTATION already defined in Unknown on line 0
PHP 5.2.3 (cli) (built: May 31 2007 09:37:22)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

[ Here Windows crash dialog comes up ]
* CLI has encountered a problem and needs to close. *

To see what data this error report contains click here:

After clicking I see:
AppName: php.exe
AppVer: 5.2.3.3	 
ModName: php5ts.dll
ModVer: 5.2.3.3	 
Offset: 00099a7d



Same thing happens if I do:

php.exe test.php  

(test.php only has <?php phpinfo(); ?> line in it. Nothing prints, crash immediately following "PHP Notice:  Constant XML_XXXXX_XXX" messages like seen above.

php-win.exe test.php 
shows nothing (not even XML_XXX_XX messages like above) crashes immediately.

--- 
I don't have any wacky stuff on my machine, its a P4 2.9Ghz Sony Vaio PCG-k23 with 1gb ram. I run Slackware linux on same laptop and on linux php works fine.
 [2007-11-14 00:20 UTC] dgraham at inteliture dot com
Similar problem
cmd of php -v gave:

PHP 5.2.3 (cli) (built: May 31 2007 09:37:22)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

Then the error:
AppName: php.exe	 AppVer: 5.2.6.6	 ModName: php5ts.dll
ModVer: 5.2.6.6	 Offset: 0009b8ad
 [2008-12-30 18:54 UTC] jhontalbot at yahoo dot com
Fuck you, resolve this case.....
 [2008-12-30 19:00 UTC] pajoye@php.net
No script available anymore, no backtrace or usable feedbacks > bogus (outdated version anyway).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 08:01:32 2024 UTC