-
Notifications
You must be signed in to change notification settings - Fork 244
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
Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in getid3_jpg->CastAsAppropriate() #407
Comments
See pull request #406 |
Could you please attach any such image? I tested on my collection even on PHP 8.2, didn't seen deprecations in this part. |
I tried this image and didn't see any problems on PHP 7.4.1 or 8.0.11 |
This warning appeared since PHP 8.1. |
I finally got a PHP 8.2 test environment set up. Once I had that it was easy to find and fix the problem(s). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Using james-heinrich/getid3 on PHP8.1 triggers the following deprecation notice:
Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in getid3_jpg->CastAsAppropriate() (line 194 of [..]/vendor/james-heinrich/getid3/getid3/module.graphic.jpg.php)
This happens only for some images where the exif value for a certain keys has a value of null.
To Reproduce
Use PHP8.1
Expected behavior
Using PHP8.1 does not trigger a deprecation notice when the value for a certain exif key is null.
The text was updated successfully, but these errors were encountered: