|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-05-27 09:01 UTC] derick@php.net
[2004-05-27 17:20 UTC] tim at timcrider dot com
[2004-05-27 17:25 UTC] gschlossnagle@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 14:00:01 2025 UTC |
Description: ------------ If mysql_select_db() fails to select a DB, either the DB is gone or it has been renamed, and you try to run a LOAD DATA INFILE using PHP 5.0.0 RC2, it will seg fault and crash MySQL. PHP continues to run fine, but MySQL crashes. Also, when trying to do this task inside of the mysql monitor and typing in the command with no database selected, it gives the standard: ERROR 1046: No Database Selected I have been able to reproduce this using MySQL 4.1.1 and MySQL 4.0.20. After installing both versions, I recompiled php to use those specific libararies. Reproduce code: --------------- mysql_query("LOAD DATA LOCAL INFILE '/usr/local/data_processor/.working/30953/ALL_SORTED.30953' INTO TABLE `tDWD31HTva`"); Expected result: ---------------- a mysql error, that does not seg fault MySQL. Actual result: -------------- MySQL Seg faults, no php error is produced, and MySQL doesn't log the crash as an error.