From: Operating system: CentOS 5.8 PHP version: 5.4.3 Package: Reproducible crash Bug Type: Bug Bug description:CLI Programs Hang Forever
Description: ------------ Scripts executed under the CLI never end. For example, the following test script will run as long as you let it, until it is killed. It doesn't appear to be looping, as it consumes no resources. Rather, it appears to be blocked waiting for some signal that never happens. Note that this may explain why the 5.4.3 build cannot be built with "--enable-phar" and why "make install" hangs forever at the end. Build parms: ./configure --with-apxs2=/usr/share/httpd-2.4/bin/apxs --with-curl --with-gd --with-ldap --with-libxml-dir=/usr/local --with-mcrypt --with-mysql=/usr/local/mysql --with-mysqli=/usr/bin/mysql_config --with-openssl --with-pspell --with-unixODBC=/usr/local/unixODBC --enable-bcmath --disable-phar --enable-sockets Test script: --------------- #!/usr/bin/php <script language="php"> fwrite(STDOUT, "This is a test\n"); </script> Expected result: ---------------- The CLI program exits. Actual result: -------------- The CLI program never exits. -- Edit bug report at https://bugs.php.net/bug.php?id=62071&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62071&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62071&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62071&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62071&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62071&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62071&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62071&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62071&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62071&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62071&r=support Expected behavior: https://bugs.php.net/fix.php?id=62071&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62071&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62071&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62071&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62071&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62071&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62071&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62071&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62071&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62071&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62071&r=mysqlcfg