Doc #54921 [NEW]: Omit the extra line.

From: Date: Wed, 25 May 2011 04:51:39 +0000
Subject: Doc #54921 [NEW]: Omit the extra line.
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6654@lists.php.net to get a copy of this message
From: Operating system: Windows PHP version: 5.3.6 Package: Documentation problem Bug Type: Documentation Problem Bug description:Omit the extra line. Description: ------------ --- From manual page: http://www.php.net/function.mysql-query#Parameters --- The following is not true: The query string should not end with a semicolon. Please correct the documentation. It works even with or without the ending semicolon. We can run the query that end with semicolons. PHP should not try to complete the queries itself with the semicolon. Test script: --------------- <?php error_reporting(E_ALL|E_STRICT); mysql_connect('localhost', 'root', 'toor'); mysql_select_db('test'); $rs = mysql_query('SELECT NOW() time;'); # Query with semicolon at the end $current = mysql_fetch_assoc($rs); echo $current['time']; ?> Expected result: ---------------- Query with semicolon works well. Actual result: -------------- none -- Edit bug report at http://bugs.php.net/bug.php?id=54921&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54921&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54921&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54921&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54921&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54921&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54921&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54921&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54921&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54921&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54921&r=support Expected behavior: http://bugs.php.net/fix.php?id=54921&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54921&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54921&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54921&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54921&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54921&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54921&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54921&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54921&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54921&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54921&r=mysqlcfg

« previous php.doc.bugs (#6654) next »