-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed as duplicate of#17164
Labels
Description
Description
The following code:
$v_189180 = 'php://stdout';
$v_189181 = 'r';
$v_189182 = fopen($v_189180,$v_189181,);
$v_189183 = sys_get_temp_dir();
$v_189184 = 'gh8827';
$v_189185 = tempnam($v_189183,$v_189184,);
$v_189214 = 'A';
$v_189215 = 1014;
$v_189216 = str_repeat($v_189214,$v_189215,);
$v_189187 = 'gh8827';
$v_189188 = tempnam($v_189216,$v_189187,);
$v_189189 = function () use ($stdoutFile, $stderrFile) {
unlink($stdoutFile);
unlink($stderrFile);
};
$v_189190 = register_shutdown_function($v_189189,);
$v_189191 = STDOUT;
$v_189192 = fclose($v_189191,);
$v_189193 = STDERR;
$v_189194 = fclose($v_189193,);
$v_189195 = 'a';
$v_189196 = fopen($v_189185,$v_189195,);
$v_189197 = 'a';
$v_189198 = fopen($v_189188,$v_189197,);
$v_189199 = 'Goes to stdoutFile\n';
$v_189200 = 'php://fd/1';
$v_189201 = 'Also goes to stdoutFile\n';
$v_189202 = file_put_contents($v_189200,$v_189201,);
$v_189203 = 'php://fd/2';
$v_189204 = 'Goes to stderrFile\n';
$v_189205 = file_put_contents($v_189203,$v_189204,);
$v_189213 = 'HTTP/1.1 201 ';
$v_189207 = 1;
$v_189208 = ob_start($v_189213,$v_189207,);
$v_189209 = 'stdoutFile:\n';
$v_189210 = readfile($v_189185,);
$v_189211 = 'stderrFile:\n';
$v_189218 = True;
$v_189212 = readfile($v_189218,);
Resulted in this output:
Aborted (core dumped)
But I expected this output instead:
PHP Version
nightly
Operating System
ubuntu 20.04