php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #71219
Patch php-7.0.1-ttyname_r-test.patch revision 2015-12-26 17:14 UTC by atoth at atoth dot sote dot hu
Patch php-5.6.16-ttyname_r-test.patch revision 2015-12-26 17:13 UTC by atoth at atoth dot sote dot hu
Patch php-ttyname_r-test.patch revision 2015-12-25 18:35 UTC by atoth at atoth dot sote dot hu

Patch php-ttyname_r-test.patch for *Compile Issues Bug #71219

Patch version 2015-12-25 18:35 UTC

Return to Bug #71219 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions:

Developer: atoth@atoth.sote.hu

diff -urN php-5.6.16-orig/configure php-5.6.16-dwok/configure
--- php-5.6.16-orig/configure	2015-11-26 00:43:26.000000000 +0100
+++ php-5.6.16-dwok/configure	2015-12-25 19:10:27.537985626 +0100
@@ -79179,7 +79179,7 @@
 {
 	char buf[64];
 
-	return ttyname_r(0, buf, 64) ? 1 : 0;
+	return ttyname_r(0, buf, 64) ? 0 : 1;
 }
 
 _ACEOF
diff -urN php-5.6.16-orig/ext/posix/config.m4 php-5.6.16-dwok/ext/posix/config.m4
--- php-5.6.16-orig/ext/posix/config.m4	2015-11-25 21:28:38.000000000 +0100
+++ php-5.6.16-dwok/ext/posix/config.m4	2015-12-25 19:10:40.854128401 +0100
@@ -21,7 +21,7 @@
 {
 	char buf[64];
 
-	return ttyname_r(0, buf, 64) ? 1 : 0;
+	return ttyname_r(0, buf, 64) ? 0 : 1;
 }
   ],[
     AC_MSG_RESULT([yes])
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 10:01:28 2024 UTC