iliaa Thu Nov 7 11:38:57 2002 EDT
Added files:
/php4/ext/standard/tests/image test13pix.swf test4pix.swf
Modified files:
/php4/ext/standard/tests/image getimagesize.phpt
Log:
Added swf and swc (compressed swf) test cases and added 'bits' portion to
the expected bmp test results.
Index: php4/ext/standard/tests/image/getimagesize.phpt
diff -u php4/ext/standard/tests/image/getimagesize.phpt:1.1
php4/ext/standard/tests/image/getimagesize.phpt:1.2
--- php4/ext/standard/tests/image/getimagesize.phpt:1.1 Sun Nov 3 08:52:45 2002
+++ php4/ext/standard/tests/image/getimagesize.phpt Thu Nov 7 11:38:57 2002
@@ -23,10 +23,23 @@
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]=>
int(1)
@@ -34,6 +47,8 @@
int(6)
[3]=>
string(20) "width="1" height="1""
+ ["bits"]=>
+ int(24)
["mime"]=>
string(9) "image/bmp"
}
@@ -144,6 +159,19 @@
["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 @@
["mime"]=>
string(10) "image/tiff"
}
-}
\ No newline at end of file
+}
Index: php4/ext/standard/tests/image/test13pix.swf
+++ php4/ext/standard/tests/image/test13pix.swf
CWSa x��``�g`�_�������������*Kv+���c`a`H;�p�8�������OW�11�g !&
� &�lυ��7��˻�W���ʵx���,�=j�7K��_�\U��6�}ӯ�I�����仸^�p��n�L�̦���b�~�}���37�t0�t0�I�s&�A%�A��-������<��L�@�
��
�i��V�|јԠ����V�V��t��)�GTD�pNL�`v�١�Vz��T�ʧ�XloNg��u�� ��,v�z�6��Kz���b����K��-�����BVn�.
Fwԫ7�t���߷�d�ƅn��NJ?u-�c���O�j'M�0\���v{�fv/�MR�K潸��ʪB'5�1(�
fH��qzs�)��;~��a����k�ױ��Q�;����eP�hhv��e�V�V���߽�s����K�"��?$37�X�/�\!(?71O�у!��?�
P��!�ŋ�Av#g(j�3|``^�uK����� �@��U�&9�j�� sx�)���S
3��G�s��3�Hͼ���f�eNZLKp � =�=
Index: php4/ext/standard/tests/image/test4pix.swf
+++ php4/ext/standard/tests/image/test4pix.swf
FWSa x _ � C���� � xQt�
�N f� �3f �f�l��. � � 2=�V����D����.˵
��I�"�&5����Ώz\�@��Լg}�A]���^�2W)�Fkx{x5��5� [� [�٩�٤�t� �f��f $g $sF` � � � 5f��x-�(��*.L�} ˅��@�$�
�cA��-���Hy��=ٗ��Δ@�$� �cA��-���Py��>.P<�t��J УF��E=
$�
��:F_D 2�ap'{��@L�Mu�^��F�� 5g��eH�ـ�M&�4� �/�}�X�
JL�ph��n�ݠԪ��(� #p�S `y�˳U�h۸��l �NV��,cJ�p�Z� &�16��*n�.�W�Km`o�@� Times
New RomanH P � XJ �k� � f�� � �J� � ��:�� h��
Q � f��\��m�� � �ע�� �8�`@