|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-06-03 13:32 UTC] msaraujo@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 06:00:01 2025 UTC |
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