-
Notifications
You must be signed in to change notification settings - Fork 21
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
resolve() fatal error when $delta['path'] is null #15
Comments
evert
added a commit
that referenced
this issue
Feb 19, 2017
Hi! This might be the weirdest thing I've seen so far. I added a unittest which passed (don't pay attention to the failed build here, different reason). But, when I slightly change the unitest to force it to fail, I your fatal error. I can't' explain it, I don't get it. Hopefully ill have some more info here soon |
Never mind, I was looking at it wrong! Only happens with a fragment that does't have a value |
treyssatvincent
pushed a commit
to treyssatvincent/laravel-nextcloud-fs
that referenced
this issue
Dec 20, 2023
to avoid this bug sabre-io/uri#15
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When there is no path on the $basePath parameter and no leading slash on the $newPath parameter, a fatal error is generated.
It is being caused by null being passed into strpos() at the first parameter with strict types enabled.
It could be resolved by casting or null coalescing the value to a string to mimic php5 behaviour, or throwing an exception if this is behaviour you do not want to support.
The text was updated successfully, but these errors were encountered: