mirror of
https://github.com/php/php-src.git
synced 2026-03-25 08:42:29 +01:00
Added test for #60104
This commit is contained in:
23
ext/pdo_sqlite/tests/bug60104.phpt
Normal file
23
ext/pdo_sqlite/tests/bug60104.phpt
Normal file
@@ -0,0 +1,23 @@
|
||||
--TEST--
|
||||
Bug #60104 (Segmentation Fault in pdo_sqlite when using sqliteCreateFunction())
|
||||
--XFAIL--
|
||||
see bug #60104, not fix yet
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
function setUp()
|
||||
{
|
||||
$handler = new PDO( "sqlite::memory:" );
|
||||
$handler->sqliteCreateFunction( "md5", "md5", 1 );
|
||||
unset( $handler );
|
||||
}
|
||||
|
||||
setUp();
|
||||
setUp();
|
||||
echo "done";
|
||||
?>
|
||||
--EXPECTF--
|
||||
done
|
||||
Reference in New Issue
Block a user