doc-en icon indicating copy to clipboard operation
doc-en copied to clipboard

yaml_parse_file() return code not as given in the manual

Open rmfrankch opened this issue 2 months ago • 1 comments

From manual page: https://php.net/function.yaml-parse-file


The manual clains: "Returns the value encoded in input in appropriate PHP type or false on failure. If pos is -1 an array will be returned with one entry for each document found in the stream."

When installed using apt install php-yaml, the versions 8.2 and 8.3 return either an array with the parsed data or a string with an error message. It never returns false.

rmfrankch avatar Nov 03 '25 16:11 rmfrankch