summaryrefslogtreecommitdiff
path: root/ext/sqlite/tests/bug48679.phpt
blob: 4b0c3f45cf3e35dcc9eaa750ef1661c57927b165 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Bug #48679 (sqlite2 count on unbuffered query causes segfault)
--SKIPIF--
<?php 
if (!extension_loaded("sqlite")) print "skip"; 
?>
--FILE--
<?php

try {
	$x = new sqliteunbuffered;
	count($x);
} catch (SQLiteException $e) {
	var_dump($e->getMessage());
}
echo "Done\n";
?>
--EXPECT--	
string(41) "Row count is not available for this query"
Done