[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-bugs
Subject:    [DOC-BUGS] [PHP-BUG] Doc #54921 [NEW]: Omit the extra line.
From:       "bimal at sanjaal dot com"<php-bugs () lists ! php ! net>
Date:       2011-05-25 4:51:39
Message-ID: bug-54921 () bugs ! php ! net
[Download RAW message or body]

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


-- 
PHP Documentation Bugs Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic