Bug 478538 - PHP run on the command-line experiences a 5 second delay before exiting
Summary: PHP run on the command-line experiences a 5 second delay before exiting
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: php
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Joe Orton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-31 17:10 UTC by Basil Mohamed Gohar
Modified: 2008-12-31 18:51 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-12-31 18:51:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 234927 0 None None None Never

Description Basil Mohamed Gohar 2008-12-31 17:10:22 UTC
Description of problem:

PHP, when run as a command-line application, will experience a 5 second delay aside from the time taken to execute whatever script was run.

Version-Release number of selected component (if applicable):
5.2.6

How reproducible:
Every time

Steps to Reproduce:
1. Run a PHP script from the command-line
2. Note that it takes n+5 seconds to run
3.
  
Actual results:
Scripts take 5 seconds longer to run than they should

Expected results:
Scripts should not experience any delay whatsoever

Additional info:
This appears to be new for Fedora 10, 32-bit.  I did not experience anything like this under Fedora 9.  Also, PHP run as an Apache module (mod_php5) does not seem to experience this problem.

There is a similar, if not identical, bug on Launchpad (https://bugs.launchpad.net/ubuntu/+source/php5/+bug/234927), however, the use case seems to be different than this one.

Comment 1 Basil Mohamed Gohar 2008-12-31 18:51:04 UTC
Okay, I discovered, using strace, that it was trying to resolve my computer's name with a wrong hostname (beta.local instead of beta).  This appears to be a self-inflicted wound and not a real bug with PHP.  Why it would matter, I don't know, but that's not really an issue.  The delay disappeared when I corrected my local machine's hostname.


Note You need to log in before you can comment on or make changes to this bug.