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 6388535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:17:27+00:00 2026-05-25T03:17:27+00:00

While the idea of a PHP daemon has been covered to death on here,

  • 0

While the idea of a PHP daemon has been covered to death on here, I haven’t found anything specifically related to how to do this in PHP 5.3. As I’ve been told, 5.3 introduced new garbage collection/memory management to allow PHP to more cleanly run as a daemon.

I know PHP’s no one’s first choice for this kind of thing, but in my circumstances it might have to do.

I know in PHP 4, you would have to use something like the System_Daemon class, but I was wondering if that was still needed with the new version of PHP, and wether I’d need to do anything special to use the new features.

  • 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. Editorial Team
    Editorial Team
    2026-05-25T03:17:27+00:00Added an answer on May 25, 2026 at 3:17 am

    PHP uses reference counting for managing allocated memory. When a cycle exists between objects, their reference count is never decremented and the objects are never freed (until the end of the script).

    The only goal of the garbage collector added in PHP5.3 is to kill those cycles. This effectively helps in reducing the memory usage of long running scripts, like daemons.

    Other than that, PHP5.3 adds nothing new for long running scripts / daemons.

    There has been some efforts in making app servers in PHP lately, you may want to look at them:

    https://github.com/indeyets/appserver-in-php

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

Sidebar

Related Questions

While related questions have been asked before I would like to see an idea
So, I've been tossing this idea around in my head for a while now.
While thinking about this question and conversing with the participants, the idea came up
I've been using virtualenv lately while developing in python. I like the idea of
I am pondering about partial specialization . While I understand the idea, I haven't
I had an idea while I was working on some PHP code. Usually, if
I've been developing in PHP for a while now, and I still have not
I've been thinking for a while about the idea of allowing user to inject
While configuring custom fields in mantis i got this error message , any idea
My idea was to copy a dictionary while resetting all the values of the

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.