summaryrefslogtreecommitdiffstats
path: root/system/core/Output.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-1/+1
feature/exit-status
2013-02-21Disable autoloader call from class_exists() occurences to improve performanceAndrey Andreev1-1/+1
Note: The Driver libary tests seem to depend on that, so one occurence in CI_Loader is left until we resolve that.
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-21[ci skip] Manually apply #2162, #2163Andrey Andreev1-1/+1
2013-01-19Support minify table blockPurwandi1-4/+4
2013-01-18Return spacing on var definitions.Eric Roberts1-6/+6
Signed-off-by: Eric Roberts <eric@cryode.com>
2013-01-12Improve output cache.Eric Roberts1-10/+24
2013-01-05Fix MSIE conditionals regex in minify outputMichael Dodge1-1/+1
Allows IE conditionals like the following to remain unmodified. ```html <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> ``` Credit to joebert regex from http://www.sitepoint.com/forums/showthread.php?696559-Regex-pattern-to-strip-HTML-comments-but-leave-conditonals&s=3eef4ceb0a59b2fdb946fa56220fb6fd&p=4678083&viewfull=1#post4678083
2013-01-05Revert "Fix MSIE conditionals regex in minify output func"Michael Dodge1-921/+921
This reverts commit 8e12c787042396e172a7448c65bd16c3015ffb0f.
2013-01-05Fix MSIE conditionals regex in minify output funcMichael Dodge1-921/+921
Allows IE conditionals like the following to remain unmodified. <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> Credit to joebert regex from http://www.sitepoint.com/forums/showthread.php?696559-Regex-pattern-to-strip-HTML-comments-but-leave-conditonals&s=3eef4ceb0a59b2fdb946fa56220fb6fd&p=4678083&viewfull=1#post4678083
2013-01-01[ci skip] Happy new yearAndrey Andreev1-1/+1
2012-12-28Minor improvements to the Output classAndrey Andreev1-10/+14
2012-12-28issue #2092 : code refinementsAndrew Podner1-6/+4
2012-12-26issue #2092 : Improve/Revise JS and CSS minify method (code refinements)Andrew Podner1-2/+2
2012-12-26issue #2092 : Improve/Revise JS and CSS minify methodAndrew Podner1-1/+1
2012-12-26issue #2092 : Improve/Revise JS and CSS minify methodAndrew Podner1-17/+12
2012-12-25issue #2092 : Improve/Revise JS and CSS minify methodAndrew Podner1-7/+64
2012-12-19[ci skip] Some micro-optimizations and style changesAndrey Andreev1-21/+11
(following PRs #2049, #2079)
2012-12-19fixes #2078: changing type variable to boolean in protected methodAndrew Podner1-6/+6
2012-12-18fixes #2078: formatting / styleguide cleanup (take2)Andrew Podner1-1/+1
2012-12-18fixes #2078: formatting / styleguide cleanupAndrew Podner1-7/+7
2012-12-18fixes #2078: refinement of the minify function for CSS and scripts.Andrew Podner1-134/+134
2012-12-18Issue #2078: refinement of the minify function for CSS and scripts.Andrew Podner1-73/+142
2012-12-17[ci skip] Fix some spacesAndrey Andreev1-1/+1
2012-12-17Merge pull request #2077 from AndrewPodner/developAndrey Andreev1-8/+8
update for Issue #2064 - take 2
2012-12-17update for Issue #2064 (changed docblocks which return $this or only call a ↵Andrew Podner1-8/+8
method that returns $this to @return CI_DB_class_name)
2012-12-17Merge pull request #2069 from willmendesneto/developAndrey Andreev1-4/+6
Minify output in css and javascript code
2012-12-14Minify output in css and javascript codeWill Mendes1-4/+6
Minify output in css and javascript code
2012-11-30Add CI_Output::delete_cache()Andrey Andreev1-0/+39
(an improved version of PR #609)
2012-11-29Added CI_Output::get_header()Andrey Andreev1-1/+34
(an improved version of PR #645) Also fixed get_content_type() to only return the MIME value and created Output library unit tests for both of these methods.
2012-11-12Some micro-optimizationsAndrey Andreev1-2/+2
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-28Fix #1937Andrey Andreev1-1/+1
2012-10-27Merge pull request #1935 from vkeranov/developAndrey Andreev1-2/+1
Remove some extra new lines
2012-10-27[ci skip] Router class DocBlock improvementsAndrey Andreev1-71/+85
2012-10-27Remove extra new linesvkeranov1-2/+1
2012-10-24[ci skip] style and phpdoc-related changes (rel #1295)Andrey Andreev1-1/+2
2012-09-16Better method for getting Output cache file embedded timestampvlakoff1-2/+2
Faster, shorter code
2012-09-16Minor change in Output cache file checkvlakoff1-1/+1
Won't change anything in practice, but robuster (and faster) if ever a cache file would be invalid
2012-07-23output->_display_cache() simplificationsvlakoff1-2/+2
remove an unneeded regex capturing group and an unneeded trim()
2012-07-23output->_display_cache() optimizationvlakoff1-1/+1
faster method to remove the timestamp from the content to be served
2012-06-23If there is no output then no need to try minifying itPhil Sturgeon1-0/+5
2012-06-21Replaced block tag minification regex with a less greedy solution.Phil Sturgeon1-1/+1
2012-06-16Spelling fixes - `wether` to `whether`Alex Bilbie1-1/+1
Interestingly `wether` means a castrated ram in old English
2012-06-16Fix issue #318 + added a default to the switch() in CI_Output::minify()Andrey Andreev1-39/+43
2012-06-15Merge branch 'develop' of github.com:EllisLab/CodeIgniter into developPhil Sturgeon1-14/+13
2012-06-15Merge branch 'feature/minify_output' of ↵Phil Sturgeon1-3/+164
https://github.com/atiredmachine/CodeIgniter into develop
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-07Remove some unnecessary function_exists() checks and some minor improvementsAndrey Andreev1-1/+1