Under Windows Select PHP version is non thread safe or thread safe?

Source: Internet
Author: User
In the development and debugging process encountered the Web page constantly reported stack Overflow. Tried all sorts of ways. I think it might be inappropriate to use thread Safe in my current environment. What should be based on the choice of TS or NTS version.

Someone online said: If you are using ISAPI to run PHP, you must use the thread safe version, while running PHP in fastcgi mode, there is no need to use thread security, with none thread safe (NTS, non-thread-safe) Version to better improve efficiency. Personally feel this is not reliable I now use the TS version of PHP, and see Configure Command:cscript/nologo Configure.js "--enable-snapshot-build" "-- Disable-isapi ""--enable-debug-pack ""--disable-isapi "

To explain.

Reply content:

In the development and debugging process encountered the Web page constantly reported stack Overflow. Tried all sorts of ways. I think it might be inappropriate to use thread Safe in my current environment. What should be based on the choice of TS or NTS version.

Someone online said: If you are using ISAPI to run PHP, you must use the thread safe version, while running PHP in fastcgi mode, there is no need to use thread security, with none thread safe (NTS, non-thread-safe) Version to better improve efficiency. Personally feel this is not reliable I now use the TS version of PHP, and see Configure Command:cscript/nologo Configure.js "--enable-snapshot-build" "-- Disable-isapi ""--enable-debug-pack ""--disable-isapi "

To explain.

Yes, starting with PHP 5.2.1 These two versions, ISAPI requires thread security checks. However, the two version of the original intention is to solve some plug-in non-threading security issues, so I estimate if you do not use any special plug-in, there is a stack overflow or program problems, you can put the code out

I feel your stack overflow problem is not MySQL caused? I've met it too. It would be nice to extend the time of the MySQL activity later.
There may also be a problem with the PHP version, as well as memory overflow.
Besides, did you develop it on win?

If you use IIS+ISAPI, you are using the TS version.
If you are using iis+fastcgi, use the NTS version.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.