Project

Profile

Help

Bug #6317

open

The cwd is limited to 256 characters

Added by Norm Tovey-Walsh 10 months ago. Updated 10 months ago.

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

  1. What lengths should we use for the various platforms?
  2. Where is this documented?
Actions #1

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.

Actions #2

Updated by Debbie Lockett 10 months ago

Reviewing the documentation changes, I'd like to understand this better.

  1. Does the length limit for cwd only apply on PHP?
  2. 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)?
  3. What about using the 2-arg constructor SaxonProcessor(boolean $license, string $cwd)? If you supply $cwd here does the length limit apply or not?
  4. 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?
Actions #3

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.

  1. Does the length limit for cwd only apply on PHP?

Yes

  1. 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.

  1. 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

  1. 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.

Actions #4

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

Also available in: Atom PDF