Summary: | dev-lang/php-5.3.3-r1[+sqlite3 -sqlite] but no link with sqlite3 shared object | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Yutaka, GOTOH <gentoo> |
Component: | [OLD] Development | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | bug, gentoo |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Yutaka, GOTOH
2010-10-28 00:13:35 UTC
Does using the object oriented syntax help? I'm able to use php > $m = new SQLite3('my.db'); php > $m->exec('CREATE TABLE bar (bar STRING)'); php > $m->exec("INSERT INTO bar VALUES ('bla')"); php > $r = $m->query('SELECT * FROM bar'); php > $row = $r->fetchArray(); php > var_dump($row); array(2) { [0]=> string(3) "bla" ["bar"]=> string(3) "bla" } just fine. AFAIK sqlite3 doesn't offer procedural access. > Does using the object oriented syntax help? > I'm able to use snip. I confirmed that can use object-oriented syntax in current PHP ebuild, too. and, If I write a program from scratch with PHP and sqlite, I will use new(object-oriented) syntax. > just fine. AFAIK sqlite3 doesn't offer procedural access. but, zabbix is coded by classical(?) methods. As far as I can tell, this bug has nothing to do with the Gentoo distribution of PHP. It seems like the issue is that zabbix doesn't support sqlite3. |