Commit Graph

28 Commits

Author SHA1 Message Date
f33e1ed4ae MDL-14679 ok, here is the big patch with new dmllib and ddlib API, some code is already converted, XML db editor works; see tracker for details of regressions and TODOs 2008-05-15 21:40:00 +00:00
6a525ce289 MDL-12983 Installation stops after trying to download Language-Pack - patch by Dan Poltawski; merged from MOODLE_19_STABLE 2008-01-20 17:59:26 +00:00
2f13f94ccc New feature: Command line installer. Credit: Dilan Anurudda.
This was a Google Summer of Code 2007 Project.

This introduces two new files, admin/cliupgrader.php and lib/installlib.php.

It also introduces a new PEAR library, Console_GetOpt.  I have recieved permission from the upstream author to include this in GPL Moodle (essentially dual license it) -  notes in lib/pear.

Most stuff that outputs html during install gets suppressed by the use of a constant.

Run the script like  php admin/cliupgrade.php --help for info.

Note that this all uses strings from install/ rather than lang, so I have updated stringnames.txt accordingly and they'll all be broken until the cronjob that generates them runs.
2008-01-07 01:54:28 +00:00
aaa291bcb9 tidy up phpdoc
Merged from MOODLE_19_STABLE
2007-12-20 23:17:42 +00:00
118e0116f3 Adding the new preconfigure_dbconnection() function
to pre-define some BD/ADOdb stuff before connection. MDL-12657

Merged from MOODLE_19_STABLE
2007-12-20 22:52:55 +00:00
d4775d5495 Merging unmerged code. MDL-11743 and MDL-11671 2007-11-18 17:12:58 +00:00
03cedd6283 MDL-11432 eliminated majority of RecordCount uses, added several missing rs_close() - this should help improve perf on some platforms - Eloy says ;-) 2007-10-10 12:19:27 +00:00
6fc4ad7243 Almost completed the new profiling tool. Just a bit more tweaking :-) 2007-03-20 02:59:34 +00:00
b65567f455 Started adding enhanced profiling using APD. 2007-03-20 00:34:05 +00:00
1d5c40048a Moving set_dbfamily() from dmllib.php to setuplib.php as it's
needed in early stages and we don't want the installer to
depend of dmllib.
2007-01-13 10:44:58 +00:00
bb48a53735 Some more uses of $CFG->dbfamily. MDL-7061 2007-01-13 00:09:02 +00:00
c0fe837eeb Adding support for mysqli. MDL-8113 2007-01-08 19:07:41 +00:00
f917d0ea9b $MCACHE - rework memcached support - some rework on eaccelerator
We now have a wrapper memcached support class to handle
initial connection setup, provide the common denominator
calls, plus getforfill() and friends.

The eaccelerator class now returns false to match memcached. The
downside of this is that we cannot store booleans as a false value
is indistinguishable from a false that indicates error or 'key not
found'.
2006-12-27 22:47:51 +00:00
2142d4924f $MACHE: add support for eaccelerator/memcached, change the $MCACHE calling convention a bit
- this effectively breaks memcached support for the moment
2006-12-27 22:47:14 +00:00
9c967c33fb init_memcached(): only use pconnect if configured to do so
Make pconnections optional - only use pconnect if $CFG->memcachedpconn is
set. In current versions of the memcache client in PECL (v2.0.1),
memcache_pconnect() is buggy and will segfault if reusing a pconnection
to a server that has gone away or restarted.

And hope for a more stable client library in PECL ;-)
2006-12-27 22:45:13 +00:00
419e1d937e Introducing $MCACHE - Memory-based cache
$MCACHE is initially based on core API that is shared between memcached and
turckmmcache/eaccelerator. The core operations are add(), set() and delete()

This initial implementation uses the PECL-based PHP client. Would be trivial
to add support for a PHP-based client.

The $MCACHE facility can be used for DB cache, text filters cache, and possibly
for sessions.
2006-12-27 22:44:39 +00:00
76f3815be9 raise_memory_limit() earlier -- resolves OOM on 64-bit platforms
On 64-bit platforms the in-memory footprint of our libraries is quite a bit
larger than usual, and we hit the 8MB default memory limit before we call
raise_memory_limit(). This patch moves raise_memory_limit() and
get_realsize() to setuplib so we can call them earlier, and moves the
call to _before_ we include the libraries.

On AMD64, for MOODLE_17_STABLE the footprint is about 9.5MB. Diet time? :-)
2006-12-26 22:48:36 +00:00
7ddf8aa59f adding more checks to make sure 1.8 is unicode only MDL-6332 2006-11-09 04:27:44 +00:00
b2ad03364b Adding support for the new mssql_n driver
Merged from MOODLE_17_STABLE
2006-10-19 22:07:21 +00:00
97ab73aad4 Add odbc_msql dbtype to a bunch of places. 2006-10-09 22:55:55 +00:00
0700134df5 Detect Oracle Database Encoding in order to set CFG->unicodedb properly 2006-09-22 17:23:09 +00:00
010f2a3977 Typo! :-( 2006-09-04 22:17:28 +00:00
bf05229983 MSSQL only runs under UTF8 (with the correct ODBTP driver, of course) 2006-09-04 22:16:30 +00:00
d389b12829 create safer .htaccess SC#302 2006-08-28 21:07:43 +00:00
d100b8a04d Make sure .htaccess is created in dataroot, just in case 2006-08-18 09:54:09 +00:00
2544a80de1 PostgreSQL 8 compatibility fix for database character set detecting 2006-04-23 23:39:56 +00:00
7104d80dbc Now setup.php detects is CFG->unicode is not set and examines
DB to detect such value dinamically. Useful for installations
not using the standard installer but manually edited config.php
files.
Little TODO: modify a bit the initial config tables insets to
insert this value, avoiding to call it for each request. Coming
soon (although not mandatory for 1.6beta). Tested against both
MySQL and PostgreSQL with unicode and non-unicode DBs.
2006-03-27 11:24:14 +00:00
d3f9f1f85d Moving some functions to setuplib.php so they are first 2006-01-05 07:08:10 +00:00