com php-src: Fixed bug #71219 configure script incorrectly checks for ttyname_r: NEWS ext/posix/config.m4
| From: | Joe Watkins | Date: | Wed, 11 Jan 2017 08:09:10 +0000 |
| Subject: | com php-src: Fixed bug #71219 configure script incorrectly checks for ttyname_r: NEWS ext/posix/config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-96684@lists.php.net to get a copy of this message | ||
Commit: 51d487786c7ac2393604695318aaa72376161f2f
Author: Joe Watkins <krakjoe@php.net> Wed, 11 Jan 2017 08:09:10 +0000
Parents: 6a9efa2d3e6180c3df23dc8b7832f17b5de6acde
Branches: PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=51d487786c7ac2393604695318aaa72376161f2f
Log:
Fixed bug #71219 configure script incorrectly checks for ttyname_r
Bugs:
https://bugs.php.net/71219
Changed paths:
M NEWS
M ext/posix/config.m4
Diff:
diff --git a/NEWS b/NEWS
index 3a8919a..3338ba9 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,9 @@ PHP NEWS
- Phar:
. Fixed bug #70417 (PharData::compress() doesn't close temp file). (cmb)
+- posix:
+ . Fixed bug #71219 (configure script incorrectly checks for ttyname_r). (atoth)
+
- Session:
. Fixed bug #69582 (session not readable by root in CLI). (EvgeniySpinov)
diff --git a/ext/posix/config.m4 b/ext/posix/config.m4
index 9dfa70d..0c4c305 100644
--- a/ext/posix/config.m4
+++ b/ext/posix/config.m4
@@ -21,7 +21,7 @@ int main(int argc, char *argv[])
{
char buf[64];
- return ttyname_r(0, buf, 64) ? 1 : 0;
+ return !ttyname_r(0, buf, 64);
}
],[
AC_MSG_RESULT([yes])