ID:               49442
 Updated by:       vr...@php.net
 Reported By:      vr...@php.net
-Status:           Feedback
+Status:           Open
 Bug Type:         MySQLi related
 Operating System: Windows
 PHP Version:      5.3.0


Previous Comments:
------------------------------------------------------------------------

[2009-09-02 13:27:42] vr...@php.net

CREATE TABLE and sample CSV included in
http://www.vrana.cz/phpbug49442.zip

------------------------------------------------------------------------

[2009-09-02 13:21:23] paj...@php.net

Please provide the create table and a small CSV to reproduce the
problem.

------------------------------------------------------------------------

[2009-09-02 12:46:06] vr...@php.net

Backtrace analysis is available at http://www.vrana.cz/phpbug49442.zip

------------------------------------------------------------------------

[2009-09-02 12:32:21] vr...@php.net

Description:
------------
LOAD DATA LOCAL INFILE query together with connecting by
mysqli_real_connect() causes PHP crash. Maybe it is not the single
crashing query but common queries like SELECT or INSERT work.

When I replace mysqli_init() + mysqli_real_connect() by
mysqli_connect() then everything works (no crash).

Reproduce code:
---------------
<?php
$dbh = mysqli_init();
$dbh->real_connect("", "ODBC", "", "cds");
$dbh->query("LOAD DATA LOCAL INFILE 'songs.csv' INTO TABLE songs");
?>


Expected result:
----------------
Query executed OK.

Actual result:
--------------
PHP crashes.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49442&edit=1

Reply via email to