Project

Profile

Help

Bug #6317

closed

The cwd is limited to 256 characters

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

Status:
Closed
Priority:
Low
Category:
PHP API
Start date:
2024-01-12
Due date:
% Done:

100%

Estimated time:
Applies to branch:
12, trunk
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
12.4.1
Fixed in version:
SaxonC Languages:
PHP
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 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.

Actions #2

Updated by Debbie Lockett 11 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 11 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 11 months ago

I've committed an edit for the documentation update, to hopefully be a bit clearer.

Actions #5

Updated by O'Neil Delpratt 25 days ago

  • Assignee set to O'Neil Delpratt
Actions #6

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.

See: https://www.php.net/manual/en/language.types.string.php#:~:text=A%20string%20is%20a%20series,not%20offer%20native%20Unicode%20support.

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

Also available in: Atom PDF