spotweb/spotweb — Issue #1300: Call to undefined function sqlite_escape_string()
Author: LeonB
Created: 2011-12-04 15:15:36+00:00
State: open

Bij draaien van php upgrade-db.php

Schema update done
Updating settings
Settings update done
PHP Fatal error: Call to undefined function sqlite_escape_string() in /home/leon/src/spotweb/spotweb.git/lib/dbeng/dbeng_pdo_sqlite.php on line 18

sqlite_escape_string() zit in de nieuwste ubuntu niet meer in de php sqlite module. Volgens mij alleen nog maar sqlite3 functies. Dus ik heb sqlite_escape_string() vervangen door SQLite3::escapeString:

function safe($s) {
return SQLite3::escapeString($s);
} # safe