spl_filesystem_file_read() is called with silent=0, so it will
throw on failure.
CHECK_SPL_FILE_OBJECT_IS_INITIALIZED(intern);
if (spl_filesystem_file_read(intern, 0) == FAILURE) {
- RETURN_FALSE;
+ RETURN_THROWS();
}
RETURN_STRINGL(intern->u.file.current_line, intern->u.file.current_line_len);
} /* }}} */
/** @return bool */
public function valid() {}
- /** @return string|false */
+ /** @return string */
public function fgets() {}
/** @return string|false */
public function seek(int $line) {}
/**
- * @return string|false
+ * @return string
* @alias SplFileObject::fgets
*/
public function getCurrentLine() {}
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: b4aa4816381e8380d5dc0c5f9b9969992a72f9ed */
+ * Stub hash: 285af54cf7b3f3ef3f0d673b248c5afbd4cc440e */
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplFileInfo___construct, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)