-
Notifications
You must be signed in to change notification settings - Fork 245
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
Warning on PrintHexBytes function when $string is not a string. #442
Comments
I could just hide the warning as you describe, but I'd prefer to fix the problem at the source if possible. Do you have a sample file that triggers this warning? (post here or email [email protected]) |
Sorry for the delay.
Unfortunately the problem occurs with a specific MP4 file that I cannot pass because it has copyright. I haven't been able to replicate it with another video. I have made a backtrace in case it is helpful to see which function calls this.
It seems that it receives an int when the function is called from: Here:
Video format detected by file command: I'm not sure if it's relevant, but the only audio track is in the Catalan language. |
Thanks, |
Somewhere in code this function is called passing a INT on $string. That raises a warning:
Trying to access array offset on value of type int on /vagrant/vendor/james-heinrich/getid3/getid3/getid3.lib.php line 36
My workaround was to just return an empty string if is_string($string) == false.
The text was updated successfully, but these errors were encountered: