Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve actual CCSID in getPhpCcsid() #148

Open
alanseiden opened this issue Feb 18, 2021 · 2 comments
Open

Retrieve actual CCSID in getPhpCcsid() #148

alanseiden opened this issue Feb 18, 2021 · 2 comments
Assignees

Comments

@alanseiden
Copy link
Collaborator

static function getPhpCcsid()

The current code relies on the CCSID variable being set in fastcgi.conf. This variable might not always be set. Get the actual CCSID instead.

It affects the CW. Possibly spool file functionality.

@alanseiden
Copy link
Collaborator Author

For now, ensure compatibility with previous PHP builds and releases by ensuring that the CCSID variable is set in fastcgi.conf. For example, we will make this change in the Seiden CommunityPlus+ PHP siteadd template.

In future, eliminate the need for this method, which is only used by the CW spool file data function, by utilizing SYSTOOLS.SPOOLED_FILE_DATA (https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzajq/rzajqudfspooldata.htm).

@alanseiden
Copy link
Collaborator Author

alanseiden commented May 28, 2021

Disadvantages of SYSTOOLS.SPOOLED_FILE_DATA:

  • Supported only in IBM i 7.3 and higher. Not available in IBM i 7.2.
  • Provided by IBM as an example only in SYSTOOLS
  • Requires sufficient permissions to call CPYSPLF (the underlying CL command).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants