php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #54073 The sqlite_key() documentation should mentioned procedural usage
Submitted: 2011-02-22 17:47 UTC Modified: 2012-11-12 09:25 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: php at trafex dot nl Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at trafex dot nl
New email:
PHP Version: OS:

 

 [2011-02-22 17:47 UTC] php at trafex dot nl
Description:
------------
While testing the PHP code during atestfest we found that we couldn't call sqlite_key(). After some more testing and searching it turned up it was a bug: http://bugs.php.net/bug.php?id=31510

As said in the bug report, the bug isn't going to be fixed. To keep the documentation clear this should be mentioned in a NOTE or something.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-17 20:00 UTC] danbrown@php.net
-Status: Open +Status: Analyzed
 [2011-05-17 20:00 UTC] danbrown@php.net
Do you recall which version of PHP you were using for the test?  As noted on the 
manual page for sqlite_key(), it could not be called as a procedural function 
prior to PHP 5.0.4.
 [2011-05-18 09:06 UTC] php at trafex dot nl
It was the latests PHP5.3 version available at the moment.
 [2011-12-04 06:19 UTC] frozenfire@php.net
-Status: Analyzed +Status: Verified -Assigned To: +Assigned To: frozenfire
 [2011-12-04 06:19 UTC] frozenfire@php.net
Very curious indeed. I checked it myself with 5.3.8, and sqlite_key is no longer 
a defined function. However, I'm not seeing where in the extension sources this 
is. I wonder if it's a result of someone moving files about in anticipation of 
the extension being relegated back to PECL?
 [2012-01-07 18:27 UTC] frozenfire@php.net
-Assigned To: frozenfire +Assigned To:
 [2012-11-12 09:25 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=328319
Log: Change the documentation of sqlite_key() to reflect that it can only be called
as an instance method, unlike every other SQLite function. The previous
changelog was, in fact, completely incorrect.

This is absolutely not the right way to do this, and anyone who has a better
idea for how to represent this case is welcome to commit their own fix.
Unfortunately, because the OO API is just a set of method aliases for the
procedural API and it's infrequently used, we don't have the class/method
structure that we have in (say) mysqli, and attempting to retrofit it now would
result in all of the URLs for the SQLite function pages breaking.

Ugh.

Fixes doc bug #54073 (The sqlite_key() documentation should mentioned
procedural usage), for a very low value of fixes.
 [2012-11-12 09:25 UTC] aharvey@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2012-11-12 09:25 UTC] aharvey@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: aharvey
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 03:00:02 2026 UTC