Actions
Bug #4682
closed![Author: O'Neil Delpratt](https://www.gravatar.com/avatar/a0bc1766b412d8fecb16f7d304916359?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: O'Neil Delpratt](https://www.gravatar.com/avatar/a0bc1766b412d8fecb16f7d304916359?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
Inconsistencies in documentation on relative and absolute paths in PHP
Start date:
2020-08-13
Due date:
% Done:
100%
Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
1.2.1
Fixed in version:
11.3
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:
Description
In the Saxon/C PHP extension we internally set the current working directory (i.e. setcwd
) to where the php script is located. When a user uses absolute paths in arguments to method like parseXmlFromFile(string $fileName)
it is not being resolved correctly.
The current workaround is to set the cwd to empty string. For example:
$saxonProc = new SaxonProcessor(true, ''); // can be false or true
or
$saxonProc = new SaxonProcessor(true); // can be false or true
$saxonProc->setcwd('');
Actions required:
- Fix code to resolve files with absolute path names
- update documentation to mention cwd to php script
Please register to edit this issue
Actions