From bd41e0503d264306c82e8088f93fa48d49206bdb Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 7 Nov 2002 16:38:57 +0000 Subject: [PATCH] Added swf and swc (compressed swf) test cases and added 'bits' portion to the expected bmp test results. --- ext/standard/tests/image/getimagesize.phpt | 34 +++++++++++++++++++-- ext/standard/tests/image/test13pix.swf | Bin 0 -> 589 bytes ext/standard/tests/image/test4pix.swf | Bin 0 -> 609 bytes 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100755 ext/standard/tests/image/test13pix.swf create mode 100755 ext/standard/tests/image/test4pix.swf diff --git a/ext/standard/tests/image/getimagesize.phpt b/ext/standard/tests/image/getimagesize.phpt index 3a543a7991..8e107a6f48 100644 --- a/ext/standard/tests/image/getimagesize.phpt +++ b/ext/standard/tests/image/getimagesize.phpt @@ -23,9 +23,22 @@ GetImageSize() var_dump($result); ?> --EXPECT-- -array(9) { - ["test1pix.bmp"]=> +array(11) { + ["test13pix.swf"]=> array(5) { + [0]=> + int(550) + [1]=> + int(400) + [2]=> + int(13) + [3]=> + string(24) "width="550" height="400"" + ["mime"]=> + string(29) "application/x-shockwave-flash" + } + ["test1pix.bmp"]=> + array(6) { [0]=> int(1) [1]=> @@ -34,6 +47,8 @@ array(9) { int(6) [3]=> string(20) "width="1" height="1"" + ["bits"]=> + int(24) ["mime"]=> string(9) "image/bmp" } @@ -144,6 +159,19 @@ array(9) { ["mime"]=> string(9) "image/psd" } + ["test4pix.swf"]=> + array(5) { + [0]=> + int(550) + [1]=> + int(400) + [2]=> + int(4) + [3]=> + string(24) "width="550" height="400"" + ["mime"]=> + string(29) "application/x-shockwave-flash" + } ["test4pix.tif"]=> array(5) { [0]=> @@ -157,4 +185,4 @@ array(9) { ["mime"]=> string(10) "image/tiff" } -} \ No newline at end of file +} diff --git a/ext/standard/tests/image/test13pix.swf b/ext/standard/tests/image/test13pix.swf new file mode 100755 index 0000000000000000000000000000000000000000..0d40cb743e22a2149118bf09a4c3411db714dbc6 GIT binary patch literal 589 zcmV-T0S5pRI0ssJboU349jb~usU%ETuharXM#;ADpvaJC7nT~*e!vfjg5^F=sbq~OuRsn z3Fy4(3<9QU+tyYH>56>OnAD)9=fm+=oIe`&N33 z#8eNa%BRu?SZr@jXYJl~4!fEFpc=^oEOwH50m3%#`%8MCtoCBKu-NS$OSh{nm&yXJ z?#V({Zt*S*Mt2hn)T=kYbnyAS-?#K++!V%zZoLbDPD(#@E!ATS^UVg4Prhm=P3ACM z*MGL7c6-ET1_gEwFP}{XQoI>U59YnNyWq;I141V?)-fm-oD612sQhtybLavo;f&im ze$LEcxZoGIxpN bNX@*yr~$}k0kUOIT1-oD0O|w)Js#IRh)^Ly literal 0 HcmV?d00001 diff --git a/ext/standard/tests/image/test4pix.swf b/ext/standard/tests/image/test4pix.swf new file mode 100755 index 0000000000000000000000000000000000000000..b1d41c6766fa13f4fe1afe4626011b3efd327fd7 GIT binary patch literal 609 zcmZ<@4`xebVqmCXV2x*B;9tPNz{AMk%=G{N|NRWJ7#J8B87cxxb}PK}lVf0EU`RW| zaK<=|f#H9e(8e6G15Z~A=`k_<2l9a`nM8mD1DG(fJr}lW-rSom?`~iHrgwTP*W$fG zp0kwpsF{A;EPZg!evxziRWYC29QIAWvM0Uvi(~AgBa-jpdX2(0Kf7gDFjZGDo6eeV zI*TFtIYacBn=8-UT++c*(!p>hZO)lA29IDefyzejReX`n%;lg6Kdo10qwp=O;xVk3`S-Hi# zFc{rUEKslB{L;ba^M2pblW|iR7rON>06HoC)U{NPEzCC?L_Ybdoiv%la9#h|j@s=J zn;8_?IlO!}6-e=BEIpX_;_iYgs}2aA)L6%$TyQd&A))fe>CK@Fq=YkW@Ax@0hv9-> z*pf>+tjS)-3KmCQ@3__@vX((@qoLUWHkJiid0X{fhky63&rOidZ*thrF9C`W2L6!D z+|*(PztnPtp#0p#JV8beh5&~DOfo=OW`+nBFNO!%4GfH&eZT~ecIG<62L|SaUbjRT zy4cv5fC{9Vj#)MQXOaV|W?{%+o-l_eupXEqxFO2_F~u-5&wZ3T_W?*fGf;`t%hQ literal 0 HcmV?d00001 -- 2.50.1