]> granicus.if.org Git - php/commitdiff
Fixed bug #71219
authorNikita Popov <nikic@php.net>
Sat, 30 Jul 2016 16:21:19 +0000 (18:21 +0200)
committerNikita Popov <nikic@php.net>
Sat, 30 Jul 2016 16:21:19 +0000 (18:21 +0200)
NEWS
ext/posix/config.m4

diff --git a/NEWS b/NEWS
index bc4df65fb402bf97fb21834045554034b187d3b2..33a317020f8a68ff2bad4e510ba1001c3df81901 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -63,6 +63,10 @@ PHP                                                                        NEWS
 - PDO_pgsql:
   . Fixed bug #70313 (PDO statement fails to throw exception). (Matteo)
 
+- Posix:
+  . Fixed bug #71219 (php's configure script incorrectly checks for ttyname_r
+    availability). (Nikita)
+
 - Reflection:
   . Fixed bug #72222 (ReflectionClass::export doesn't handle array constants).
     (Nikita Nefedov)
index 82b80ce972c9b92e470562e81c367ca3670d7e02..eb0d1dbf1c08e8785efaec7546e40bb2cc0b9736 100644 (file)
@@ -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])