Re: migrating to PHP 5 + Apache 2 from PHP 4.3.8 + Apache 1.3.33.

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

 



* Symbulos Partners <partners@xxxxxxxxxxxx>:
> Richard Lynch wrote:
> > If you re-read the previous emails from Rasmus, you will find that these
> > questions are already answered within them.
> > 
> > So I'm going to go on at length here telling you (again) what you don't
> > want to hear.
>
> In my opinion, the answer "some libraries are thread safe, some are not" is
> generic. The answer "the libraries in chapter VI. Function Reference of
> official PHP Manual version 03-01-2005" is specific. Now I think I
> understand the answer a bit better.
>
> We did not understand if you were talking about the libraries we develop,
> the libraries you develop, the libraries everybody else develops,
> commercial libraries, whatever library you can think of. Not
> all the libraries are indeed listed in the manual.

The thing is, the function sets listed in Section VI are not all 'core' PHP
-- in other words, if you were to do a vanilla install of PHP on a
machine, you wouldn't necessarily get all of these functions. Why?
Because most of the sets rely on... drum roll here... external
libraries. And it is the external libraries that PHP cannot guarantee
are threadsafe.

As an example of some function sets requiring external libraries:
<snip>
> 2)Here is the list of the function sets we need to use, from Section VI
>
> Calendar Functions

Depends on libical

> CURL, Client URL Library Functions

Depends on libcurl

> Cyrus IMAP administration Functions

Depends on cyrus imap libraries

> DOM Functions
> DOM XML Functions

Depends on libxml

> Image Functions

Depends on GD, which has optional dependencies on libjpeg, libpng,
libungif...

> IMAP, POP3 and NNTP Functions

Depends on uw-imap cclient

> LDAP Functions

Depends on openldap libraries

I could keep going on, but hopefully you get the idea.

So, what Rasmus and Richard were saying is, if you can narrow down
*which* function sets you need and are compiling in to your PHP install,
you'll get a much better answer to the question of whether or not the
libraries you're utilizing with PHP are threadsafe. But just saying all
functions referenced in the manual is going to give you the answer,
"probably not."

-- 
Matthew Weier O'Phinney           | mailto:matthew@xxxxxxxxxx
Webmaster and IT Specialist       | http://www.garden.org
National Gardening Association    | http://www.kidsgardening.com
802-863-5251 x156                 | http://nationalgardenmonth.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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