| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 Patch php-5.6.16-ttyname_r-test.patch for *Compile Issues Bug #71219Patch version 2015-12-26 17:13 UTC Return to Bug #71219 | Download this patchThis patch renders other patches obsolete Obsolete 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(1, buf, 64) ? 1 : 0;
 }
 
 _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(1, buf, 64) ? 1 : 0;
 }
   ],[
     AC_MSG_RESULT([yes])
         | 
    
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 10:00:02 2025 UTC |