Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 174909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:36:23+00:00 2026-05-11T13:36:23+00:00

Is PHP (as of 5.2) thread-safe on Linux/UNIX? Would it be possible to use

  • 0
  • Is PHP (as of 5.2) thread-safe on Linux/UNIX?
  • Would it be possible to use it with Apache Worker-MPM or Event-MPM?

The facts I gathered so far are inconclusive:

  • Default binaries included in most distributions have ZTS disabled, so I’m aware, that I’d have to recompile them.
  • In theory Zend Engine (core PHP) with ZTS enabled is thread-safe.
  • It’s said that some modules might not be thread-safe, but I haven’t found any list of modules that are or that are not.
  • PHP FAQ states pretty much same as above.

What’s your experience?

It’s not only about segmentation faults (‘access violations’ in Windows nomenclature). There is a lot more to thread safety.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:36:24+00:00Added an answer on May 11, 2026 at 1:36 pm

    I know gettext and set_locale is not threadsafe. PHP should not be used with a threaded MPM.

    PHP Isn’t Thread-Safe Yet.
    Running PHP not threaded.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

System: Apache 2.2 running on Windows 2008 Server with PHP 5.2.17 VC6 Thread-Safe as
PHP, 5.3 non thread safe window, also proven on PHP 5.2.9 on linux. Sample
I Upgraded PHP 5.2.8 to php 5.3.10, but php_memcache.dll(Memcache 2.2.6 VC9 x64 Thread Safe)
I have a web server that is running PHP 5.3.6 non thread safe (VC9),
When using Aptana with PHP 5.2.3 in debug mode (using thread safe XDebug 2.1.0
i wonder which installation to use for my php? i will be using apache.
I compile Apache-MySQL-PHP by hand to build a custom install using the configure options
would it be possible to pass the contents of var reason to action=report? function
I have index.php page which makes a ajax call to thread.php by sending the
I have a ajax function in index.php which calls on the page thread.php which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.