#22636 [NEW]: the function mysql_query makes errors in PHP variables

From: Date: Tue, 11 Mar 2003 16:21:14 +0000
Subject: #22636 [NEW]: the function mysql_query makes errors in PHP variables
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-35345@lists.php.net to get a copy of this message
From: real_mctl at yahoo dot fr Operating system: Linux Red Hat 7.2 PHP version: 4.3.1 PHP Bug Type: MySQL related Bug description: the function mysql_query makes errors in PHP variables It's simple, my entreprise updated the version of PHP, from 4.1.2 to 4.3.1. The problem is that when the function mysql_query is executing some query, this function overwrite all data on my PHP script even the query itself ! An example (the query is indeed correct) : $query = "select * from table" ; $result = @mysql_query($query,$idCnx) ; The execution of the query crashes, return 1 (don't return a ressource id) and owerwrite the content of $query to an empty value ! Thanks -- Edit bug report at http://bugs.php.net/?id=22636&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22636&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22636&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22636&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22636&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22636&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22636&r=support Expected behavior: http://bugs.php.net/fix.php?id=22636&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22636&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22636&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22636&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22636&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22636&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22636&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22636&r=gnused

« previous php.bugs (#35345) next »