|
|
@ -907,7 +907,11 @@ PHPAPI PHP_FUNCTION(fgets) |
|
|
WRONG_PARAM_COUNT; |
|
|
WRONG_PARAM_COUNT; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
php_stream_from_zval(stream, arg1); |
|
|
|
|
|
|
|
|
php_stream_from_zval_no_verify(stream, arg1); |
|
|
|
|
|
if (stream == NULL) { |
|
|
|
|
|
/* we want false return value, rather than NULL */ |
|
|
|
|
|
goto exit_failed; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (argc == 1) { |
|
|
if (argc == 1) { |
|
|
/* ask streams to give us a buffer of an appropriate size */ |
|
|
/* ask streams to give us a buffer of an appropriate size */ |
|
|
|