Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Safer implementation of request_input()/output() in CLI mode

Compare
Choose a tag to compare
@fredemmott fredemmott released this 19 Dec 17:24
· 5 commits to v3.30.x since this release

As an implementation detail, prior releases used php://input and php://output in all modes.

This release changes to use php://stdin and php://stdout instead, as php://input and php://output are not "real" FDs, which can lead to observable differences, e.g.:

<?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