FFmpeg throws a bunch of PHP warnings concerning undefined variables. This patch fixes those.
One question is why was cache_get() commented out? This caused a warning as $cache would be undefined.
Another thing is ffmpeg_wrapper_enable(). It's not supposed to be an implementation of hook_enable(), right? I renamed it to ffmpeg_wrapper_load_js().
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | ffmpeg_wrapper-308927-php_errors.patch | 1.43 KB | zoo33 |
| ffmpeg_wrapper-php_warnings.patch | 5.84 KB | zoo33 |
Comments
Comment #1
zoo33 commentedComment #2
zoo33 commentedFound another problem around line 335:
This should be:
...or you'll get a PHP warning. I don't have time to update the patch right now, will do that later.
Comment #3
arthurf commentedI applied most of this- didn't do the function name change yet.
Thanks for the patch!
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
zoo33 commentedI'm reopening this as there is still the issue with ffmpeg_wrapper_enable() triggering the hook hook_enable(). The result is a PHP warning when you enable the module, due to the fact that hook_enable() doesn't have any arguments, and fmpeg_wrapper_enable() does.
A simple search-and-replace for "ffmpeg_wrapper_enable()" would solve it. (The function is only called once in the code.)
Comment #6
arthurf commentedAh, gotcha. My bad. Fixing in CVS. Will you port this up to 6x?
Comment #7
zoo33 commentedYup, I'll do that. Thanks!
Comment #8
zoo33 commentedHm, I don't seem to have commit access. Thought I did. So, here's a patch instead!
I included a TODO comment that went into your last commit.
Comment #9
zoo33 commentedTurns out I did have commit access. So, committed!