[Pkg-voip-commits] r6365 - /freepbx/trunk/debian/patches/no_dl_sqlite
tzafrir-guest at alioth.debian.org
tzafrir-guest at alioth.debian.org
Wed Oct 29 18:46:38 UTC 2008
Author: tzafrir-guest
Date: Wed Oct 29 18:46:37 2008
New Revision: 6365
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=6365
Log:
A patch to fix(?) an sqlite3 load issue.
This is a patch I had lying in my local copy. I don't remember exactly
what it was supposed to fix. So commiting it as an unapplied patch for
the record.
Added:
freepbx/trunk/debian/patches/no_dl_sqlite
Added: freepbx/trunk/debian/patches/no_dl_sqlite
URL: http://svn.debian.org/wsvn/pkg-voip/freepbx/trunk/debian/patches/no_dl_sqlite?rev=6365&op=file
==============================================================================
--- freepbx/trunk/debian/patches/no_dl_sqlite (added)
+++ freepbx/trunk/debian/patches/no_dl_sqlite Wed Oct 29 18:46:37 2008
@@ -1,0 +1,26 @@
+--- a/amp_conf/bin/retrieve_conf
++++ b/amp_conf/bin/retrieve_conf
+@@ -248,10 +248,6 @@ switch ($db_engine)
+ if (isset($amp_conf["AMPDBFILE"]) == "")
+ fatal("AMPDBFILE in $amportalconf cannot be blank");
+
+- /* on centos this extension is not loaded by default */
+- if (! extension_loaded('sqlite3.so') )
+- dl('sqlite3.so');
+-
+ if (! @require_once('DB/sqlite3.php') )
+ {
+ die_freepbx("Your PHP installation has no PEAR/SQLite3 support. Please install php-sqlite3 and php-pear.");
+--- a/amp_conf/htdocs/admin/common/db_connect.php
++++ b/amp_conf/htdocs/admin/common/db_connect.php
+@@ -42,10 +42,6 @@ switch ($db_engine)
+ if (isset($amp_conf["AMPDBFILE"]) == "")
+ die_freepbx("AMPDBFILE in /etc/amportal.conf cannot be blank");
+
+- /* on centos this extension is not loaded by default */
+- if (! extension_loaded('sqlite3') )
+- dl('sqlite3.so');
+-
+ if (! @require_once('DB/sqlite3.php') )
+ {
+ die_freepbx("Your PHP installation has no PEAR/SQLite3 support. Please install php-sqlite3 and php-pear.");
More information about the Pkg-voip-commits
mailing list