Skip to content

[RFC] PHP should be compiled with ZTS or not ? #154774

@drupol

Description

@drupol

Hi,

I'm opening this RFC hoping to gather comments from the Apache and PHP maintainers.

We know that there are two ways to compile the PHP interpreter (yeah there are many others but in this thread, only those flags are relevant):

  • NTS: Non-Thread Safe
  • ZTS: Zend-Thread Safe

Me, as a PHP developer, I remember these rules:

  • When PHP is meant to be used with mod_php in Apache -> it's better to use ZTS
  • When PHP is meant to used with CGI/FASTCGI/Nginx/CommandLine -> It's better NTS

The default PHP in Nixos is built with ZTS and I think it should be NTS. NTS is also the default in many other distributions.

What's your point of view about that?

Relevant links:

CC:

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions