iliaa Thu Sep 2 23:35:27 2004 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/dio dio.c Log: MFH: Adjusted input check. http://cvs.php.net/diff.php/php-src/ext/dio/dio.c?r1=1.34.2.2&r2=1.34.2.3&ty=u Index: php-src/ext/dio/dio.c diff -u php-src/ext/dio/dio.c:1.34.2.2 php-src/ext/dio/dio.c:1.34.2.3 --- php-src/ext/dio/dio.c:1.34.2.2 Mon Aug 30 18:21:13 2004 +++ php-src/ext/dio/dio.c Thu Sep 2 23:35:27 2004 @@ -249,8 +249,8 @@ return; } - if (trunc_len <= 0 || trunc_len > data_len) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "length must be greater then zero and less then the length of specified string."); + if (trunc_len < 0 || trunc_len > data_len) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "length must be greater or equal to zero and less then the length of the specified string."); RETURN_FALSE; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php