Actions
Bug #6317
openThe cwd is limited to 256 characters
Status:
In Progress
Priority:
Low
Assignee:
-
Category:
PHP API
Start date:
2024-01-12
Due date:
% Done:
0%
Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
12.4.1
Fixed in version:
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:
Description
- What lengths should we use for the various platforms?
- Where is this documented?
Updated by O'Neil Delpratt 10 months ago
- 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.
Updated by Debbie Lockett 10 months ago
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 aboutsetcwd()
on Xslt30Processor and XsltExecutable?
Updated by O'Neil Delpratt 10 months ago
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 aboutsetcwd()
on Xslt30Processor and XsltExecutable?
Yes it does not apply on the other Processors.
Updated by Debbie Lockett 10 months ago
I've committed an edit for the documentation update, to hopefully be a bit clearer.
Please register to edit this issue
Actions