php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #27377 sqlite_query returns false on remark
Submitted: 2004-02-24 08:05 UTC Modified: 2004-03-06 15:28 UTC
From: momo@php.net Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.3.5RC3 OS: windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: momo@php.net
New email:
PHP Version: OS:

 

 [2004-02-24 08:05 UTC] momo@php.net
Description:
------------
on the sqlite_query() documentation mention that:
" ...For other kinds of queries, this function will return a boolean result; TRUE for success or FALSE for failure."

but the above Reproduce code show that on comments the sqlite return false. so we have here sqlite or php or phpdoc bug.

Reproduce code:
---------------
<?
$db = sqlite_open("temp.db");
if(!sqlite_query($db,"-- just a remark")){
  echo "is this intended behavior?";
} else {
  echo "ok";
}
sqlite_close($db);
?>

Expected result:
----------------
is this intended behavior?

Actual result:
--------------
ok

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-24 12:59 UTC] nlopess@php.net
Hi momo!

This is not the place to ask questions :)

Please contact one of the maintainers of the extension (Wez Furlong, Tal Peer, Marcus B?rger or Ilia Alshanetsky) and then tell us the answer :)
 [2004-03-06 15:28 UTC] nlopess@php.net
Wez's response:
"Depends on the behaviour of libsqlite AFAIR.
Why would you care about a query containing only a comment anyway?"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 30 17:01:30 2024 UTC