From: "Sascha Meyer" on
Hi list,

one of my colleagues recently tried to manually install PHP 5.3 on Windows XP using Apache2 but failed because both php5apache2.dll and php5apache2_2.dll are missing in the most up to date archives on windows.php.net. We tried both VC6 and even VC9 build archives and both lack the above files, although the install.txt in the archives still mentions php5apache2_2.dll and the other one.
I tried to have a look at the Changelog to check if there has been a major change in the way PHP is used with Apache2, but the Changelog link on windows.php.net is dead.

Could someone have a look at this? Thanks a lot in advance!

Regards,

Sascha
--
Freundliche Grüße / Kind regards,

Sascha Meyer
--------------------------------------------------
EE: http://www.experts-exchange.com/M_761556.html
ZCE: http://www.zend.com/en/yellow-pages#show-ClientCandidateID=ZEND011290

GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
From: Pierre Joye on
hi,

Take the thread safe builds, not the non thread safe (NTS).

Cheers,

On Thu, Jun 24, 2010 at 1:56 PM, Sascha Meyer <harlequin2(a)gmx.de> wrote:
> Hi list,
>
> one of my colleagues recently tried to manually install PHP 5.3 on Windows XP using Apache2 but failed because both php5apache2.dll and php5apache2_2.dll are missing in the most up to date archives on windows.php.net. We tried both VC6 and even VC9 build archives and both lack the above files, although the install.txt in the archives still mentions php5apache2_2.dll and the other one.
> I tried to have a look at the Changelog to check if there has been a major change in the way PHP is used with Apache2, but the Changelog link on windows.php.net is dead.
>
> Could someone have a look at this? Thanks a lot in advance!
>
> Regards,
>
> Sascha
> --
> Freundliche Grüße / Kind regards,
>
> Sascha Meyer
> --------------------------------------------------
> EE:  http://www.experts-exchange.com/M_761556.html
> ZCE: http://www.zend.com/en/yellow-pages#show-ClientCandidateID=ZEND011290
>
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
From: "Sascha Meyer" on
Hi Pierre,

Pierre wrote:
> Take the thread safe builds, not the non thread safe (NTS).

thanks for the quick reply, that helped a lot. Could you give me some background info what the NTS versions are used for?

Regards,

Sascha


--
Freundliche Grüße / Kind regards,

Sascha Meyer
--------------------------------------------------
EE: http://www.experts-exchange.com/M_761556.html
ZCE: http://www.zend.com/en/yellow-pages#show-ClientCandidateID=ZEND011290

GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
From: Richard Quadling on
On 24 June 2010 13:39, Sascha Meyer <harlequin2(a)gmx.de> wrote:
> Hi Pierre,
>
> Pierre wrote:
>> Take the thread safe builds, not the non thread safe (NTS).
>
> thanks for the quick reply, that helped a lot. Could you give me some background info what the NTS versions are used for?
>
> Regards,
>
> Sascha
>
>
> --
> Freundliche Grüße / Kind regards,
>
> Sascha Meyer
> --------------------------------------------------
> EE:  http://www.experts-exchange.com/M_761556.html
> ZCE: http://www.zend.com/en/yellow-pages#show-ClientCandidateID=ZEND011290
>
> GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.
> Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

If you are using cli, cgi, fast-cgi (or variants of these), then you
can use NTS. Each instance of the php interpreter is executed
completely separately to any other instance, so anything you do in
instance 1 is not going to interfere in instance 2. Specifically (as I
understand things), the allocation, reading and writing to memory is
done in a "non thread safe" way. This means it takes no account of
other processes attempting to read/write to that memory.

Where the php interpreter is executed with "shared memory", (for
example the defunct ISAPI for Windows and I assume by the reply you
got the apache handlers also), then 1 instance of PHP is loaded and
elements of the execution are split into threads (1 thread per request
is the norm here). In this form, the threads have to play nice when
they read/write memory. They have to be "thread safe".

OK. This is probably an extreme over simplification and probably
misses other important aspects, but is pretty much the general idea.

Where PHP is "loaded" into another process, then the thread safe
variant should be used. Where PHP is "executed" as a separate process,
then the non thread safe variant can be used and will have the slight
performance increase garnered from not having to handle
memory/resources/etc in a thread safe way.



--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling
From: Richard Quadling on
On 24 June 2010 13:39, Sascha Meyer <harlequin2(a)gmx.de> wrote:
> Hi Pierre,
>
> Pierre wrote:
>> Take the thread safe builds, not the non thread safe (NTS).
>
> thanks for the quick reply, that helped a lot. Could you give me some background info what the NTS versions are used for?
>
> Regards,
>
> Sascha
>
>
> --
> Freundliche Grüße / Kind regards,
>
> Sascha Meyer
> --------------------------------------------------
> EE:  http://www.experts-exchange.com/M_761556.html
> ZCE: http://www.zend.com/en/yellow-pages#show-ClientCandidateID=ZEND011290
>
> GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.
> Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

And, of course, WikiPedia has an understandable explanation :
http://en.wikipedia.org/wiki/Thread_safety

--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling