PHP 4.0 Bug #2757: MySQL-Connection gets lost at file upload

From: Date: Thu, 18 Nov 1999 17:45:40 +0000
Subject: PHP 4.0 Bug #2757: MySQL-Connection gets lost at file upload
Groups: php.dev 
Request: Send a blank email to php-dev+get-12734@lists.php.net to get a copy of this message
From: volker@vskm.org Operating system: BSD/OS 4.0.1 (VServers) PHP version: 4.0 Beta 2 PHP Bug Type: MySQL related Bug description: MySQL-Connection gets lost at file upload If you try to upload a file with a HTML form any MySQL-Link gets lost. Example: <?php $conn=mysql_connect(HOST,USER,PASSWORD); $db=mysql_select_db(DBNAME,$conn); mysql_query("select max(id) from TABLE",$db); ?> <html> <form enctype="multipart/form-data" method="POST"> <input type="file" name="uploadfile"> <input type="submit"> <form> </html> If you choose a file this error occurs: Warning: 1 is not a MySQL link index in FILENAME on line 4 Without choosing a file everthing is OK. I can't say anything about the configuration because I'm only consumer of vservers.com, but you may look at http://www.vskm.org/errors/phpinfo.php3 where you can see the output of the phpinfo() function. Same error occurs in PHP Version 3.0.7 which is part of the SuSE Linux 6.1 distribution.

« previous php.dev (#12734) next »