#22636 [Opn->Bgs]: the function mysql_query makes errors in PHP variables
| From: | sniper@php.net | Date: | Wed, 12 Mar 2003 02:39:35 +0000 |
| Subject: | #22636 [Opn->Bgs]: the function mysql_query makes errors in PHP variables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-35386@lists.php.net to get a copy of this message | ||
ID: 22636
Updated by: sniper@php.net
Reported By: real_mctl at yahoo dot fr
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: Linux Red Hat 7.2
PHP Version: 4.3.1
New Comment:
Can't reproduce. You're doing something wrong obviously.
Previous Comments:
------------------------------------------------------------------------
[2003-03-11 14:40:06] real_mctl at yahoo dot fr
no need to copy the entire code (huge app).
the code before and after mysql_query is correct.
------------------------------------------------------------------------
[2003-03-11 11:20:17] sniper@php.net
And add a _FULL_ but short example script here, not just 2 lines from
one..
------------------------------------------------------------------------
[2003-03-11 11:19:37] sniper@php.net
huh? What if you remove that @ from the mysql_query() call?
------------------------------------------------------------------------
[2003-03-11 10:21:14] real_mctl at yahoo dot fr
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 this bug report at http://bugs.php.net/?id=22636&edit=1