OpenWrt Forum Archive

Topic: problem with php4-cgi + sqlite

The content of this topic has been archived on 2 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi! I'm trying with php4-cgi and sqlite but if i try to open/create a database i have this error (i've seen that from the router)

/usr/bin/php: ./src/btree.c: 702: sqliteBtreeOpen: Assertion `sizeof(ptr)==sizeof(char*)' failed.
2000-01-01 04:18:20: (mod_cgi.c.553) cgi died, pid: 1877

I've tried with php4-fastcgi too and i have the same problem. Is this a sqlite problem or a php problem?

I need to have php + sqlite working on the router.

Thanks.

(Last edited by Fenix-TX on 16 Feb 2007, 20:59)

Forget it, using packages lighttpd, php, libsqlite from RC5 version, works.

hello

I am trying to get sqlite working under php.

I have already tried with php4 and php5.

Has anyone a working setup with PHP(5) with SQLite extension running?

The discussion might have continued from here.