summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2016-04-30 06:05:18 +0000
committerSara Golemon <pollita@php.net>2016-04-30 06:05:18 +0000
commitbdfa6aeebba43eee2c12d60b8add869af447a91a (patch)
tree0bb1bdd7d71c540618727b391b3b859d8c3db35f
parent436b26c70bfe44aff6367d85e1a50e497e58dc05 (diff)
parentd0b952260e7c9794953268ccc34e1b3843b0be68 (diff)
downloadphp-git-bdfa6aeebba43eee2c12d60b8add869af447a91a.tar.gz
Merge branch 'PHP-7.0'
* PHP-7.0: Create temporary sqlite db in test dir rather than cwd (and clean it up)
-rw-r--r--ext/pdo_sqlite/tests/bug70221.phpt5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/pdo_sqlite/tests/bug70221.phpt b/ext/pdo_sqlite/tests/bug70221.phpt
index 1ee2378bc6..bead80d233 100644
--- a/ext/pdo_sqlite/tests/bug70221.phpt
+++ b/ext/pdo_sqlite/tests/bug70221.phpt
@@ -6,10 +6,13 @@ if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
?>
--FILE--
<?php
-$db = new PDO('sqlite:test.sqlite', null, null, array(PDO::ATTR_PERSISTENT => true));
+$dbfile = __DIR__ . '/test.sqlite';
+$db = new PDO('sqlite:'.$dbfile, null, null, array(PDO::ATTR_PERSISTENT => true));
function _test() { return 42; }
$db->sqliteCreateFunction('test', '_test', 0);
print("Everything is fine, no exceptions here\n");
+unset($db);
+unlink($dbfile);
?>
--EXPECT--
Everything is fine, no exceptions here