PHP 5.2.2 (non-thread-safe?)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jim Carlock

    PHP 5.2.2 (non-thread-safe?)

    PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.


    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.


  • =?ISO-8859-15?Q?Iv=E1n_S=E1nchez_Ortega?=

    #2
    Re: PHP 5.2.2 (non-thread-safe?)

    Jim Carlock wrote:
    PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.

    >
    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-


    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

    Comment

    • Chung Leong

      #3
      Re: PHP 5.2.2 (non-thread-safe?)

      On May 8, 6:24 pm, "Jim Carlock" <anonym...@127. 0.0.1wrote:
      PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.

      >
      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.

      Comment

      • Toby A Inkster

        #4
        Re: PHP 5.2.2 (non-thread-safe?)

        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
        Fast withdrawal casino UK 2025 – Play now & cash out instantly! Discover the top sites for rapid, secure payouts with no delays.

        Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux

        Comment

        • Rami Elomaa

          #5
          Re: PHP 5.2.2 (non-thread-safe?)

          "Jim Carlock" <anonymous@127. 0.0.1wrote in message
          news:4640b27f$0 $8933$4c368faf@ 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.

          --
          Rami.Elomaa@gma il.com

          "Good tea. Nice house." -- Worf


          Comment

          Working...