]> granicus.if.org Git - php/commitdiff
MFH: - Fixed bug #31684 (dio_tcsetattr(): misconfigured termios settings)
authorfoobar <sniper@php.net>
Tue, 25 Jan 2005 13:43:37 +0000 (13:43 +0000)
committerfoobar <sniper@php.net>
Tue, 25 Jan 2005 13:43:37 +0000 (13:43 +0000)
NEWS
ext/dio/dio.c

diff --git a/NEWS b/NEWS
index ec290879d450b33c70dcef2c18cc003ecadf26ac..603bc7f10624723fa3eaa87383e882db1d8602e8 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,8 @@ PHP 4                                                                      NEWS
 - Changed phpize not to require libtool. (Jani)
 - Fixed build system to always use bundled libtool files. (Jani)  
 - Fixed MacOSX shared extensions crashing on Apache startup. (Rasmus)
+- Fixed bug #31684 (dio_tcsetattr(): misconfigured termios settings).
+  (elod at itfais dot com)
 - Fixed bug #31623 (OCILogin does not support password grace period).
   (daniel dot beet at accuratesoftware dot com, Tony)
 - Fixed bug #31580 (fgetcsv() problematic with "" escape sequences). (Ilia)
index e81e966696db92675ffb562e0a4ea41d7c5d119e..a494749ba756397045409e1af1ef529333048444 100644 (file)
@@ -596,6 +596,8 @@ PHP_FUNCTION(dio_tcsetattr)
                        RETURN_FALSE;
        }   
 
+       memset(&newtio, 0, sizeof(newtio));
+       tcgetattr(f->fd, &newtio);
        newtio.c_cflag = BAUD | CRTSCTS | DATABITS | STOPBITS | PARITYON | PARITY | CLOCAL | CREAD;
        newtio.c_iflag = IGNPAR;
        newtio.c_oflag = 0;