summaryrefslogtreecommitdiff
path: root/ext/exif/tests/exif_imagetype_basic-mb.phpt
blob: 936e25777a9cf732fda8367bef2f0630b0fcb489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Check for exif_imagetype default behaviour
--SKIPIF--
<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
--INI--
output_handler=
zlib.output_compression=0
--FILE--
<?php

/* Prototype  : int exif_imagetype  ( string $filename  )
 * Description: Determine the type of an image
 * Source code: ext/exif/exif.c
*/
echo "*** Testing exif_imagetype() : basic functionality ***\n";

var_dump(exif_imagetype(dirname(__FILE__).'/test2私はガラスを食べられます.jpg'));
?>
===Done===
--EXPECT--
*** Testing exif_imagetype() : basic functionality ***
int(2)
===Done===