Edit report at https://bugs.php.net/bug.php?id=63649&edit=1

 ID:                 63649
 User updated by:    jawatang at gmail dot com
 Reported by:        jawatang at gmail dot com
 Summary:            fastcgi_finish_request and '&&' op
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Mac OS X 10.8.1
 PHP Version:        5.4.9
 Block user comment: N
 Private report:     N

 New Comment:

I was stupid....


Previous Comments:
------------------------------------------------------------------------
[2012-11-29 14:32:44] 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...


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63649&edit=1

Reply via email to