Currently, SCF supports the following versions of PHP programming language:
You can choose a desired runtime environment when creating a function, such as PHP 8.0, 7.4, 7.2, or 5.6.
The PHP environment variables built in the current PHP 8.0 and 7.4 runtime environments are as shown in the table below:
Environment Variable Key | Specific Value or Value Source |
---|---|
PHP_INI_SCAN_DIR |
/opt/php_extension:/var/user/php_extension |
The PHP environment variables built in the current PHP 7.2 and 5.6 runtime environments are as shown in the table below:
Environment Variable Key | Specific Value or Value Source |
---|---|
PHP_INI_SCAN_DIR |
/var/user/php_extension:/opt/php_extension |
For more information on environment variables, see Environment Variables.
Note:
- For PHP 7.4 and later, the platform no longer has additional built-in dependency libraries. For more information on the dependencies required by code execution, see Dependency Installation.
- If the built-in extensions cannot meet your business requirements, you can install custom extensions as instructed in Dependency Installation.
You can print and view the installed extensions at any time by using theprint_r(get_loaded_extensions());
code.
The currently installed PHP extensions are listed below:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Was this page helpful?