473,385 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

PHP 5.2.2 (non-thread-safe?)

http://www.php.net/downloads.php

What's up with the "non-thread-safe" binaries? What exactly
does non-thread-safe mean? And what are the benefits/faults?

And finally, is PHP run by Microsoft? There are no Linux/Unix
binaries?

Thanks.

--
Jim Carlock
Post replies to the group.
May 8 '07 #1
4 15445
Jim Carlock wrote:
http://www.php.net/downloads.php

What's up with the "non-thread-safe" binaries? What exactly
does non-thread-safe mean? And what are the benefits/faults?
It means that you *might* encounter race conditions if you use threads in
your webserver.
And finally, is PHP run by Microsoft?
No. It is built and maintained by Zend.
There are no Linux/Unix binaries?
There are. What'cha lookin' for?

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

http://acm.asoc.fi.upm.es/~mr/
Proudly running Debian Linux with 2.6.18-4-amd64 kernel, KDE3.5.3, and PHP
5.2.2-1 generating this signature.
Uptime: 19:53:54 up 4 days, 21:15, 1 user, load average: 0.74, 0.49, 0.60

May 8 '07 #2
On May 8, 6:24 pm, "Jim Carlock" <anonym...@127.0.0.1wrote:
http://www.php.net/downloads.php

What's up with the "non-thread-safe" binaries? What exactly
does non-thread-safe mean? And what are the benefits/faults?

And finally, is PHP run by Microsoft? There are no Linux/Unix
binaries?

Thanks.

--
Jim Carlock
Post replies to the group.
The only the CGI/FastCGI portion of the non-thread-safe version will
work correctly. None of the in-process modules (Apache 2, ISAPI, etc)
will function correctly, since web servers on Windows are always
multithreaded.

Not building thread-safety into the binary means better performance,
as the way it's done in PHP isn't terribly inefficient. Whether it's
worth the confusion this will create is debatable.

May 8 '07 #3
Jim Carlock wrote:
And finally, is PHP run by Microsoft? There are no Linux/Unix
binaries?
Providing binaries for "Linux/Unix" opens up a huge can of worms. Take a
look at a variety of Linux distributions. You'll find:

- the version of Apache varies between them;
- the versions of major libraries vary between them;
- they support different architectures (x86, Sparc, PowerPC, etc)

A single PHP binary build could not work universally on all Linux
distributions because of these variables. So you have two options:

1. Download the source and build it yourself; or

2. Get a binary copy of PHP from your Linux distribution -- the
vast majority of distros include at least one version of PHP.
(Many contain both PHP 4 *and* 5.)

--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux
May 8 '07 #4
"Jim Carlock" <an*******@127.0.0.1wrote in message
news:46**********************@roadrunner.com...
And finally, is PHP run by Microsoft? There are no Linux/Unix
binaries?

My goodness, no! It's open source, baby! There are no binaries because all
*nix users are supposed to know how to download the source and compile the
binary. Windows users, on the other hand, are supposedly too dumb to know
how to compile the source, hence the pre-compiled binaries.

I've no idea how to compile from source. When I installed php in my Kubuntu,
I just used Adept, cos I'm all thumbs with command line.

--
Ra*********@gmail.com

"Good tea. Nice house." -- Worf
May 9 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.