ID: 45154 Updated by: [EMAIL PROTECTED] Reported By: dillama at canada dot com -Status: Open +Status: Bogus Bug Type: MySQL related Operating System: Linux PHP Version: 5.2.6 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. http://dev.mysql.com/doc/refman/5.0/en/comments.html Previous Comments: ------------------------------------------------------------------------ [2008-06-03 05:56:22] dillama at canada dot com Description: ------------ /* can no longer be used as a comment character to ignore all text after this character (seems to only affect 5.2) -- never worked as a comment character in previous version of PHP Reproduce code: --------------- $dbh = @mysql_connect ("localhost", "aaa", "aaa") or die ("Cannot connect to DB"); mysql_select_db("test",$dbh) or die ("Cannot select DB"); $sql="select something from table /* dsfadsfasdfadfasdfasfdmkkn"; $result=mysql_query($sql,$dbh) or die ("Cannot submit query" . mysql_error()); Expected result: ---------------- As similar to PHP 5.1 series, the above statement should run without error. Note, -- should work but have never worked either. Actual result: -------------- SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45154&edit=1