Re: Bug #13830 Updated: php.exe crashes when behind Xitami web server, DOM XML
| From: | Markus Fischer | Date: | Tue, 04 Dec 2001 05:28:46 +0000 |
| Subject: | Re: Bug #13830 Updated: php.exe crashes when behind Xitami web server, DOM XML | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72417@lists.php.net to get a copy of this message | ||
Hmm, to bad, not much of help. Is this webserver for free? If
so, I can do testing on my own, just need to know where to
get it.
Btw, this only happens with domxml? Not with other modules?
- Markus
On Tue, Dec 04, 2001 at 04:17:26AM -0000, mqm@magma.ca wrote :
> ID: 13830
> User updated by: mqm@magma.ca
> Reported By: mqm@magma.ca
> Old Status: Feedback
> Status: Open
> Bug Type: DOM XML related
> Operating System: Win2k
> PHP Version: 4.0.6
> New Comment:
>
> 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
>
> Previous Comments:
> ------------------------------------------------------------------------
>
> [2001-11-29 09:39:38] mfischer@php.net
>
> Well... any kind of more information about this? What crash exactly, error message? something
> in the logfile?
>
> Feedback.
>
> ------------------------------------------------------------------------
>
> [2001-10-25 18:05:29] mqm@magma.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 ?
>
>
>
> ------------------------------------------------------------------------
>
>
>
> Edit this bug report at http://bugs.php.net/?id=13830&edit=1}
> ¶¿
¡ò½cò�r3t
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Please always Cc to me when replying to me on the lists.