diff options
author | SVN Migration <svn@php.net> | 2004-02-27 00:29:11 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2004-02-27 00:29:11 +0000 |
commit | 3d08abbc7722b2eaa9ae9ce3e8fcb5f63dd8abbb (patch) | |
tree | f543149b250e22a54b573aff5a6ae90593c03bba | |
parent | d8e9ed9adab053deb9dfee07d93d0227cd12256e (diff) | |
download | php-git-3d08abbc7722b2eaa9ae9ce3e8fcb5f63dd8abbb.tar.gz |
This commit was manufactured by cvs2svn to create branch 'PECL_4_3'.
-rwxr-xr-x | ext/sqlite/tests/sqlite_027.phpt | 13 |
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) |