Debian Bug report logs - #673313
[php5-sqlite] FastCGI-stderr: PHP Fatal error

Package: php5-sqlite; Maintainer for php5-sqlite is (unknown);

Reported by: Marek Straka <marek@straka.info>

Date: Thu, 17 May 2012 19:39:01 UTC

Severity: normal

Done: Ondřej Surý <ondrej@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#673313; Package php5-sqlite. (Thu, 17 May 2012 19:39:04 GMT) (full text, mbox, link).


Acknowledgement sent to Marek Straka <marek@straka.info>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Thu, 17 May 2012 19:39:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Marek Straka <marek@straka.info>
To: submit@bugs.debian.org
Subject: [php5-sqlite] FastCGI-stderr: PHP Fatal error
Date: Thu, 17 May 2012 21:35:30 +0200
[Message part 1 (text/plain, inline)]
Package: php5-sqlite
Version: 5.4.0-3
Severity: normal

--- Please enter the report below this line. ---

Tested under lighttpd and fastcgi-php with simple script:

<?php
// Create an SQLite DB in the file test.sqlite
  $db = new SQLiteDatabase("test.sqlite");
  $db->query("BEGIN;
          CREATE TABLE dbtest(id INTEGER PRIMARY KEY, article CHAR(50),price FLOAT(10));
          INSERT INTO dbtest (article,price) VALUES('Book1','12.99');
          INSERT INTO dbtest (article,price) VALUES('Book2','15.23');
          COMMIT;");
  $result = $db->query("SELECT * FROM dbtest");

  // Read and show the DB we created
  echo "<PRE>";
  printf("+------------+------------------------------------------+\n");
  printf("| Price       | Article                              |\n");
  printf("+------------+------------------------------------------+\n");
  while ($result->valid()) {
    $row = $result->current();
    printf("| %10s | %-40s |\n",$row['price'],$row['article']);
    $result->next();
  }
  printf("+------------+------------------------------------------+\n");
  echo "</PRE>";
  unset($db);
 phpinfo();
?>

There is always in lighttpd error log:
FastCGI-stderr: PHP Fatal error:  Class 'SQLiteDatabase' not found in /mnt/data/www/test.php on line 3

--- System information. ---
Architecture: i386
Kernel:       Linux 3.2.0-2-686-pae

Debian Release: wheezy/sid
  500 testing         ftp.at.debian.org 

--- Package information. ---
Depends                   (Version) | Installed
===================================-+-============
libc6                      (>= 2.4) | 2.13-32
libsqlite3-0             (>= 3.7.4) | 3.7.11-3
phpapi-20100525+lfs                 | 
php5-common             (= 5.4.0-3) | 5.4.0-3
ucf                                 | 3.0025+nmu3


Package's Recommends field is empty.

Package's Suggests field is empty.
[signature.asc (application/pgp-signature, attachment)]

Reply sent to Lior Kaplan <kaplan@debian.org>:
You have taken responsibility. (Thu, 17 May 2012 20:15:06 GMT) (full text, mbox, link).


Notification sent to Marek Straka <marek@straka.info>:
Bug acknowledged by developer. (Thu, 17 May 2012 20:15:06 GMT) (full text, mbox, link).


Message #10 received at 673313-done@bugs.debian.org (full text, mbox, reply):

From: Lior Kaplan <kaplan@debian.org>
To: Marek Straka <marek@straka.info>, 673313-done@bugs.debian.org
Subject: Re: [php-maint] Bug#673313: [php5-sqlite] FastCGI-stderr: PHP Fatal error
Date: Thu, 17 May 2012 23:12:54 +0300
[Message part 1 (text/plain, inline)]
Version: 5.4.0-3

Hi,

You're trying to run sqlite code under PHP 5.4.0. See
http://www.php.net/manual/en/migration54.removed-extensions.php

You should migrate your code to sqlite3, see
http://www.php.net/manual/en/book.sqlite3.php

Good luck (:

Kaplan
[Message part 2 (text/html, inline)]

Reply sent to Ondřej Surý <ondrej@debian.org>:
You have taken responsibility. (Fri, 18 May 2012 05:51:06 GMT) (full text, mbox, link).


Notification sent to Marek Straka <marek@straka.info>:
Bug acknowledged by developer. (Fri, 18 May 2012 05:51:06 GMT) (full text, mbox, link).


Message #15 received at 673313-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@debian.org>
To: Marek Straka <marek@straka.info>, 673313-done@bugs.debian.org
Subject: Re: [php-maint] Bug#673313: [php5-sqlite] FastCGI-stderr: PHP Fatal error
Date: Fri, 18 May 2012 07:48:42 +0200
Version: 5.4.0-3

sqlite extension has been removed from upstream. You have to use sqlite3.

Thus no bug here.

O.

On Thu, May 17, 2012 at 9:35 PM, Marek Straka <marek@straka.info> wrote:
> Package: php5-sqlite
> Version: 5.4.0-3
> Severity: normal
>
> --- Please enter the report below this line. ---
>
> Tested under lighttpd and fastcgi-php with simple script:
>
> <?php
> // Create an SQLite DB in the file test.sqlite
>  $db = new SQLiteDatabase("test.sqlite");
>  $db->query("BEGIN;
>          CREATE TABLE dbtest(id INTEGER PRIMARY KEY, article CHAR(50),price FLOAT(10));
>          INSERT INTO dbtest (article,price) VALUES('Book1','12.99');
>          INSERT INTO dbtest (article,price) VALUES('Book2','15.23');
>          COMMIT;");
>  $result = $db->query("SELECT * FROM dbtest");
>
>  // Read and show the DB we created
>  echo "<PRE>";
>  printf("+------------+------------------------------------------+\n");
>  printf("| Price       | Article                              |\n");
>  printf("+------------+------------------------------------------+\n");
>  while ($result->valid()) {
>    $row = $result->current();
>    printf("| %10s | %-40s |\n",$row['price'],$row['article']);
>    $result->next();
>  }
>  printf("+------------+------------------------------------------+\n");
>  echo "</PRE>";
>  unset($db);
>  phpinfo();
> ?>
>
> There is always in lighttpd error log:
> FastCGI-stderr: PHP Fatal error:  Class 'SQLiteDatabase' not found in /mnt/data/www/test.php on line 3
>
> --- System information. ---
> Architecture: i386
> Kernel:       Linux 3.2.0-2-686-pae
>
> Debian Release: wheezy/sid
>  500 testing         ftp.at.debian.org
>
> --- Package information. ---
> Depends                   (Version) | Installed
> ===================================-+-============
> libc6                      (>= 2.4) | 2.13-32
> libsqlite3-0             (>= 3.7.4) | 3.7.11-3
> phpapi-20100525+lfs                 |
> php5-common             (= 5.4.0-3) | 5.4.0-3
> ucf                                 | 3.0025+nmu3
>
>
> Package's Recommends field is empty.
>
> Package's Suggests field is empty.
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint



-- 
Ondřej Surý <ondrej@sury.org>




No longer marked as found in versions php5/5.4.0-3. Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Tue, 22 May 2012 07:12:10 GMT) (full text, mbox, link).


No longer marked as fixed in versions 5.4.0-3. Request was from Ondřej Surý <ondrej@debian.org> to control@bugs.debian.org. (Tue, 22 May 2012 07:12:11 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 19 Jun 2012 07:35:29 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 00:50:40 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.