Snippets

GEORGE LIU ffmpeg 0.6.0 PHP extension patch for PHP >=5.4 for Centmin Mod LEMP web stack https://community.centminmod.com/threads/unable-to-install-ffmpeg-php-extension.1519/#post-7148

Created by GEORGE LIU
--- ffmpeg_movie.c      2014-09-28 23:55:49.115331080 +0000
+++ ffmpeg_movie.c-fixed        2014-09-28 23:58:09.868824321 +0000
@@ -308,7 +308,7 @@
     } 
 
     if (persistent) {
-        list_entry *le;
+       zend_rsrc_list_entry *le;
         /* resolve the fully-qualified path name to use as the hash key */
         fullpath = expand_filepath(filename, NULL TSRMLS_CC);
 
@@ -343,7 +343,7 @@
             }
             
         } else { /* no existing persistant movie, create one */
-            list_entry new_le;
+           zend_rsrc_list_entry new_le;
             ffmovie_ctx = _php_alloc_ffmovie_ctx(1);
 
             if (_php_open_movie_file(ffmovie_ctx, filename)) {
@@ -357,7 +357,7 @@
             new_le.ptr = ffmovie_ctx;
 
             if (FAILURE == zend_hash_update(&EG(persistent_list), hashkey, 
-                        hashkey_length+1, (void *)&new_le, sizeof(list_entry),
+                       hashkey_length+1, (void*)&new_le,sizeof(zend_rsrc_list_entry),
                         NULL)) {
                 php_error_docref(NULL TSRMLS_CC, E_WARNING, 
                         "Failed to register persistent resource");

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.