com php-src: Ignore spurious stderr output from lsof: ext/phar/tests/tar/bug70417.phpt
| From: | Sara Golemon | Date: | Thu, 01 Jun 2017 22:43:25 +0000 |
| Subject: | com php-src: Ignore spurious stderr output from lsof: ext/phar/tests/tar/bug70417.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-97981@lists.php.net to get a copy of this message | ||
Commit: a9294d36bce0b54458c95eaec89c17177b89e6ea
Author: Sara Golemon <pollita@php.net> Thu, 1 Jun 2017 15:40:26 -0700
Parents: 02e6c9c7573c125153155cc5d82e1c957fb71b36
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a9294d36bce0b54458c95eaec89c17177b89e6ea
Log:
Ignore spurious stderr output from lsof
lsof may report errors trying to stat files owned by other
users in other processes, even when asking for files
associated to a specific process. Boo.
Changed paths:
M ext/phar/tests/tar/bug70417.phpt
Diff:
diff --git a/ext/phar/tests/tar/bug70417.phpt b/ext/phar/tests/tar/bug70417.phpt
index 0096b5a..9d30aae 100644
--- a/ext/phar/tests/tar/bug70417.phpt
+++ b/ext/phar/tests/tar/bug70417.phpt
@@ -13,7 +13,7 @@ if ($status !== 0) {
--FILE--
<?php
function countOpenFiles() {
- exec('lsof -p ' . getmypid(), $out);
+ exec('lsof -p ' . getmypid() . ' 2> /dev/null', $out);
return count($out);
}
$filename = __DIR__ . '/bug70417.tar';