Should I Download the Chilkat PHP Extension that is ZTS (Zen Thread Safe) or Not?

To check if your PHP installation on MacOS or Linux is ZTS (Zend Thread Safety) enabled, use the following command:


Command

php -i | grep 'Thread Safety'

Explanation

  • "php -i": Displays the PHP configuration information (similar to "phpinfo()" in a browser).
  • "grep 'Thread Safety'": Filters the output to show the Thread Safety status.

Possible Outputs

  • "Thread Safety => enabled":
    • Your PHP installation is ZTS enabled.
    • It supports multi-threading, often required for certain extensions (e.g., pthreads).
  • "Thread Safety => disabled":
    • Your PHP installation is NOT ZTS enabled.
    • It is using NTS (Non-Thread Safe), suitable for most web applications.

Example Output

Thread Safety => disabled