summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite/tests/gc.phpt
blob: 25407697e6b826d4cf11836b89b738ca8ef5a08c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
GC support for PDO Sqlite driver data
--SKIPIF--
<?php
if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
?>
--FILE--
<?php

class Obj {
	public $a;
	public function callback() { }
}

$obj = new Obj;
$obj->a = new PDO('sqlite::memory:');
$obj->a->sqliteCreateFunction('func1', function() use ($obj) {}, 1);
$obj->a->sqliteCreateAggregate('func2', function() use ($obj) {}, function() use($obj) {});
$obj->a->sqliteCreateCollation('col', function() use ($obj) {});

?>
===DONE===
--EXPECT--
===DONE===