Re: run php in non thread safe mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> wrote:

> On Tue, Dec 23, 2014 at 4:28 PM, Tim Dunphy <bluethundr@xxxxxxxxx> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux