From: foobar Date: Mon, 1 Dec 2003 16:40:59 +0000 (+0000) Subject: MFH: ws fixes X-Git-Tag: php-4.3.5RC1~128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d025a62fb7946c3a82798eb354f9b4090bb703c;p=php MFH: ws fixes --- diff --git a/ext/dio/dio.c b/ext/dio/dio.c index bd573a53cf..83575cc2a4 100644 --- a/ext/dio/dio.c +++ b/ext/dio/dio.c @@ -52,7 +52,7 @@ function_entry dio_functions[] = { PHP_FE(dio_read, NULL) PHP_FE(dio_write, NULL) PHP_FE(dio_close, NULL) - PHP_FE(dio_tcsetattr, NULL) + PHP_FE(dio_tcsetattr, NULL) {NULL, NULL, NULL} }; @@ -435,13 +435,13 @@ PHP_FUNCTION(dio_tcsetattr) long BAUD,DATABITS,STOPBITS,PARITYON,PARITY; HashTable *fh; zval **element; - + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz", &r_fd, &arg) == FAILURE) { return; } ZEND_FETCH_RESOURCE(f, php_fd_t *, &r_fd, -1, le_fd_name, le_fd); - + if (Z_TYPE_P(arg) != IS_ARRAY) { zend_error(E_WARNING,"tcsetattr, third argument should be an associative array"); return; @@ -473,8 +473,8 @@ PHP_FUNCTION(dio_tcsetattr) Parity = Z_LVAL_PP(element); } - /* assign to correct values... */ - switch (Baud_Rate) { + /* assign to correct values... */ + switch (Baud_Rate) { case 38400: BAUD = B38400; break; @@ -570,7 +570,7 @@ PHP_FUNCTION(dio_tcsetattr) zend_error(E_WARNING, "invalid parity %d", Parity); RETURN_FALSE; } - + newtio.c_cflag = BAUD | CRTSCTS | DATABITS | STOPBITS | PARITYON | PARITY | CLOCAL | CREAD; newtio.c_iflag = IGNPAR; newtio.c_oflag = 0;