Bug #8547 [NEW]: Documentation is missing a column on "default db structure"
| From: | clouserw at gmail dot com | Date: | Wed, 23 Aug 2006 21:08:49 +0000 |
| Subject: | Bug #8547 [NEW]: Documentation is missing a column on "default db structure" | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8359@lists.php.net to get a copy of this message | ||
From: clouserw at gmail dot com
Operating system: Redhat
Package version:
PHP version: 4.3.9
Package: Documentation
Bug Type: Bug
Bug description: Documentation is missing a column on "default db structure"
Description:
------------
Under the "Usage Example" on this page (
http://pear.php.net/manual/en/package.internationalization.translation2.intro.php
) it claims the default db structure is:
// NB: the default db structure is:
//
// Table "langs" (available languages and meta info)
// +----+------+------+------------+
// | ID | name | meta | error_text |
// +----+------+------+------------+
This is leaving out the
encoding column which is required or some
functions will fail with a fatal error.
Test script:
---------------
<?php
$this->translation =& Translation2::factory('DB', $dsn);
$this->translation->setLang('de');
$this->translation->getLang('de'); // error here
?>
Expected result:
----------------
Not a pear error.
Actual result:
--------------
A PEAR error with the following values:
[level] => 1024
[code] => -9
[message] => Translation2::getLang(): unknown language "en-US". Use
Translation2::setLang() to set a default language.
the function fetchLangs() in /Translation2/Container/db.php requires there
be an encoding column.
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=8547&edit=1
--