mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
bb1ec86f9d
(calling ini_set('magic_....') returns 0|false - get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false - set_magic_quotes_runtime raises an E_CORE_ERROR
24 lines
694 B
PHP
24 lines
694 B
PHP
--TEST--
|
|
Check for exif_thumbnail
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
|
|
--INI--
|
|
output_handler=
|
|
zlib.output_compression=0
|
|
--FILE--
|
|
<?php
|
|
/*
|
|
test1.jpg is a 1*1 image that does not contain any Exif/Comment information
|
|
test2.jpg is the same image but contains Exif/Comment information and a
|
|
copy of test1.jpg as a thumbnail.
|
|
*/
|
|
$infile = dirname(__FILE__).'/test1.jpg';
|
|
echo md5_file($infile).'_'.filesize($infile);
|
|
$thumb = exif_thumbnail(dirname(__FILE__).'/test2.jpg');
|
|
echo " == ";
|
|
echo md5($thumb).'_'.strlen($thumb);
|
|
echo "\n";
|
|
?>
|
|
--EXPECT--
|
|
27bbfd9fc10e1e663d749f5225447905_523 == 27bbfd9fc10e1e663d749f5225447905_523
|