1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
--TEST-- iptcembed() and wrong file --FILE-- <?php $file = dirname(__FILE__).'/iptcembed_001.data'; $fp = fopen($file, "w"); fwrite($fp, "-1-1"); fclose($fp); var_dump(iptcembed(-1, $file, -1)); unlink($file); echo "Done\n"; ?> --EXPECTF-- bool(false) Done