Home  >  Article  >  Backend Development  >  How to check whether php is ts or nts

How to check whether php is ts or nts

WBOY
WBOYOriginal
2022-02-22 11:57:113141browse

In PHP, you can use the phpinfo() function to check whether php is a ts version or an nts version. This method can display the current phpinfo information. If the information of the "Thread Safety" item is "enabled", generally If it says it, it means the ts version, otherwise it means the nts version.

How to check whether php is ts or nts

The operating environment of this article: Windows 10 system, PHP version 7.1, Dell G3 computer.

How to check whether php is ts or nts

Use the phpinfo() method to display phpinfo information and display the context information of the current PHP environment.

Examples are as follows:

How to check whether php is ts or nts

View the information of the Thread Safety item, which is thread safety.

If it is: enabled, generally speaking it should be the ts version, otherwise it should be the nts version.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to check whether php is ts or nts. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn