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

  • Home
  • SEARCH
  • 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 571753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:32:25+00:00 2026-05-13T13:32:25+00:00

I am trying to track down what appears to be a very strange bug.

  • 0

I am trying to track down what appears to be a very strange bug. I have an application that is structured roughly as follows:

set_time_limit(0);
register_shutdown_function('logScriptCompletion');

function logScriptCompletion() {
   log('script completed');
}

log('script started');

// do some calculations periodically printing out progress

The script can take a while to run. The desired behavior is for the script to continue computing to the end even if the stop button is hit or the connection is dropped. 99% of the time it works as expected.

Once in a while (maybe once every few months/couple of thousand requests) the calculation does not run all the way through but both “script started” and “script completed” are logged and no other error fatal or otherwise is apparent (I have full logging enabled).

I have a suspicion that this may have something to do with a connection to the server being dropped but have no hard evidence to confirm. I am running Apache 2/PHP 5.2.6 on Linux.

Has anyone else seen a similar issue and can help shed some light on this?

  • 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-13T13:32:26+00:00Added an answer on May 13, 2026 at 1:32 pm

    Absolutely! You should also use the ignore_user_abort() function to make sure.

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

Sidebar

Related Questions

Trying to track down a bug in an application, but need to confirm whether
So I have a nasty stack overflow I have been trying to track down
This is a problem I have been trying to track down for a couple
I have been trying to track down a problem with an installation of RAD
I'm trying to track down an issue in our MFC code that looks like
I'm trying to track down an issue in our system and the following code
We're trying to track down some .Net assembly dependency problems. On Windows XP, does
I'm trying to track down a memory leak and I think it has to
We use g++ 4.2.4 and I'm trying to track down some performance problems in
I have a Perl application someone else wrote and I'm trying to make it

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.