|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16596 Rlative directory problems in XSL files (xslt extension with Sablotron)
Submitted: 2002-04-14 04:23 UTC Modified: 2002-07-08 03:39 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ruudb at stress dot utwente dot nl Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.3.0-CVS OS: Linux 2.4.18
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
25 - 19 = ?
Subscribe to this entry?

 [2002-04-14 04:23 UTC] ruudb at stress dot utwente dot nl
When using PHP 4.2.0RC3 with Apache 2 filter, the current directory seems to be set to / instead of the directory where the script resides (however, system("pwd); returns the correct current directory).

This breaks an XML/XSL oriented website: entries in the XSL files like "<xsl:include href="file://../../xsl/html/all.xsl" />" do not work anymore. 

The problem does _NOT_ appear with the RC3 when using the Apache 1.3 DSO or Static SAPI in conjunction with Apache 1.3.22, but only when using the apache2filter. The versions used are Apache 2.0.35 and PHP 4.2.0 RC3. 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-14 04:32 UTC]
Fix version
 [2002-04-15 05:22 UTC] ruudb at stress dot utwente dot nl
The same problem occurs while using the fopen() function with relative paths

(also in RC4)
 [2002-04-19 11:24 UTC]
I don't see how this is related to the apache2filter,
since that module makes no assumptions about paths
or current working directories. Perhaps I misunderstand
the assumptions that Sablotron is expecting, please
 [2002-04-19 12:12 UTC] ruudb at stress dot utwente dot nl
sent example script with xsl files that reproduce the problem to aaron and sterling by e-mail
 [2002-07-07 21:05 UTC]
Any updates on this one? 
Does it happen with latest CVS of Apache and PHP ?

 [2002-07-08 03:39 UTC] ruudb at stress dot utwente dot nl
Problem is fixed with latest CVS of Apache and PHP.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 22 22:01:32 2024 UTC