~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/sqlite/tests/sqlite_027.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
sqlite: crash inside sqlite_escape_string() & sqlite_udf_encode_binary
 
3
--SKIPIF--
 
4
<?php # vim:ft=php
 
5
if (!extension_loaded("sqlite")) print "skip"; ?>
 
6
--INI--
 
7
memory_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--
 
14
int(20000002)
 
15
int(20000002)