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.