SWFEditor の PHP5.5 動作確認

CentOS6.5 に PHP5.5.7 を入れたのは、SWFEditor trunk (v0.61相当)の動作確認をしたかったからで。

はじめに結論

  • 普通にコンパイル出来て、普通に動く。
  • PHP5.5 対応済とします。(宣言)

準備

sudo yum --enablerepo=remi,remi-php55 install httpd php php-devel
sudo yum install giflib-devel.x86_64 giflib.x86_64 giflib-utils.x86_64
sudo yum install libpng.x86_64 libpng-devel.x86_64 libpng-static.x86_64
sudo yum install  libjpeg-turbo-devel.x86_64 libjpeg-turbo.x86_64 libjpeg-turbo-static.x86_64
  • static 要らなかったかも?

build

phpize
configure
make

test

[yoya@centos65 src]$ make test

Build complete.
Don't forget to run 'make test'.


=====================================================================
PHP         : /usr/bin/php
PHP_SAPI    : cli
PHP_VERSION : 5.5.7
ZEND_VERSION: 2.5.0
PHP_OS      : Linux - Linux centos65 2.6.32-431.1.2.0.1.el6.x86_64 #1 SMP Fri Dec 13 13:06:13 UTC 2013 x86_64
INI actual  : /home/yoya/git/swfed/src/tmp-php.ini
More .INIs  :
CWD         : /home/yoya/git/swfed/src
Extra dirs  :
VALGRIND    : Not used
=====================================================================
TIME START 2013-12-18 14:36:28
=====================================================================
PASS setActionVariables() : merge to doaction [tests/action001.phpt]
PASS setActionVariables() : create doaction [tests/action002.phpt]
PASS setActionVariables() : merge to doaction (no 0 terminate record) [tests/action003.phpt]
PASS replaceActionString() : ActionPush longer parameter [tests/action100.phpt]
PASS replaceActionString() : ActionPush shorten parameter [tests/action101.phpt]
PASS getBitmapSize JPG [tests/bitmap001.phpt]
PASS getBitmapSize Lossless [tests/bitmap002.phpt]
PASS replaceBitmapData width [tests/bitmap003.phpt]
PASS replaceBitmapData width [tests/bitmap004.phpt]
PASS replaceBitmapData Lossless with alpha0 [tests/bitmap005.phpt]
PASS replaceBitmapData select bitmap from defineshape fillstyles [tests/bitmap006.phpt]
PASS replaceEditString() test; [tests/edit001.phpt]
PASS replaceEditString() test; [tests/edit002.phpt]
PASS replaceGIFData test; [tests/gif001.phpt]
PASS isBitmapTag() [tests/isbitmaptag001.phpt]
PASS isShapeTag() [tests/isshapetag001.phpt]
PASS replaceJpegData test; [tests/jpeg001.phpt]
PASS replaceJpegData test with surplus data at tail [tests/jpeg002.phpt]
PASS replaceMovieClip [tests/movieclip001.phpt]
PASS replaceMovieClip and Purge [tests/movieclip002.phpt]
PASS replaceMovieClip instancename search from nested symbol [tests/movieclip003.phpt]
PASS replaceMovieClip 300 defineshape & placeobject [tests/movieclip004.phpt]
PASS replaceMovieClip with font specify [tests/movieclip005.phpt]
PASS replacePNGData (transparent) [tests/png001.phpt]
PASS swfinfo() test; [tests/swfinfo001.phpt]
PASS replaceTagData [tests/tag001.phpt]
PASS replaceTagDataByCID [tests/tag002.phpt]
=====================================================================
TIME END 2013-12-18 14:36:29

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   17
---------------------------------------------------------------------

Number of tests :   27                27
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    0 (  0.0%) (  0.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :   27 (100.0%) (100.0%)
---------------------------------------------------------------------
Time taken      :    1 seconds
=====================================================================

This report can be automatically sent to the PHP QA team at
http://qa.php.net/reports and http://news.php.net/php.qa.reports
This gives us a better understanding of PHP's behavior.
If you don't want to send the report immediately you can choose
option "s" to save it.  You can then email it to qa-reports@lists.php.net later.
Do you want to send this report now? [Yns]: ^Cmake: *** [test] 割り込み

[yoya@centos65 src]$

install

[yoya@centos65 src]$ sudo make install
Installing shared extensions:     /usr/lib64/php/modules/
[yoya@centos65 src]$ cd /etc/php.d/
[yoya@centos65 php.d]$ su
パスワード:
[root@centos65 php.d]# cp gd.ini /tmp/swfed.ini
[root@centos65 php.d]# vi  /tmp/swfed.ini
; Enable SWFEditor extension module
extension=swfed.so
[root@centos65 php.d]# cp  /tmp/swfed.ini .
[root@centos65 php.d]#
[yoya@centos65 php.d]$ php -i | grep SWF
SWF Editor support => enabled
SWF Editor version => 0.62a
SWF Editor PNG support => yes
SWF Editor GIF support => yes

www 確認

[root@centos65 httpd]# /etc/init.d/httpd restart
httpd を停止中:                                            [  OK  ]
httpd を起動中: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.1.18 for ServerName
                                                           [  OK  ]
  • www deploy
[yoya@centos65 swfed]$ cp -r  www /var/www/html/swfed

あとは Web で開いて確認。