summaryrefslogtreecommitdiff
path: root/ext/standard/tests/image
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-05-10 12:23:25 +0000
committerAntony Dovgal <tony2001@php.net>2007-05-10 12:23:25 +0000
commitc69b76dc521590796c274ae43ed986942a216949 (patch)
treea801af559f94c899c00f37df3dabe2635d8543c2 /ext/standard/tests/image
parentf9f456a9cd58ae8eda8b62d37da7a6dea913fd4a (diff)
downloadphp-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.phpt18
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