Re: [PHP-WIN] 64 bit platform improvements

[email protected] (Jan Ehrhardt) Tue, 24 Dec 2013 23:20:43 +0100
Newsgroups php.windows
Message-ID <[email protected]>
Jan Ehrhardt in php.windows (Tue, 24 Dec 2013 16:28:56 +0100):
>Of course I tried to patch and compile php_ffmpeg. I only replaced the
>'long' things with their 'int' couterparts.
>
>REGISTER_LONG_CONSTANT := REGISTER_INT_CONSTANT
>ZVAL_LONG := ZVAL_INT
>RETURN_LONG := RETURN_INT
>convert_to_long_ex := convert_to_int_ex
>Z_LVAL_PP := Z_DVAL_PP (I was not really sure about this one)

OK, that had to be Z_LVAL_PP := Z_IVAL_PP

>Most of these changes were in ffmpeg_frame.c. The result: it compiled,
>but the frame functions failed (and thus also the making of a
>thumbnail). Compare these two:
>
>http://x32.elijst.nl/fftest.php (PHP 5.3.28)
>http://x32.elijst.nl/fftest.php5f (PHP 5.7.0-dev)

Works now:
http://x32.elijst.nl/fftest.php5f
http://x32.elijst.nl/ffthumb.php5f

php_ffmpeg.dll will survive the 64-bit transition :-)

Jan