fix to allow proc_open() to accept php://stdin as stdin
commitd1ff787b46885d493e28314e516c45f78e573265
authorPatrick Dowell <pdowell@fb.com>
Wed, 18 Dec 2013 17:26:38 +0000 (18 09:26 -0800)
committerSara Golemon <sgolemon@fb.com>
Wed, 18 Dec 2013 19:41:58 +0000 (18 11:41 -0800)
treeb4506cd2dd19604a3a2286820ff3c718dd5dbd74
parent1a1789fa8526b869749551342fab561db1d12f9f
fix to allow proc_open() to accept php://stdin as stdin

I added some code to the openFile function in runtime/ext/ext_process.cpp that accounts for the case when the user calls proc_open() using
php://stdin as stdin for the process spawned.

Reviewed By: @ptarjan

Differential Revision: D1094713
hphp/runtime/ext/ext_process.cpp
hphp/test/slow/ext_process/proc_open.php [new file with mode: 0644]
hphp/test/slow/ext_process/proc_open.php.expectf [new file with mode: 0644]
hphp/test/slow/ext_process/proc_open.php.in [new file with mode: 0644]
hphp/test/slow/ext_process/test_proc_open.sh [new file with mode: 0755]
hphp/test/slow/ext_process/test_proc_open.txt [new file with mode: 0644]