summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2016-07-30 18:21:19 +0200
committerNikita Popov <nikic@php.net>2016-07-30 18:21:19 +0200
commit14d674442ef86ad4e862228a1ff5ecd322ae7759 (patch)
tree93fdc7e5208337470e6f4d1b86202a35abc88e70
parent99613431b4a04b39ac02f564d3d2c842a5b27169 (diff)
downloadphp-git-14d674442ef86ad4e862228a1ff5ecd322ae7759.tar.gz
Fixed bug #71219
-rw-r--r--NEWS4
-rw-r--r--ext/posix/config.m42
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index bc4df65fb4..33a317020f 100644
--- 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)
diff --git a/ext/posix/config.m4 b/ext/posix/config.m4
index 82b80ce972..eb0d1dbf1c 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])