Bug #72256 [NEW]: echo statement on invalid fd cause php to abort

From: Date: Mon, 23 May 2016 07:32:16 +0000
Subject: Bug #72256 [NEW]: echo statement on invalid fd cause php to abort
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201233@lists.php.net to get a copy of this message
From:             prinbra at gmail dot com
Operating system: 
PHP version:      Irrelevant
Package:          *General Issues
Bug Type:         Bug
Bug description:echo statement on invalid fd cause php to abort

Description:
------------
on cli environment, when the stdout of php becomes unavailable, eg: user
run php in background and logged out of their ssh connection.
a echo statement will cause php process to exit immediately!

strace output:

14937 12:22:18.958295 write(1, "running\n", 8) = -1 EIO (Input/output
error)

then php just silently quit!


-- 
Edit bug report at https://bugs.php.net/bug.php?id=72256&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=72256&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=72256&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=72256&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=72256&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=72256&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=72256&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=72256&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=72256&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=72256&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=72256&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=72256&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=72256&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=72256&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72256&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=72256&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=72256&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=72256&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72256&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=72256&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=72256&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#201233) next »