Re: php://input in CLI sapi
| From: | Alexey Zakhlestin | Date: | Sun, 04 Jan 2009 12:10:44 +0000 |
| Subject: | Re: php://input in CLI sapi | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42468@lists.php.net to get a copy of this message | ||
On Sat, Jan 3, 2009 at 5:19 PM, Timm Friebe <thekid@thekid.de> wrote:
> Hi,
> is there any reason php://input is not supported in CLI sapi? It would be
> nice to test raw post data reading in unittests without having to run them
> inside a web server sapi and it's only a five-line patch making php://input
> read from stdin in cli (attached).
"POST DATA" is not relevant to CLI. While I understand what you are
trying to do, it feels like a hack.
I would suggest to work with "php://stdin" instead
--
Alexey Zakhlestin
http://www.milkfarmsoft.com/