2006-05-09 13:53:39 +00:00
|
|
|
--TEST--
|
2007-05-07 16:50:40 +00:00
|
|
|
Bug #36745 (LOAD DATA LOCAL INFILE doesn't return correct error message)
|
2006-05-09 13:53:39 +00:00
|
|
|
--SKIPIF--
|
2007-08-09 09:43:28 +00:00
|
|
|
<?php
|
|
|
|
require_once('skipif.inc');
|
|
|
|
require_once('skipifconnectfailure.inc');
|
|
|
|
?>
|
2006-05-09 13:53:39 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
include ("connect.inc");
|
|
|
|
|
|
|
|
/*** test mysqli_connect 127.0.0.1 ***/
|
2007-08-09 09:43:28 +00:00
|
|
|
$mysql = mysqli_connect($host, $user, $passwd, $db, $port, $socket);
|
2006-05-09 13:53:39 +00:00
|
|
|
|
|
|
|
$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");
|
|
|
|
?>
|
2006-09-13 15:53:12 +00:00
|
|
|
--EXPECTF--
|
2006-09-26 13:06:13 +00:00
|
|
|
%s(%d) "%s"
|
2006-05-09 13:53:39 +00:00
|
|
|
Done
|