]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't use system include path
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 28 Jan 2016 19:31:46 +0000 (20:31 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 28 Jan 2016 19:31:46 +0000 (20:31 +0100)
Sometimes systems have _old_ DB_DataObject classes lying around that
get included by default, so we just try to avoid anything that we don't
ship ourselves.

<MMN-o> BeS: I'll commit a patch that will make this issue go away
<BeS> MMN-o: that would be awesome!
<MMN-o> but it might upset bashrc who's working on a Debian package (where you're _supposed_ to include from /usr/php etc. :P)
<MMN-o> but I'll leave a comment along with it

index.php

index a4beec9e5e8a7b08e4fa1bf10329a206b182bb91..de57f1078dc407e2532ad58d1b81750ccf2a8c23 100644 (file)
--- a/index.php
+++ b/index.php
 $_startTime = microtime(true);
 $_perfCounters = array();
 
+// We provide all our dependencies through our own autoload.
+// This will probably be configurable for distributing with
+// system packages (like with Debian apt etc. where included
+// libraries are maintained through repositories)
+set_include_path('.');  // mainly fixes an issue where /usr/share/{pear,php*}/DB/DataObject.php is _old_ on various systems...
+
 define('INSTALLDIR', dirname(__FILE__));
 define('GNUSOCIAL', true);
 define('STATUSNET', true);  // compatibility