xref: /PHP-5.4/ext/pdo_sqlite/tests/bug60104.phpt (revision cacf3639)
1--TEST--
2Bug #60104 (Segmentation Fault in pdo_sqlite when using sqliteCreateFunction())
3--SKIPIF--
4<?php
5if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
6?>
7--FILE--
8<?php
9function setUp()
10{
11    $handler = new PDO( "sqlite::memory:" );
12    $handler->sqliteCreateFunction( "md5", "md5", 1 );
13    unset( $handler );
14}
15
16setUp();
17setUp();
18echo "done";
19?>
20--EXPECTF--
21done
22