Skip to content

Commit 51d4877

Browse files
committed
Fixed bug #71219 configure script incorrectly checks for ttyname_r
1 parent 6a9efa2 commit 51d4877

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
@@ -19,6 +19,9 @@ PHP NEWS
1919
- Phar:
2020
. Fixed bug #70417 (PharData::compress() doesn't close temp file). (cmb)
2121

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

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)