Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spyc_load_file() incorrectly handles a missing file #50

Open
jmikkola opened this issue Dec 1, 2015 · 0 comments
Open

spyc_load_file() incorrectly handles a missing file #50

jmikkola opened this issue Dec 1, 2015 · 0 comments

Comments

@jmikkola
Copy link

jmikkola commented Dec 1, 2015

spyc_load_file() makes dealing with missing files very confusing by returning a valid-looking value instead of reporting the error.

Steps to reproduce

  1. Run:
<?php
var_dump(spyc_load_file('/missing/file.yaml'));

Expected result

Some kind of error about the file not existing.

Actual result

array(1) {
  [0] =>
  string(18) "/missing/file.yaml"
}
@jmikkola jmikkola changed the title spyc_load_file() incorrectly handles a missing file spyc_load_file() incorrectly handles a missing file Dec 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant