xref: /php-src/ext/pdo_sqlite/tests/gh13991.phpt (revision fda91a05)
1--TEST--
2Fix GH-13984: Buffer size is now checked before memcmp
3--EXTENSIONS--
4pdo_sqlite
5--SKIPIF--
6<?php if (file_exists(getcwd() . '/13991db')) die('skip File "13991db" already exists.'); ?>
7--FILE--
8<?php
9$dbfile = '13991db';
10$db = new PDO('sqlite:' . $dbfile, null, null, [PDO::ATTR_PERSISTENT => true]);
11echo 'done!';
12?>
13--CLEAN--
14<?php
15@unlink(getcwd() . '/13991db');
16?>
17--EXPECT--
18done!
19