php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13830 php.exe crashes when behind Xitami web server, DOM XML
Submitted: 2001-10-25 18:05 UTC Modified: 2002-02-22 10:08 UTC
From: mqm at magma dot ca Assigned:
Status: Closed Package: DOM XML related
PHP Version: 4.0.6 OS: Win2k
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mqm at magma dot ca
New email:
PHP Version: OS:

 

 [2001-10-25 18:05 UTC] mqm at magma dot ca
This is the code:

$doc = xmldocfile( "xml-config.xml" );
$ctx = xpath_new_context($doc); 
$xpath = xpath_eval($ctx,"/xml-config/website[@id='oll']/output/@html-production-dir"); 
$nodeset = $xpath->nodeset;
$production_dir = $nodeset[0]->content;

If I run from a DOS box, it runs just fine, giving the correct result. However, when I run it behind the Xitami web server, php.exe crashes in the xpath_eval call.

Some important info:

My php.ini has these entries:
extension_dir = c:/php/extensions
extension=php_domxml.dll

Note that c:\php;c:\php\dlls and c:\php\extensions are in the PATH, just in case

libxml2.dll is in the path and can be found no problem, I can run xsltproc.exe just fine (it uses libxml2.dll). I can also passthru 'xsltproc.exe' from PHP, it runs fine.

If I remove extension_dir = c:/php/extensions from the ini, just to test,  I can get both DOS and Xitami php to complain that it cannot load php_domxml.dll, which is the expected behavior ("Unable to load dynamic library..."). I put the entry back, the warning Dialog goes away for DOS and for Xitami, but the crash returns for Xitami.

My Conclusions:
  - php behind Xitami is finding php_domxml.dll just fine, because when it does not I get the warning Dialog and no crash
  - libxml2.dll is in the path and can be found by programs including php under DOS. It can also be found from programs launched from php behind Xitami (passthru 'xsltproc.exe').

   Any chance the DLL linking is failing for some bizarre reason only when PHP runs behind Xitami ?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-29 09:39 UTC] mfischer@php.net
Well... any kind of more information about this? What crash exactly, error message? something in the logfile?

Feedback.
 [2001-12-03 23:17 UTC] mqm at magma dot ca
The only thing I get is a Windows Dialog saying:

"The instruction at "0x10092efe" referenced memory at "0x000000010". The memory could not be "read". Click on OK to terminate the program. Click on CANCEL to debug the program.

If you believe there may be some message logged to some log file somewhere, despite the serious crash, let me know the file path and I will post the log "tail" here.

thanks,

marcio
 [2002-02-21 11:16 UTC] jtate@php.net
Does this still happen with 4.1.1?
 [2002-02-22 09:59 UTC] mqm at magma dot ca
The example no longer crashes in 4.1.1, but it does not work either. Maybe the functions work in a different way now ?
 [2002-02-22 10:08 UTC] derick@php.net
It works indeed different. But that is not documented (but there is an open bug for this)).

SO closing this one.

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 11:01:28 2024 UTC