summaryrefslogtreecommitdiffstats
path: root/system/core/CodeIgniter.php
AgeCommit message (Collapse)AuthorFilesLines
2013-02-23Updated exit codes as constant valuesDaniel Hunsaker1-1/+1
Re-allocated exit status codes according to three references, which follow: BSD sysexits.h:http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits GNU recomendations:http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html Bash scripting:http://tldp.org/LDP/abs/html/exitcodes.html The GNU recommendations stem from and expand upon the standard C/C++ library (stdlibc) definitions, while also suggesting some best-practice conventions which happen to prevent exit status code collisions with bash, and probably other shells. The re-allocated codes are now mapped to constant values, set in *application/config/constants.php*, and used throughout the CodeIgniter core. They would additionally be used in *index.php*, but the constants file hasn't been loaded at that point, so the integer values are used instead, and a comment follows each such use with amplifying information on why that particular value was selected. Finally, the errors documentation has been updated accordingly. Signed-off-by: Daniel Hunsaker <danhunsaker@gmail.com>
2013-02-22Merge branch 'develop' of github.com:EllisLab/CodeIgniter into ↵Daniel Hunsaker1-4/+4
feature/exit-status
2013-02-21Disable autoloader call from class_exists() occurences to improve performanceAndrey Andreev1-3/+3
Note: The Driver libary tests seem to depend on that, so one occurence in CI_Loader is left until we resolve that.
2013-01-28Remove unnecessary defined('ENVIRONMENT') checksAndrey Andreev1-1/+1
As suggested in issue #2134 & PR #2149
2013-01-25Updated all cases of exit() to return a valid codeDaniel Hunsaker1-1/+1
Specific codes are as follows, but can easily be changed if a different order/breakdown makes more sense: - 0: Success; everything executed as planned - 1: Configuration Error; something is wrong with/in the configuration file(s) - 2: Class Not Found; what it says - 3: Driver Method Unsupported; the method you're trying to use on a Driver doesn't exist - 4: File Not Found; 404 error - 5: Database Error; something is broken in the database somewhere - 6: Invalid Input; the user attempted to submit a request with invlaid characters in 1+ key names 7 through 26 are reserved for future use - 27: Generic Error; generated by show_error() when the status code is >= 100 28 through 127 are errors generated by user applications, normally by using show_error() with a status code below 100 128 through 254 should not be used by applications, as they are reserved by system-level functions - 255: PHP Fatal Error; automatically generated by PHP for fatal errors, and therefore not allowed for our use Status codes below 100 are shifted up by 28 to place them in the user error range. It may make more sense to have these codes left alone and instead shift the CI errors into the 101 through 127 space, but that's not what I opted for here. It would probably also be a good idea to replace the hard-coded numbers with constants or some such, but I was in a bit of a hurry when I made these changes, so I didn't look around for the best place to do this. With proper guidance, I could easily amend this commit with another that uses such constant values. Signed-off-by: Daniel Hunsaker <danhunsaker@gmail.com>
2013-01-01[ci skip] Happy new yearAndrey Andreev1-1/+1
2012-11-05Revert usage of is_callable() in system/core/CodeIgniter.phpAndrey Andreev1-1/+5
Seems to be causing issues (see #1970). Also updated the Controller docs, mainly to include an important note related to #1967.
2012-11-02Bootstrap improvementsAndrey Andreev1-39/+33
- Don't instantiate the CI singleton twice. - General clean-up. - Fix issue #953.
2012-11-02Fix a directory/404_override bug and some routing-related optimizationsAndrey Andreev1-6/+10
2012-11-02Router-related optimizationsAndrey Andreev1-9/+4
An improved version of changes suggesed in PR #1352, and more specifically: https://github.com/sourcejedi/CodeIgniter/commit/8f7d2dfe42bd8543981c0f295e391e433d82fd42 https://github.com/sourcejedi/CodeIgniter/commit/d2de251c092d9d822fc4898e3681b64e9c74dd2a (thanks again @sourcejedi)
2012-11-01Manually apply PR #1594 (fixing phpdoc page-level generation/warnings)Andrey Andreev1-1/+2
Also partially fixes issue #1295, fixes inconsistencies in some page-level docblocks and adds include checks in language files.
2012-10-27Remove extra new linesvkeranov1-1/+0
2012-10-27Docblock improvements to the Config library and remove ↵Andrey Andreev1-2/+5
CI_Config::_assign_to_config() Existance of _assign_to_config() is pointless as this method consists just of a foreach calling CI_Config::set_item() and is only called by CodeIgniter.php - moved that foreach() in there instead.
2012-10-11Replace a few require() uses with require_once() (should fix issue #1872)Andrey Andreev1-1/+1
2012-06-12Change file permissions for system/core/*.php and system/database/DB.php so ↵Andrey Andreev1-0/+0
that they don't differ from the rest
2012-06-05Replace set_magic_quotes_runtime() with an ini_set() callAndrey Andreev1-1/+1
2012-06-05Fix a magic_quotes-related bug and changed the default parameter value for ↵Andrey Andreev1-1/+1
is_php()
2012-06-04Revert/optimize some changes from ed944a3c70a0bad158cd5a6ca5ce1f2e717aff5dAndrey Andreev1-1/+1
2012-06-02Replaced `==` with `===` and `!=` with `!==` in /system/coreAlex Bilbie1-2/+2
2012-05-23Merge pull request #1367 from PawelDecowski/developPhil Sturgeon1-11/+0
Remove set_time_limit() call. Fixes #1346
2012-05-22Move closing of database connection to CI_DB_driver->__destruct - #1376Root1-10/+0
2012-05-17Remove set_time_limit() call. CodeIgniter should respect php.ini setting.Pawel Decowski1-11/+0
2012-05-17Cleanup the core classesAndrey Andreev1-1/+1
2012-04-28Important spelling fix to CodeIgniter.php fileChris Berthe1-1/+1
2012-04-23Use tabs to separate class propertiesTimothy Warren1-1/+1
2012-04-23Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into patchTimothy Warren1-7/+7
2012-04-23Merge upstreamTimothy Warren1-3/+1
2012-04-23Fix issue #1265Andrey Andreev1-8/+8
2012-04-19Normalize comments in core filesTimothy Warren1-0/+7
2012-03-26Make _initialize() a constructor and rename _call_hook() to call_hook in the ↵Andrey Andreev1-7/+7
Hooks class
2012-03-09Bumped CodeIgniter's PHP requirement to 5.2.4.Phil Sturgeon1-1/+1
Yes I know PHP 5.4 just came out, and yes I know PHP 5.3 has lovely features, but there are plenty of corporate systems running on CodeIgniter and PHP 5.3 still is not widely supported enough. CodeIgniter is great for distributed applications, and this is the highest we can reasonably go without breaking support. PHP 5.3 will most likely happen in another year or so. Fingers crossed on that one anyway...
2012-01-10Fix a bug in system/core/CodeIgniter.phpAndrey Andreev1-1/+1
2012-01-08Replace AND with &&Andrey Andreev1-6/+6
2012-01-07Improve core/CodeIgniter.phpAndrey Andreev1-23/+15
2012-01-02Updating copyright date to 2012Greg Aker1-1/+1
2011-12-27Revert "Abstracting the loading of files in the config directory depending ↵Greg Aker1-1/+8
on environments." This reverts commit 5c1aa631c5f5ec2f6b75ba1158178418e50ba11a.
2011-12-25Abstracting the loading of files in the config directory depending on ↵Greg Aker1-8/+1
environments.
2011-12-01Removed `$_SERVER['REMOTE_ADDR']` following feedbackJack Webb-Heller1-1/+1
2011-12-01CodeIgniter ignores the set config value for Maximum Execution Time, ↵Jack Webb-Heller1-2/+6
overwriting it with its own value of 300 seconds. Whilst this is sensible in the vast majority of situations (browsers), when running a script from CLI, it is likely that execution times may need to be longer. Therefore, don't override the time limit if being run from the CLI - instead default back to PHP's own configuration.
2011-10-20adding new license file (OSL 3.0) and updating readme to ReSTDerek Jones1-5/+17
added notice of license to all source files. OSL to all except the few files we ship inside of the application folder, those are AFL. Updated license in user guide. incrementing next dev version to 3.0 due to licensing change
2011-09-30cleanup docblocks, remove dated CI_CORE constantfreewil1-20/+0
2011-08-26Changed CI_VERSION to represent develop branchEric Barnes1-1/+1
2011-08-15Merge branch 'develop' of github.com:philsturgeon/codeigniter-reactor into ↵Phil Sturgeon1-0/+12
develop
2011-08-14Added some docs to CI core filesDavid Behler1-0/+12
2011-08-14Fixed conflict.Phil Sturgeon1-9/+11
2011-08-14Added some docs to CI core filesroot1-0/+13
2011-08-13Got changelog in sync with changes after v2.0.3 release branch merged a ↵Phil Sturgeon1-1/+1
bunch of stuff. Anyone moving a develop change into v2.0.3 should move the changelog item too.
2011-08-13Bumped the version number. Can somebody with a working find and replace fix ↵Phil Sturgeon1-1/+1
up the docs?
2011-08-10404_override route now works for missing controllers in subdirectories and ↵Shane Pearson1-1/+19
functions that fail the security check in CodeIgniter.php
2011-07-02backed out 648b42a75739, which was a NON-trivial whitespace commit. It ↵Derek Jones1-34/+34
broke the Typography class's string replacements, for instance