From: foobar Date: Tue, 25 Jan 2005 13:43:37 +0000 (+0000) Subject: MFH: - Fixed bug #31684 (dio_tcsetattr(): misconfigured termios settings) X-Git-Tag: php-4.3.11RC1~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0926b0d102d9164510185ca0952501dd0e7d78a5;p=php MFH: - Fixed bug #31684 (dio_tcsetattr(): misconfigured termios settings) --- diff --git a/NEWS b/NEWS index ec290879d4..603bc7f106 100644 --- 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) diff --git a/ext/dio/dio.c b/ext/dio/dio.c index e81e966696..a494749ba7 100644 --- a/ext/dio/dio.c +++ b/ext/dio/dio.c @@ -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;