[AYUDA] Bug#504881: php-db: dbase driver does not work - lacks a dbase.so file

Gunnar Wolf gwolf en gwolf.org
Vie Nov 7 13:19:18 CST 2008


Package: php-db
Version: 1.7.13-2
Severity: normal

This package ships with several database drivers, including a
simplistic one for accessing .dbf files, called «dbase». However, the
driver is not usable after installation.

If this helps, please refer to the discussion at [1] for further
details (in Spanish).

Basically, it boils down to the fact that, while your package ships
with a /usr/share/php/DB/dbase.php file, it requires a dbase.so file -
At line 204:

        if (!PEAR::loadExtension('dbase')) {
            return $this->raiseError(DB_ERROR_EXTENSION_NOT_FOUND);
        }
	
This file is not included in the Debian packages (tried with 1.7.6-2
in Etch and with 1.7.13-2 in Sid).

The following code illustrates it:

<?php
require_once("DB.php");
$db = DB::connect("dbase:////tmp/dbase.db?mode=0666",
		  array("debug"=>2,
			"portability" => DB_PORTABILITY_ALL)
		  );
if (PEAR::isError($db)) {
  die($db->getMessage());
 };
$db->disconnect;
?>

$ php test_dbase.php
DB Error: extension not found

The person who had this problem reports that he copied over the
dbase.so file from a Mandriva RPM into /usr/lib/php5/20060613+lfs/ (I
gather he is an Ubuntu user), and it worked correctly; while the files
in that directory are not owned by php-db, this feature should IMHO be
either satisfied by a suitable php5-dbase package, or not compiled in
php-db.

Thanks,

[1] http://groups.google.com/group/ayuda-linux/browse_thread/thread/e8b8d1f1fdf882d1/ad03e20fe881b31e

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-vserver-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php-db depends on:
ii  php-pear                      5.2.6-5    PEAR - PHP Extension and Applicati

php-db recommends no packages.

php-db suggests no packages.

-- no debconf information

-- 
Gunnar Wolf - gwolf en iiec.unam.mx - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF



--~--~---------~--~----~------------~-------~--~----~
Has recibido este mensaje porque estás suscrito a Grupo "ayuda-linux"
de Grupos de Google.
Si quieres publicar en este grupo, envía un mensaje de correo
electrónico a ayuda-linux en googlegroups.com
Para anular la suscripción a este grupo, envía un mensaje a
ayuda-linux-unsubscribe en googlegroups.com
Para obtener más opciones, visita este grupo en
http://groups.google.es/group/ayuda-linux?hl=es. o http://www.compunauta.com/ayuda/
-~----------~----~----~----~------~----~------~--~---




Más información sobre la lista de distribución Ayuda