This repository has been archived by the owner on Oct 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove stdout/stderr/stdin, add {request,server}{Output,Input,Error} (#…
…27) Summary: fixes #26 STDIN, STDOUT, and STDERR are undefined except in CLI mode. The php://std* handles are always *server* file handles. Expose php://input and php://output as well Pull Request resolved: #27 Reviewed By: alexeyt Differential Revision: D13304206 Pulled By: alexeyt fbshipit-source-id: 94b8cfb303e8a70c72dbb015a938b6c2f4dfdd3f
- Loading branch information
1 parent
336dacb
commit 022d36c
Showing
3 changed files
with
102 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?hh // strict | ||
/* | ||
* Copyright (c) 2004-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
*/ | ||
|
||
|
||
namespace HH\Lib\Experimental\IO; | ||
|
||
/** Indicates that an invalid handle was used or requested. | ||
* | ||
* For example, calling `IO\requestError()` throws this exception in an | ||
* HTTP request, as the model only defines input and output streams, not an | ||
* error stream. | ||
*/ | ||
final class InvalidHandleException extends \Exception {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters