1--TEST--
2Test getimagesize() function : basic functionality - load APP info from jpeg.
3--FILE--
4<?php
5/* Prototype  : proto array getimagesize(string imagefile [, array info])
6 * Description: Get the size of an image as 4-element array
7 * Source code: ext/standard/image.c
8 * Alias to functions:
9 */
10
11/*
12 * Load APP info from jpeg
13 */
14
15$arr['this'] = "will";
16$arr['all'] = "be destroyed!";
17$arr['APP1'] = "and this too";
18
19getimagesize( dirname(__FILE__)."/testAPP.jpg", $arr);
20
21foreach ($arr as $key => $value) {
22	echo "$key - length: ". strlen($value) ."; md5: " . md5($value) .  "\n" ;
23}
24
25?>
26===DONE===
27--EXPECT--
28APP1 - length: 1717; md5: 02cbf4ba6640c131422483138c968516
29APP2 - length: 7275; md5: f5036ccca2031e8bf932bcbd4aca4355
30APP13 - length: 42; md5: 2202998bd05e78bcb419f08c070d6f61
31===DONE===
32