diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-09-03 03:35:22 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-09-03 03:35:22 +0000 |
commit | 6ad651afbed05c70ecfd4fe2d4cc44aff6156921 (patch) | |
tree | f8d63e4df687784535f3250459235fc96392c8dd | |
parent | 69a4d841a9a1acc1ce01c6ac144076bf3595891e (diff) | |
download | php-git-6ad651afbed05c70ecfd4fe2d4cc44aff6156921.tar.gz |
Adjusted input check.
-rw-r--r-- | ext/dio/dio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dio/dio.c b/ext/dio/dio.c index 4e26188aa9..6f89bd61fb 100644 --- a/ext/dio/dio.c +++ b/ext/dio/dio.c @@ -249,8 +249,8 @@ PHP_FUNCTION(dio_write) 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; } |