|
Posted by Jason Barnett on 01/06/05 18:31
Symbulos Partners wrote:
> We know that. We understood all of that.
>
Let me ask you this. Do you know what underlying libraries are
associated with the extensions you want to use (in your list below)? If
you do then you *should* be able to google for each library individually
and see if that library is thread safe. I have not gone through this
exercise for myself, but then again I don't need to either. ;) This
would also be something that would be a great benefit to share with the
PHP community if you decide to compile this list of thread-safe extensions.
> What we need to know is:
>
> 1)Are php core function thread safe?
>
I have read somewhere that this is true, but I have absolutely no
firsthand experience in PHP's source to tell you if this is the case.
Rasmus will know (whistling and walking away...)
> 2)Does php have internal mechanisms in php for protecting thread safety
> (memory leak, threads overwriting memory in use by another thread, blah,
> blah)?
Yes it does... IIRC check out TSRM in the source.
>
> 3)Are the function in this LIMITED LIST thread safe? (This is THE LIMITED
> LIST extracted from the list of the functions in section VI, the one you
> requested, the one R.Lynch requested). Since we sent the list with the
> functions we need already 2 times, would you please be so gentle as to
> answer now?
>
I have no idea. ;) But I use a lot of these functions as well and it
would be good to know.
> Apache-specific Functions
> Array Functions
> Calendar Functions
> Class/Object Functions
> CURL, Client URL Library Functions
> Cyrus IMAP administration Functions
> Date and Time Functions
> Direct IO Functions
> Directory Functions
> DOM Functions
> DOM XML Functions
To anyone reading this, remember he's using PHP 4.3.x but he's asking
about PHP 5.x. So I guess the question there: is libxml2 thread-safe?
> Error Handling and Logging Functions
> File Alteration Monitor Functions
> Filesystem Functions
> Forms Data Format Functions
> FTP Functions
> Function Handling Functions
> Gettext
> GMP Functions
> HTTP Functions
> Image Functions
> IMAP, POP3 and NNTP Functions
> PHP / Java Integration
> LDAP Functions
> Mail Functions
> Mathematical Functions
> Multibyte String Functions
> Mimetype Functions
> Miscellaneous Functions
> MySQL Functions
> Improved MySQL Extension
> Network Functions
> Unified ODBC Functions
> Object Aggregation/Composition Functions
> Object property and method call overloading
> OpenSSL Functions
> Output Control Functions
> PDF functions
> PHP Options&Information
> PostgreSQL Functions
> Program Execution Functions
> Session Handling Functions
> Shared Memory Functions
Good lord I would hope so :)
> SimpleXML functions
> SQLite
> Shockwave Flash Functions
> Standard PHP Library (SPL) Functions
> String Functions
> URL Functions
> Variable Functions
> vpopmail Functions
> XML Parser Functions
> XML-RPC Functions
> XSL functions
> XSLT Functions
>
All of the XSL stuff should fall under the umbrella of "is libxml2
thread safe?" since we use that library for XSL functionality too.
One final note. I notice that you make of the PHP4 XML libraries?
Well, there was a break in this functionality in PHP5. If you used the
"almost W3C compliant" domxml functions then you should be ok. If not,
well, you might be in for some rewriting there. :(
http://php.net/manual/en/ref.dom.php
--
Teach a person to fish...
Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html
PHP Manual: http://php.net/manual/
php-general archives: http://marc.theaimsgroup.com/?l=php-general&w=2
Navigation:
[Reply to this message]
|