summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2004-02-27 00:29:11 +0000
committerSVN Migration <svn@php.net>2004-02-27 00:29:11 +0000
commit3d08abbc7722b2eaa9ae9ce3e8fcb5f63dd8abbb (patch)
treef543149b250e22a54b573aff5a6ae90593c03bba
parentd8e9ed9adab053deb9dfee07d93d0227cd12256e (diff)
downloadphp-git-3d08abbc7722b2eaa9ae9ce3e8fcb5f63dd8abbb.tar.gz
This commit was manufactured by cvs2svn to create branch 'PECL_4_3'.
-rwxr-xr-xext/sqlite/tests/sqlite_027.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/sqlite/tests/sqlite_027.phpt b/ext/sqlite/tests/sqlite_027.phpt
new file mode 100755
index 0000000000..52c17b309b
--- /dev/null
+++ b/ext/sqlite/tests/sqlite_027.phpt
@@ -0,0 +1,13 @@
+--TEST--
+sqlite: crash inside sqlite_escape_string() & sqlite_udf_encode_binary
+--SKIPIF--
+<?php # vim:ft=php
+if (!extension_loaded("sqlite")) print "skip"; ?>
+--FILE--
+<?php
+ var_dump(strlen(sqlite_escape_string(str_repeat("\0", 20000000))));
+ var_dump(strlen(sqlite_udf_encode_binary(str_repeat("\0", 20000000))));
+?>
+--EXPECT--
+int(20000002)
+int(20000002)