From: foobar Date: Tue, 25 Jan 2005 13:43:27 +0000 (+0000) Subject: MFH: - Fixed bug #31684 (dio_tcsetattr(): misconfigured termios settings) X-Git-Tag: php-5.0.4RC1~248 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e496cc0e7f4cbd15d54e62a5e6f285686295c0f;p=php MFH: - Fixed bug #31684 (dio_tcsetattr(): misconfigured termios settings) --- diff --git a/NEWS b/NEWS index ffe49b2510..c6fd9eeca7 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,8 @@ PHP NEWS - Changed phpize not to require libtool. (Jani) - Fixed build system to always use bundled libtool files. (Jani) - Fixed a bug in mysqli_stmt_execute() (type conversion with NULL values). (Georg) +- Fixed bug #31684 (dio_tcsetattr(): misconfigured termios settings). + (elod at itfais dot com) - Fixed bug #31651 (ReflectionClass::getDefaultProperties segfaults with arrays). (Marcus) - Fixed bug #31623 (OCILogin does not support password grace period). diff --git a/ext/dio/dio.c b/ext/dio/dio.c index 2542859eae..0435957f05 100644 --- a/ext/dio/dio.c +++ b/ext/dio/dio.c @@ -611,6 +611,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;