|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: k at webnfo dot com
New email:
PHP Version: OS:


 [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: Sat Sep 30 07:01:25 2023 UTC