Php-cli, scripts freeze on exit

From: Date: Sun, 24 Jan 2010 19:16:54 +0000
Subject: Php-cli, scripts freeze on exit
Groups: php.general 
Request: Send a blank email to php-general+get-301395@lists.php.net to get a copy of this message
Hi! I'm using php-cli 5.3.1. When I run php from the command line, the script does not return me to the command prompt when exited. The script always completes, but it has to be killed to release it's resources. I've created a little working example: #!/usr/bin/php <? echo 'hellu'; exit(0); ?> I execute the script by running "./test.php" The script outputs "hellu" and then stops. It does not return to the command prompt. The only way back is to kill the script. This problem does not occur on my remote server, only on my home environment. I have home-network maintenance scripts that execute other scripts. If the executed script doesn't exit, the main scripts don't continue. I did a trace, and it turns out that the script is stopping on a futex wait. Thanks, David W. Allor

« previous php.general (#301395) next »