#49442 [Opn->Asn]: Some queries crash PHP with mysqli_real_connect()

From: Date: Wed, 02 Sep 2009 14:08:44 +0000
Subject: #49442 [Opn->Asn]: Some queries crash PHP with mysqli_real_connect()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-141861@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: Assigned Bug Type: MySQLi related Operating System: Windows PHP Version: 5.3.0 -Assigned To: +Assigned To: mysql Previous Comments: ------------------------------------------------------------------------ [2009-09-02 13:27:42] vrana@php.net CREATE TABLE and sample CSV included in http://www.vrana.cz/phpbug49442.zip ------------------------------------------------------------------------ [2009-09-02 13:21:23] pajoye@php.net Please provide the create table and a small CSV to reproduce the problem. ------------------------------------------------------------------------ [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

« previous php.bugs (#141861) next »