php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63649 fastcgi_finish_request and '&&' op
Submitted: 2012-11-29 14:32 UTC Modified: 2012-11-29 14:37 UTC
From: jawatang at gmail dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.4.9 OS: Mac OS X 10.8.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jawatang at gmail dot com
New email:
PHP Version: OS:

 

 [2012-11-29 14:32 UTC] jawatang at gmail dot com
Description:
------------
I want a cli execute, finish fastcgi script.


like this url : http://test.com/test.php

i coding :

$command must run long time.

//--------------------------
fastcgi_finish_request();
system($command, $result);

//--------------------------

expected:Long wait...
result: Long wait...


then coding :
//--------------------------
fastcgi_finish_request() && system($command, $result);

//--------------------------

expected:Long wait...
result:short wait





Test script:
---------------
wait.php

<?php
sleep(30000);
?>

http://test.com/test.php
<?php
fastcgi_finish_request();
system($command, $result);
?>

Expected result:
----------------
expected:Long wait...

Actual result:
--------------
result: Long wait...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-29 14:37 UTC] jawatang at gmail dot com
-Status: Open +Status: Closed
 [2012-11-29 14:37 UTC] jawatang at gmail dot com
I was stupid....
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Sep 19 08:00:02 2025 UTC