1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00
Files
archived-php-src/ext/mysqli/tests/bug36745.phpt
T
Georg Richter 4508ae73f7 merge from 5.2
2006-05-09 13:53:39 +00:00

24 lines
619 B
PHP

--TEST--
bug #36745 : LOAD DATA LOCAL INFILE doesn't return correct error message
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
include ("connect.inc");
/*** test mysqli_connect 127.0.0.1 ***/
$mysql = mysqli_connect($host, $user, $passwd, "test");
$mysql->query("DROP TABLE IF EXISTS litest");
$mysql->query("CREATE TABLE litest (a VARCHAR(20))");
$mysql->query("LOAD DATA LOCAL INFILE 'filenotfound' INTO TABLE litest");
var_dump($mysql->error);
$mysql->close();
printf("Done");
?>
--EXPECT--
string(31) "Can't find file 'filenotfound'."
Done