Req #75235 [NEW]: Allow multi threads in PHP built in Server

From: Date: Wed, 20 Sep 2017 14:37:08 +0000
Subject: Req #75235 [NEW]: Allow multi threads in PHP built in Server
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211271@lists.php.net to get a copy of this message
From: mintystark at gmail dot com Operating system: Ubuntu PHP version: 7.1.9 Package: Built-in web server Bug Type: Feature/Change Request Bug description:Allow multi threads in PHP built in Server Description: ------------ Currently you can't spawn multi threads with the PHP Built in Server. I know that creating such feature would take a lot of time and might require additional support from other packages, etc. However, you can spawn multiple instances of the PHP Built in Server by launching it to other Ports. So I am suggesting that all is needed is the ability for the Built in Server to auto detect an additional process and assign that process to any available ports that the built in server has access to. Ex. php -S localhost:8000-80010 -t foo/ Or (Preferably) php -S localhost:8000 -threadports 10 -t foo/ Or something like that Which would spawn 10 additional instances of the Built in server from port 8001 to 8010. Then if I am running a process on 8000 and make an addition process request on port 8000. it will pass the process to the next available port 8001. Like if I do a curl request to port 8000 or need any additional process requests like using exec() or shell_exec() etc. Currently running those commands with the built in web server on an existing process halts the request until the command finishes. Even if you add the "&" at the end of the command which should return the request immediately. Example: shell_exec('php -f "class.php" > /dev/null 2>&1 & echo $!); Thanks -- Edit bug report at https://bugs.php.net/bug.php?id=75235&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75235&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75235&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75235&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75235&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75235&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75235&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75235&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75235&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75235&r=support Expected behavior: https://bugs.php.net/fix.php?id=75235&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75235&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75235&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75235&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75235&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75235&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75235&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75235&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75235&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75235&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75235&r=mysqlcfg

« previous php.bugs (#211271) next »