php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32426 XML catalogs are not used on Windows
Submitted: 2005-03-23 12:21 UTC Modified: 2005-04-06 15:18 UTC
From: jirka at kosek dot cz Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 5CVS-2005-03-23 (dev) OS: Windows XP
Private report: No CVE-ID: None
 [2005-03-23 12:21 UTC] jirka at kosek dot cz
Description:
------------
When XML document references external entity (such as a DTD) libxml2 can use XML catalog to redirect loading of the entity from HTTP server to some local location.

XML catalog file should be taken from /etc/catalog or from files specified in XML_CATALOG_FILES environment variable. This works in Windows when libxml2 invoked from command-line (e.g. using xmllint command). However if I use XML related functions in PHP5 under Windows, catalog files are not taken into account. I even monitored files accessed by Apache process and there were no attempt to locate catalog file.

Any idea?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-28 21:19 UTC] jirka at kosek dot cz
I'm sorry. Correct URL is:

http://kosek.cz/temp/libxmlbug.zip
 [2005-04-03 22:54 UTC] sniper@php.net
I don't see any PHP script in that package..

 [2005-04-03 23:00 UTC] jirka at kosek dot cz
I'm really sorry I had really bad day. Please download sample files once more from the same URL. Archive is now packaget correctly and contains all necessary files.
 [2005-04-03 23:37 UTC] sniper@php.net
It still has not PHP scripts in it..

 [2005-04-04 22:07 UTC] jirka at kosek dot cz
There is file xmlcatalog.php. Are you sure that you are not getting old archive from cache?
 [2005-04-05 22:45 UTC] rrichards@php.net
Works fine as long as you set environment variable or place catalogs in correct place. They must be located relationally to the calling process (in this case apache).
../etc/catalog - so the etc dir will be same level as the apache bin dir. Apache must be restarted after you create the catalog dir as catalogs are initialized when apache loads php module.
 [2005-04-05 23:11 UTC] jirka at kosek dot cz
I did some more investigation and found that catalogs are working if I'm runnning standalone apache (i.e. I run directly Apache.exe). But when I run apache as a service (net start apache), catalogs are not working. Because most people run Apache as service under Windows I think this is serious problem.
 [2005-04-06 15:18 UTC] rrichards@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Still works. If using system env var make sure you reboot. This would be a libxml under windows issue and not a php issue in any event.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC