Bug #76086 [Opn->Fbk]: Unable to write to php://stderr

From: Date: Wed, 14 Mar 2018 17:23:11 +0000
Subject: Bug #76086 [Opn->Fbk]: Unable to write to php://stderr
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214356@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76086&edit=1 ID: 76086 Updated by: ab@php.net Reported by: chris at modd dot com dot au Summary: Unable to write to php://stderr -Status: Open +Status: Feedback Type: Bug Package: Streams related Operating System: Windows PHP Version: 7.2.3 Block user comment: N Private report: N New Comment: Thanks for the further info. libfcgi0ldbl is not a package from the PHP distribution. It is also unlikely available on Windows. Thus, seems it's not a PHP bug. From what is shown, i guess it's about the port doesn't get reused or similar. If there's a repro regarding PHP, please post, otherwise it's probably to be marked as not a bug. Thanks. Previous Comments: ------------------------------------------------------------------------ [2018-03-14 00:16:28] chris at modd dot com dot au Ok, I have found the bug more specifically. You will need the cgi-fcgi command util from ubuntu/debian package: libfcgi0ldbl Run fcgi server in dir with bugs76086.php script PHP_FCGI_CHILDREN=1 php-cgi -b 127.0.0.1:9000 Then send a request from cli: SCRIPT_NAME=bug76086.php SCRIPT_FILENAME=bug76086.php REQUEST_METHOD=GET cgi-fcgi -bind -connect 127.0.0.1:9000 returns (from cgi-fci command, not terminal running php-cgi): PHP Warning: file_put_contents(): Only 0 of 2 bytes written, possibly out of free disk space in C:\Users\chris\bug76086.php on line 5 <br /> ------------------------------------------------------------------------ [2018-03-13 21:50:42] chris at modd dot com dot au I only get the error when running via fast-cgi. I am not sure how to reproduce this without running a webserver. ------------------------------------------------------------------------ [2018-03-13 09:16:36] ab@php.net Thanks for the report. I see this when running your snippet $ php-cgi.exe bug76086.php 1>nul Error Occurred How exactly teh issue can be reproduced? Thanks. ------------------------------------------------------------------------ [2018-03-13 05:20:14] chris at modd dot com dot au This problem only seems to be a problem when using php-cgi ------------------------------------------------------------------------ [2018-03-13 05:20:12] chris at modd dot com dot au This problem only seems to be a problem when using php-cgi ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=76086 -- Edit this bug report at https://bugs.php.net/bug.php?id=76086&edit=1

« previous php.bugs (#214356) next »