xref: /PHP-5.3/ext/sqlite/tests/sqlite_027.phpt (revision 610c7fbe)
1--TEST--
2sqlite: crash inside sqlite_escape_string() & sqlite_udf_encode_binary
3--SKIPIF--
4<?php # vim:ft=php
5if (!extension_loaded("sqlite")) print "skip"; ?>
6--INI--
7memory_limit=-1
8--FILE--
9<?php
10	var_dump(strlen(sqlite_escape_string(str_repeat("\0", 20000000))));
11	var_dump(strlen(sqlite_udf_encode_binary(str_repeat("\0", 20000000))));
12?>
13--EXPECT--
14int(20000002)
15int(20000002)
16