Skip to content

Commit d5553b9

Browse files
committed
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0: Fixed bug #71219 configure script incorrectly checks for ttyname_r
2 parents 3c23d1b + 51d4877 commit d5553b9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ PHP NEWS
1818
- Phar:
1919
. Fixed bug #70417 (PharData::compress() doesn't close temp file). (cmb)
2020

21+
- posix:
22+
. Fixed bug #71219 (configure script incorrectly checks for ttyname_r). (atoh)
23+
2124
- Session:
2225
. Fixed bug #69582 (session not readable by root in CLI). (EvgeniySpinov)
2326

ext/posix/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ int main(int argc, char *argv[])
2121
{
2222
char buf[64];
2323
24-
return ttyname_r(0, buf, 64) ? 1 : 0;
24+
return !ttyname_r(0, buf, 64);
2525
}
2626
],[
2727
AC_MSG_RESULT([yes])

0 commit comments

Comments
 (0)