mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
c92ae847c7
fix existing ones
17 lines
412 B
PHP
Executable File
17 lines
412 B
PHP
Executable File
--TEST--
|
|
Bug #28112 (sqlite_query() crashing apache on malformed query)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("sqlite")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
if (!($db = sqlite_open(":memory:", 666, $error))) die ("Couldn't open the database");
|
|
sqlite_query($db, "create table frob (foo INTEGER PRIMARY KEY, bar text);");
|
|
$res = @sqlite_array_query($db, "");
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECTF--
|
|
===DONE===
|