Commit Graph

259 Commits

Author SHA1 Message Date
skodak
1fbdf76ddb MDL-19470 detection of unfinished transactions and transactions interrupted by exceptions 2009-06-12 10:59:28 +00:00
samhemelryk
b37eac91cc lib MDL-19236 Added boilerplates and copyrights 2009-05-26 03:57:03 +00:00
skodak
80e30f2594 MDL-12212 fixed missing globals 2009-05-17 17:07:54 +00:00
skodak
f630a546a6 fixed whitespace 2009-05-11 17:13:45 +00:00
skodak
8dc0ae8fe5 fixed typo 2009-05-11 17:11:29 +00:00
skodak
edaf04d489 MDL-16957 explain why our htaccess is intentionally broken; merged from MOODLE_19_STABLE 2009-05-08 21:30:56 +00:00
tjhunt
cce1b0b9ca exceptions: MDL-16175 new invalid_state_exception
This is for those situations where something basically impossible happens,
like $context->contextlevel not having one of the valid value, and you
want to throw an exception (for example in the default: case of a switch)
rather than just ignoring the possibility.
2009-05-08 07:47:02 +00:00
tjhunt
0ae8f5fcb2 exceptions: MDL-16175 more careful decision whether to use _print_normal/early_error.
It is a mistake to use _print_normal_error if the exception was thrown in print_header - we don't want to try to call print_header again!
2009-05-07 05:38:35 +00:00
tjhunt
75781f879c moodle_page: MDL-12212 ->url and cleanup init of $FULLME, etc. 2009-05-06 08:50:32 +00:00
dongsheng
7022dd3930 "MEMORY/MDL-18540,remove hard-coded php memory limit, added system setting for it, create a function reduce_memory_limit to reduce memroy limit and respect php.ini setting in the meanwhile, merged from 1.9" 2009-03-26 02:09:28 +00:00
stronk7
b10a14a392 MDL-18200 - fix make_upload_directory() was always failing on initial creation of dataroot 2009-02-11 15:26:29 +00:00
skodak
3b09331066 MDL-17458 rewritten installer 2009-02-07 10:20:33 +00:00
skodak
fbf2c91e43 MDL-10275 added fatal PHP config setting test on each page, replaces some tests done in installer 2009-02-01 13:37:42 +00:00
skodak
795a08adb7 MDL-17458 upgrade logging implemented + a lot more refactoring + exceptions implemented in install/upgrade code + lang pack cleanup + some more improvements 2009-01-31 20:07:32 +00:00
skodak
4d6d912a77 MDL-17853 fixed typo, thanks Nicolas Martignoni 2009-01-11 09:44:42 +00:00
skodak
84b88cfde7 MDL-11061 removed wwwroot tests from admin/index.php, now in setuplib.php 2009-01-07 15:31:54 +00:00
skodak
37ccf1fec9 MDL-17802 fixed wwwroot without any subdirectory issue 2009-01-07 09:54:09 +00:00
skodak
991ec2ee51 MDL-17777 fixed request string encoding in ISS 2009-01-06 12:33:32 +00:00
skodak
f1e715ff88 MDL-9276 reverse proxy and normal access can not be mixed - it would valiate the one address per moodle rule, sorry 2009-01-06 10:10:19 +00:00
skodak
21517960b3 MDL-17777 improved IIS rewrite rule 2009-01-05 22:32:15 +00:00
skodak
11e7b506ce MDL-17754, MDL-11061, MDL-9276, MDL-17777, MDL-17787 - various url handling improvemetns; rewritten $FULLME and added $ME, $SCRIPT and $FULLSCRIPT; improved slashargument handling especially for IIS; removed legacy slasharguments functions obsoleted since 1.6; some other refactoring; reverse procy support, ssl appliance support 2009-01-05 21:37:20 +00:00
skodak
ce1526061c MDL-17317 DML: more exceptions - now in connect too 2008-11-22 01:16:52 +00:00
skodak
9214025e3e MDL-17129 basic dml exceptions 2008-11-04 21:50:13 +00:00
skodak
1fe1d10454 MDL-16930 dml: exceptions instead of print_error 2008-10-28 15:21:01 +00:00
skodak
655bbf511d MDL-16669 dml: improved sql_substring(), added unit tests 2008-10-28 15:11:10 +00:00
skodak
5ca18631bc MDL-16029 removing recently added support for $extralocation from print_error(), thanks TIm for pointing out this is not the recommended way anymore 2008-09-02 06:03:37 +00:00
skodak
c018fde2df MDL-16029 Added $extralocations in the function print_error; merged from MOODLE_19_STABLE 2008-09-01 15:31:09 +00:00
skodak
04264aeda4 MDL-15343 mod upgrade savepoints implemented (the xmldb generator is not updated yet) 2008-06-22 23:35:52 +00:00
skodak
eee5d9bb85 MDL-14956 DDL exceptions 2008-06-22 16:51:55 +00:00
skodak
ab130a0b5f MDL-15273 basic read/write perf counter in moodle_database 2008-06-16 21:01:54 +00:00
skodak
251387d087 MDL-14956 basic exception support in Moodle + other minor related refactoring 2008-06-13 17:51:34 +00:00
skodak
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
skodak
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
mjollnir_
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
stronk7
aaa291bcb9 tidy up phpdoc
Merged from MOODLE_19_STABLE
2007-12-20 23:17:42 +00:00
stronk7
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
stronk7
d4775d5495 Merging unmerged code. MDL-11743 and MDL-11671 2007-11-18 17:12:58 +00:00
skodak
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
nicolasconnault
6fc4ad7243 Almost completed the new profiling tool. Just a bit more tweaking :-) 2007-03-20 02:59:34 +00:00
nicolasconnault
b65567f455 Started adding enhanced profiling using APD. 2007-03-20 00:34:05 +00:00
stronk7
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
stronk7
bb48a53735 Some more uses of $CFG->dbfamily. MDL-7061 2007-01-13 00:09:02 +00:00
stronk7
c0fe837eeb Adding support for mysqli. MDL-8113 2007-01-08 19:07:41 +00:00
martinlanghoff
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
martinlanghoff
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
martinlanghoff
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
martinlanghoff
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
martinlanghoff
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
toyomoyo
7ddf8aa59f adding more checks to make sure 1.8 is unicode only MDL-6332 2006-11-09 04:27:44 +00:00
stronk7
b2ad03364b Adding support for the new mssql_n driver
Merged from MOODLE_17_STABLE
2006-10-19 22:07:21 +00:00