Details
-
Feature
-
Resolution: Obsolete
-
High
-
None
Description
In some circumstances (+deamon, +forks, +closed stream) it's possible not to have the STDERR available to send the output through fputs what results in a ot a valid stream resource error
PHP Warning: fputs(): 3 is not a valid stream resource in ezpublish_legacy/kernel/classes/ezscript.php on line 1195
PHP Warning: fputs(): 3 is not a valid stream resource in ezpublish_legacy/kernel/classes/ezscript.php on line 1196
PHP Warning: fputs(): 3 is not a valid stream resource in ezpublish_legacy/kernel/classes/ezscript.php on line 1197
The worse is not the warning by itself, it's the impossibility of having access to the error that originated the message, what could be important for the debugging.
In that way, it makes sense to replace the fputs(SDTERR) in asynchronous publishing to other forms of logging, specially because it's supposed to be executed as daemon.