Req #62732 [Opn->Wfx]: [Feature Request]Built-in TCP server
| From: | yohgaki@php.net | Date: | Wed, 31 Jul 2013 03:23:41 +0000 |
| Subject: | Req #62732 [Opn->Wfx]: [Feature Request]Built-in TCP server | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-180603@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62732&edit=1
ID: 62732
Updated by: yohgaki@php.net
Reported by: k at webnfo dot com
Summary: [Feature Request]Built-in TCP server
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: Built-in web server
PHP Version: 5.4.5
Block user comment: N
Private report: N
New Comment:
How could you determine which script to be executed?
HTTP specify resource to be fetched via URL, but not for general TCP servers.
I don't see how this feature could be useful while users may specify whatever
server PHP scripts as command line argument.
Previous Comments:
------------------------------------------------------------------------
[2012-08-07 00:55:57] k at webnfo dot com
I meant commandline stuff compared to the newly added php built-in webserer.
------------------------------------------------------------------------
[2012-08-05 20:11:51] ajf at ajf dot me
Do you mean a commandline thing like -S?
Or do you mean something like this?
tcp_server("localhost", 9001, function ($addr, $sock) {
// do stuff here
});
------------------------------------------------------------------------
[2012-08-03 03:32:34] k at webnfo dot com
Description:
------------
TCP server can handle much more protocols not only on http. Like smtp, etc. Just accept the tcp
message and invoke php to handle the other parts.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62732&edit=1