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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
24 - 12 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 16:01:28 2024 UTC