diff options
Diffstat (limited to 'ext/standard/file.c')
| -rw-r--r-- | ext/standard/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index eeeb217dd8..f05752a5a0 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -544,7 +544,7 @@ PHP_FUNCTION(file_get_contents) if (ZEND_NUM_ARGS() == 5 && maxlen < 0) { zend_value_error("Length must be greater than or equal to zero"); - return; + RETURN_THROWS(); } context = php_stream_context_from_zval(zcontext, 0); |
