|
|
|
@ -920,7 +920,7 @@ PHPAPI PHP_FUNCTION(fgets) |
|
|
|
len = Z_LVAL_PP(arg2); |
|
|
|
|
|
|
|
if (len <= 0) { |
|
|
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter must be greater then 0."); |
|
|
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter must be greater than 0."); |
|
|
|
RETURN_FALSE; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1027,7 +1027,7 @@ PHPAPI PHP_FUNCTION(fgetss) |
|
|
|
if (bytes != NULL) { |
|
|
|
convert_to_long_ex(bytes); |
|
|
|
if (Z_LVAL_PP(bytes) <= 0) { |
|
|
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter must be greater then 0."); |
|
|
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter must be greater than 0."); |
|
|
|
RETURN_FALSE; |
|
|
|
} |
|
|
|
|
|
|
|
@ -1641,7 +1641,7 @@ PHPAPI PHP_FUNCTION(fread) |
|
|
|
convert_to_long_ex(arg2); |
|
|
|
len = Z_LVAL_PP(arg2); |
|
|
|
if (len <= 0) { |
|
|
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter must be greater then 0."); |
|
|
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Length parameter must be greater than 0."); |
|
|
|
RETURN_FALSE; |
|
|
|
} |
|
|
|
|
|
|
|
|