From: remi Operating system: GNU/Linux PHP version: 5.4.11 Package: Built-in web server Bug Type: Bug Bug description:buit-in web server is broken on ppc64
Description: ------------ I think this bug also affects non x86 architecture built-in server don't answer to any request. Strace analysis show it enter an infinite loop of "select" but never accept any incoming connection. Source analysis show that fdset management using bit operator is broken. Switching to standard FD_ISSET method fix the problem. I have a patch ready to commit. Test script: --------------- This issue cause various test to fail: < Bug #61977 Test exit code for various errors [sapi/cli/tests/bug43177.phpt] < Bug #61679 (Error on non-standard HTTP methods) [sapi/cli/tests/bug61679.phpt] < Bug #61977 test CLI web-server support for Mime Type File extensions mapping [sapi/cli/tests/bug61977.phpt] < basic function [sapi/cli/tests/php_cli_server_001.phpt] < $_SERVER variable [sapi/cli/tests/php_cli_server_002.phpt] < Bug #55726 (Changing the working directory makes router script inaccessible) [sapi/cli/tests/php_cli_server_003.phpt] < Bug #55747 (request headers missed in $_SERVER) [sapi/cli/tests/php_cli_server_004.phpt] < Post a file [sapi/cli/tests/php_cli_server_005.phpt] < Bug #55755 (SegFault when outputting header WWW-Authenticate) [sapi/cli/tests/php_cli_server_006.phpt] < Bug #55758 (Digest Authenticate missed in 5.4) [sapi/cli/tests/php_cli_server_007.phpt] < SERVER_PROTOCOL header availability [sapi/cli/tests/php_cli_server_008.phpt] < PATH_INFO (relevant to #60112) [sapi/cli/tests/php_cli_server_009.phpt] < Bug #60180 ($_SERVER["PHP_SELF"] incorrect) [sapi/cli/tests/php_cli_server_010.phpt] < Bug #60180 ($_SERVER["PHP_SELF"] incorrect) [sapi/cli/tests/php_cli_server_011.phpt] < Bug #60159 (Router returns false, but POST is not passed to requested resource) [sapi/cli/tests/php_cli_server_012.phpt] < No router, no script [sapi/cli/tests/php_cli_server_013.phpt] < Bug #60477: Segfault after two multipart/form-data POST requestes [sapi/cli/tests/php_cli_server_014.phpt] < Bug #60523 (PHP Errors are not reported in browsers using built-in SAPI) [sapi/cli/tests/php_cli_server_015.phpt] < Bug #60591 (Memory leak when access a non-exists file) [sapi/cli/tests/php_cli_server_016.phpt] < Implement Req #60850 (Built in web server does not set $_SERVER['SCRIPT_FILENAME'] when using router) [sapi/cli/tests/php_cli_server_017.phpt] < Implement Req #61679 (Support HTTP PATCH method) [sapi/cli/tests/php_cli_server_018.phpt] -- Edit bug report at https://bugs.php.net/bug.php?id=64128&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64128&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64128&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64128&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64128&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64128&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64128&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64128&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64128&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64128&r=support Expected behavior: https://bugs.php.net/fix.php?id=64128&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64128&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64128&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64128&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64128&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64128&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64128&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64128&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64128&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64128&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64128&r=mysqlcfg