2006-03-24 12:10:39 +00:00
|
|
|
--TEST--
|
2007-05-07 18:03:01 +00:00
|
|
|
Bug #36745 (LOAD DATA LOCAL INFILE doesn't return correct error message)
|
2006-03-24 12:10:39 +00:00
|
|
|
--SKIPIF--
|
2007-10-10 10:10:59 +00:00
|
|
|
<?php
|
|
|
|
require_once('skipif.inc');
|
|
|
|
require_once('skipifconnectfailure.inc');
|
|
|
|
?>
|
2006-03-24 12:10:39 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
include ("connect.inc");
|
|
|
|
|
|
|
|
/*** test mysqli_connect 127.0.0.1 ***/
|
2007-10-10 10:10:59 +00:00
|
|
|
$mysql = mysqli_connect($host, $user, $passwd, $db, $port, $socket);
|
2006-03-24 12:10: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:52:57 +00:00
|
|
|
--EXPECTF--
|
2007-10-10 10:10:59 +00:00
|
|
|
%s(%d) "%s"
|
2006-03-24 12:10:39 +00:00
|
|
|
Done
|