#49442 [Opn->Fbk]: Some queries crash PHP with mysqli_real_connect()
| From: | pajoye@php.net | Date: | Wed, 02 Sep 2009 13:21:23 +0000 |
| Subject: | #49442 [Opn->Fbk]: Some queries crash PHP with mysqli_real_connect() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141858@lists.php.net to get a copy of this message | ||
ID: 49442
Updated by: pajoye@php.net
Reported By: vrana@php.net
-Status: Open
+Status: Feedback
Bug Type: MySQLi related
Operating System: Windows
PHP Version: 5.3.0
New Comment:
Please provide the create table and a small CSV to reproduce the
problem.
Previous Comments:
------------------------------------------------------------------------
[2009-09-02 12:46:06] vrana@php.net
Backtrace analysis is available at http://www.vrana.cz/phpbug49442.zip
------------------------------------------------------------------------
[2009-09-02 12:32:21] vrana@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