1--TEST-- 2Bug #48679 (sqlite2 count on unbuffered query causes segfault) 3--SKIPIF-- 4<?php 5if (!extension_loaded("sqlite")) print "skip"; 6?> 7--FILE-- 8<?php 9 10try { 11 $x = new sqliteunbuffered; 12 count($x); 13} catch (SQLiteException $e) { 14 var_dump($e->getMessage()); 15} 16echo "Done\n"; 17?> 18--EXPECT-- 19string(41) "Row count is not available for this query" 20Done 21