Bug #6317
closedThe cwd is limited to 256 characters
100%
Description
- What lengths should we use for the various platforms?
- Where is this documented?
Updated by O'Neil Delpratt 11 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 11 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 11 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 11 months ago
I've committed an edit for the documentation update, to hopefully be a bit clearer.
Updated by O'Neil Delpratt 10 days ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
- Applies to branch 12, trunk added
- SaxonC Languages PHP added
I am marking this bug issue as closed.
The 256 string limit is only relevant for the PHP platform.
A string is a series of characters, where a character is the same as a byte. This means that PHP only supports a 256-character set, and hence does not offer native Unicode support.
Please register to edit this issue