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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Sun Jan 24 10:01:24 2021 UTC