diff options
author | Antony Dovgal <tony2001@php.net> | 2007-05-10 12:23:25 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-05-10 12:23:25 +0000 |
commit | c69b76dc521590796c274ae43ed986942a216949 (patch) | |
tree | a801af559f94c899c00f37df3dabe2635d8543c2 /ext/standard/tests/image | |
parent | f9f456a9cd58ae8eda8b62d37da7a6dea913fd4a (diff) | |
download | php-git-c69b76dc521590796c274ae43ed986942a216949.tar.gz |
MFH: fix segfault in iptcembed()
Diffstat (limited to 'ext/standard/tests/image')
-rw-r--r-- | ext/standard/tests/image/iptcembed_001.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/standard/tests/image/iptcembed_001.phpt b/ext/standard/tests/image/iptcembed_001.phpt new file mode 100644 index 0000000000..feadddea1b --- /dev/null +++ b/ext/standard/tests/image/iptcembed_001.phpt @@ -0,0 +1,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 |