Bug #6317
open
The cwd is limited to 256 characters
Fixed in Maintenance Release:
Description
- What lengths should we use for the various platforms?
- Where is this documented?
- Category set to PHP API
- Status changed from New to In Progress
- Found in version set to 12.4.1
I have added a note in the PHP API documentation for the SaxonProcessor
class about the cwd default value and the 256 bytes length limit. It would be good to review 256 bytes length limit needs to be changed in a future release.
Reviewing the documentation changes, I'd like to understand this better.
- Does the length limit for cwd only apply on PHP?
- Have we imposed this limit for the cwd when creating a SaxonProcessor, or is it an inherited limit from the PHP
getcwd()
function (which is used as the default)?
- What about using the 2-arg constructor
SaxonProcessor(boolean $license, string $cwd)
? If you supply $cwd
here does the length limit apply or not?
- In the documentation update, it says that the limit does not apply when using the
SaxonProcessor.setcwd()
method. What about setcwd()
on Xslt30Processor and XsltExecutable?
Debbie Lockett wrote in #note-2:
Reviewing the documentation changes, I'd like to understand this better.
- Does the length limit for cwd only apply on PHP?
Yes
- Have we imposed this limit for the cwd when creating a SaxonProcessor, or is it an inherited limit from the PHP
getcwd()
function (which is used as the default)?
We have rightly or wrongly imposed this limit.
- What about using the 2-arg constructor
SaxonProcessor(boolean $license, string $cwd)
? If you supply $cwd
here does the length limit apply or not?
This limit does not apply in this case
- In the documentation update, it says that the limit does not apply when using the
SaxonProcessor.setcwd()
method. What about setcwd()
on Xslt30Processor and XsltExecutable?
Yes it does not apply on the other Processors.
I've committed an edit for the documentation update, to hopefully be a bit clearer.
Please register to edit this issue
Also available in: Atom
PDF