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

Undefined array key #366

Closed
QuixThe2nd opened this issue Jan 23, 2022 · 4 comments
Closed

Undefined array key #366

QuixThe2nd opened this issue Jan 23, 2022 · 4 comments

Comments

@QuixThe2nd
Copy link

Im getting the following errors:
Undefined array key 5
Undefined array key 6
on line 1702 of getID3/module.audio-video.quicktime.php

PHP Version: 8.0.14

File: https://starfiles.co/file/nT77EjZPL3Nb/cool-mov

@StudioMaX
Copy link
Collaborator

What value is in getID3::VERSION?
I don't see any warnings with this file on PHP 8.0/8.1.

@QuixThe2nd
Copy link
Author

1.9.21-202201031158

@JamesHeinrich
Copy link
Owner

The line in question is this:
$atom_structure['key_name'] = @$info['quicktime']['temp_meta_key_names'][$metaDATAkey++];
If I remove the error-suppressing @ then I do also get the same undefined-array-key notices.
I also tested this file on PHP v8.0.11 and didn't get any warnings with the @ in place, but I have changed to a more explicit check in 2279f7c

@StudioMaX
Copy link
Collaborator

Just wanted to opine that I didn't see any warnings at this line on PHP 8.0/8.1 either, even under xdebug. And I'm even wondering how this warning appeared by ignoring @.

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

3 participants