Skip Navigation
Expand
PHP function restrictions
Answer ID 6809   |   Last Review Date 12/13/2023

Are there restrictions on PHP functions I can use in PHP customizations?

Environment:

All PHP/CPHP customizations, Process Designer, Custom Process Model (CPM)
May 2012 version and newer

Issue:

We are implementing a customization using PHP, and a standard function is not working.

Cause:

Several standard PHP functions are excluded from use in customizations using PHP/CPHP.

chmod()
chown()
dl()
exec()
filter_var()
fsockopen()
getmypid()
hash_hmac()
ini_set()
lchgrp()
lchown()
link()
mb_substr()
passthru()
proc_open()
readfile()
shell_exec()
simplexml_load_string()
symlink()
system()

Some protocols, including SFTP, are disabled for use in cURL. You would see the error message "Protocol […] not supported or disabled in libcurl."

Resolution:

These functions cannot be enabled. An alternative coding approach must be used.

Notes:

For further details see

Answer ID 10517: PHP fsockopen and pfsockopen restricted in 18D release

Answer ID 9825: Cannot use the hash_hmac function in PHP