|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #62732 [Feature Request]Built-in TCP server
Submitted: 2012-08-03 03:32 UTC Modified: 2013-07-31 03:23 UTC
From: k at webnfo dot com Assigned:
Status: Wont fix Package: Built-in web server
PHP Version: 5.4.5 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-08-03 03:32 UTC] k at webnfo dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-05 20:11 UTC] 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-07 00:55 UTC] k at webnfo dot com
I meant commandline stuff compared to the newly added php built-in webserer.
 [2013-07-31 03:23 UTC]
-Status: Open +Status: Wont fix
 [2013-07-31 03:23 UTC]
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.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Oct 01 20:01:24 2023 UTC