Re: run php in non thread safe mode
| From: | Tim Dunphy | Date: | Wed, 24 Dec 2014 01:56:37 +0000 |
| Subject: | Re: run php in non thread safe mode | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324148@lists.php.net to get a copy of this message | ||
Hi David,
Thanks, yes php thread safety is disabled according to phpinfo. Thanks for
clearing that up!
Tim
On Tue, Dec 23, 2014 at 5:01 PM, David OBrien <dgobrien@gmail.com> wrote:
> On Tue, Dec 23, 2014 at 4:28 PM, Tim Dunphy <bluethundr@gmail.com> wrote:
>
>> So what I'll need to do is figure out a way to run php in non thread safe
>> mode. Can someone please let me know if there are any docs out there that
>> help you know how to do this? I've googled around for a while and not been
>> able to find any info on this.
>>
>
> if you download the source and compiled manually Thread Safety is Off by
> default. Did you do a simple phpinfo(); page and look to see if it's on or
> not?
>
> If it is on you turned it on when you compiled it.
>
> ./configure --help
>
> you'll see --enable-maintainer-zts Enable thread safety - for code
> maintainers only!!
>
> From the zend book http://flylib.com/books/en/2.565.1.14/1/
>
> A normal PHP build has thread safety turned off by default and only
> enables it if the SAPI being built is known to require thread safety, or if
> thread safety is explicitly turned on by a ./configure switch.
>
> Given the speed issues with global lookups and the lack of process
> isolation you might wonder why anyone would deliberately turn the TSRM
> layer on when it's not required. For the most part, it's extension and SAPI
> developers like you're about to become who turn thread safety on in order
> to ensure that new code will run correctly in all environments.
>
>
>
--
GPG me!!
gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B