This repository has been archived by the owner on Oct 1, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use server_{input,output} for request input/output in CLI mode (#31)
Summary: `php://input` is never a real file handle, even in CLI mode. We should change this now we don't need to be PHP-compatible, but for now, workaround it by exposing the real STDIN. This demonstrates the diference: ``` <?php $f = fopen('php://stdin', 'r'); stream_set_blocking($f, false); fgets($f); var_dump(feof($f)); // false for php://stdin, true for php://input ``` Pull Request resolved: #31 Reviewed By: kmeht Differential Revision: D13510875 Pulled By: kmeht fbshipit-source-id: d0b335f7312a5cdc3dc1a2ce7af112a0be428d1d
- Loading branch information