Project

Profile

Help

Bug #4682

Inconsistencies in documentation on relative and absolute paths in PHP

Added by O'Neil Delpratt about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2020-08-13
Due date:
% Done:

0%

Estimated time:
Found in version:
1.2.1
Fixed in version:

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:

  1. Fix code to resolve files with absolute path names
  2. update documentation to mention cwd to php script

Please register to edit this issue

Also available in: Atom PDF