cis notified web server of a job completion; upload form interface and validation...
[living-lab-site.git] / user_guide / changelog.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3 <head>
4
5 <style type='text/css' media='all'>@import url('userguide.css');</style>
6 <link rel='stylesheet' type='text/css' media='all' href='userguide.css' />
7
8 <script type="text/javascript" src="./nav/nav.js"></script>
9 <script type="text/javascript" src="./nav/prototype.lite.js"></script>
10 <script type="text/javascript" src="./nav/moo.fx.js"></script>
11 <script type="text/javascript" src="./nav/user_guide_menu.js"></script>
12
13 <meta http-equiv='expires' content='-1' />
14 <meta http-equiv= 'pragma' content='no-cache' />
15 <meta name='robots' content='all' />
16 <meta name='author' content='ExpressionEngine Dev Team' />
17 <meta name='description' content='CodeIgniter User Guide' />
18
19 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
20 <title>Change Log : CodeIgniter User Guide</title>
21
22 </head>
23 <body>
24
25 <!-- START NAVIGATION -->
26 <div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('./');</script></div></div>
27 <div id="nav2"><a name="top"></a><a href="javascript:void(0);" onclick="myHeight.toggle();"><img src="./images/nav_toggle_darker.jpg" width="154" height="43" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div>
28 <div id="masthead">
29 <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
30 <tr>
31 <td><h1>CodeIgniter User Guide Version 2.0.2</h1></td>
32 <td id="breadcrumb_right"><a href="./toc.html">Table of Contents Page</a></td>
33 </tr>
34 </table>
35 </div>
36 <!-- END NAVIGATION -->
37
38
39 <!-- START BREADCRUMB -->
40 <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
41 <tr>
42 <td id="breadcrumb">
43 <a href="http://codeigniter.com/">CodeIgniter Home</a> &nbsp;&#8250;&nbsp;
44 <a href="index.html">User Guide Home</a> &nbsp;&#8250;&nbsp;
45 Change Log
46 </td>
47 <td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="codeigniter.com/user_guide/" />Search User Guide&nbsp; <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" />&nbsp;<input type="submit" class="submit" name="sa" value="Go" /></form></td>
48 </tr>
49 </table>
50 <!-- END BREADCRUMB -->
51
52 <br clear="all" />
53
54
55 <!-- START CONTENT -->
56 <div id="content">
57
58 <h1>Change Log</h1>
59
60 <p>The <img src="images/reactor-bullet.png" width="16" height="16" alt="Reactor Marker" /> indicates items that were contributed to CodeIgniter via CodeIgniter Reactor.</p>
61
62 <h2>Version 2.0.2</h2>
63 <p>Release Date: April 7, 2011<br />
64 Hg Tag: v2.0.2</p>
65
66 <ul>
67         <li>General changes
68                 <ul>
69                         <li>The <a href="./libraries/security.html">Security library</a> was moved to the core and is now loaded automatically. Please remove your loading calls.</li>
70                         <li>The CI_SHA class is now deprecated. All supported versions of PHP provide a <kbd>sha1()</kbd> function.</li>
71                         <li class="reactor"><kbd>constants.php</kbd> will now be loaded from the environment folder if available.</li>
72                         <li class="reactor">Added language key error logging</li>
73                         <li class="reactor">Made Environment Support optional. Comment out or delete the constant to stop environment checks.</li>
74                         <li class="reactor">Added Environment Support for Hooks.</li>
75                         <li class="reactor">Added CI_ Prefix to the <a href="libraries/caching.html">Cache driver</a>.</li>
76                         <li class="reactor">Added <a href="./general/cli.html">CLI usage</a> documentation.</li>
77                 </ul>
78         </li>
79         <li>Helpers
80                 <ul>
81                         <li>Removed the previously deprecated <kbd>dohash()</kbd> from the <a href="./helpers/security_helper.html">Security helper</a>; use <kbd>do_hash()</kbd> instead.</li>
82                         <li class="reactor">Changed the 'plural' function so that it doesn't ruin the captalization of your string. It also take into consideration acronyms which are all caps.</li>
83                 </ul>
84         </li>
85         <li>Database
86                 <ul>
87                         <li class="reactor"><kbd>$this->db->count_all_results()</kbd> will now return an integer instead of a string.</li>
88                 </ul>
89         </li>
90 </ul>
91
92 <h3>Bug fixes for 2.0.2</h3>
93 <ul>
94         <li class="reactor">Fixed a bug (Reactor #145) where the Output Library had parse_exec_vars set to protected.</li>
95         <li class="reactor">Fixed a bug (Reactor #80) where is_really_writable would create an empty file when on Windows or with safe_mode enabled.</li>
96         <li class="reactor">Fixed various bugs with User Guide.</li>
97         <li class="reactor">Added is_cli_request() method to documentation for <a href="libraries/input.html">Input class</a>.</li>
98         <li class="reactor">Added form_validation_lang entries for <kbd>decimal</kbd>, <kbd>less_than</kbd> and <kbd>greater_than</kbd>.</li>
99         <li class="reactor"><a href="https://bitbucket.org/ellislab/codeigniter-reactor/issue/153/escape-str-bug-in-mssql-driver">Fixed issue #153</a> Escape Str Bug in MSSQL driver.</li>
100         <li class="reactor"><a href="https://bitbucket.org/ellislab/codeigniter-reactor/issue/172/bug-in-chrome-and-form_open-in-201">Fixed issue #172</a> Google Chrome 11 posts incorrectly when action is empty.</li>
101
102 </ul>
103
104 <h2>Version 2.0.1</h2>
105 <p>Release Date: March 15, 2011<br />
106 Hg Tag: v2.0.1</p>
107
108 <ul>
109         <li>General changes
110                 <ul>
111                         <li>Added <kbd>$config['cookie_secure']</kbd> to the config file to allow requiring a secure (HTTPS) in order to set cookies.</li>
112                         <li class="reactor">Added the constant <kbd>CI_CORE</kbd> to help differentiate between Core: TRUE and Reactor: FALSE.</li>
113                         <li class="reactor">Added an <kbd>ENVIRONMENT</kbd> constant in index.php, which affects PHP error reporting settings, and optionally,
114                 which configuration files are loaded (see below). Read more on the <a href="general/environments.html">Handling Environments</a> page.</li>
115                         <li class="reactor">Added support for <a href="libraries/config.html#environments">environment-specific</a> configuration files.</li>
116                 </ul>
117         </li>
118         <li>Libraries
119                 <ul>
120                         <li class="reactor">Added <kbd>decimal</kbd>, <kbd>less_than</kbd> and <kbd>greater_than</kbd> rules to the <a href="libraries/form_validation.html">Form validation Class</a>.</li>
121                         <li class="reactor"><a href="libraries/input.html">Input Class</a> methods <kbd>post()</kbd> and <kbd>get()</kbd> will now return a full array if the first argument is not provided.</li>
122                         <li class="reactor">Secure cookies can now be made with the <kbd>set_cookie()</kbd> helper and <a href="libraries/input.html">Input Class</a> method.</li>
123                         <li class="reactor">Added <kbd>set_content_type()</kbd> to <a href="libraries/output.html">Output Class</a> to set the output <kbd>Content-Type</kbd> HTTP header based on a MIME Type or a config/mimes.php array key.</li>
124                         <li class="reactor"><a href="libraries/output.html">Output Class</a> will now support method chaining.</li>
125                 </ul>
126         </li>
127         <li>Helpers
128                 <ul>
129                         <li class="reactor">Changed the logic for <kbd>form_open()</kbd> in <a href="helpers/form_helper.html">Form helper</a>. If no value is passed it will submit to the current URL.</li>
130                 </ul>
131         </li>
132 </ul>
133
134 <h3>Bug fixes for 2.0.1</h3>
135 <ul>
136         <li class="reactor">CLI requests can now be run from any folder, not just when CD'ed next to index.php.</li>
137         <li class="reactor">Fixed issue #41: Added audio/mp3 mime type to mp3.</li>
138         <li class="reactor">Fixed a bug (Core #329) where the file caching driver referenced the incorrect cache directory.</li>
139         <li class="reactor">Fixed a bug (Reactor #69) where the SHA1 library was named incorrectly.</li>
140 </ul>
141
142 <h2>Version 2.0.0</h2>
143 <p>Release Date: January 28, 2011<br />
144 Hg Tag: v2.0.0</p>
145
146 <ul>
147         <li>General changes
148                 <ul>
149                         <li>PHP 4 support is removed. CodeIgniter now requires PHP 5.1.6.</li>
150                         <li>Scaffolding, having been deprecated for a number of versions, has been removed.</li>
151                         <li>Plugins have been removed, in favor of Helpers.  The CAPTCHA plugin has been converted to a Helper and <a href="./helpers/captcha_helper.html">documented</a>.  The JavaScript calendar plugin was removed due to the ready availability of great JavaScript calendars, particularly with jQuery.</li>
152                         <li>Added new special Library type: <a href="./general/drivers.html">Drivers</a>.</li>
153                         <li class="reactor">Added full query-string support.  See the config file for details.</li>
154                         <li>Moved the application folder outside of the system folder.</li>
155                         <li>Moved system/cache and system/logs directories to the application directory.</li>
156                         <li>Added routing overrides to the main index.php file, enabling the normal routing to be overridden on a per "index" file basis.</li>
157                         <li>Added the ability to set config values (or override config values) directly from data set in the main index.php file.  This allows a single application to be used with multiple front controllers, each having its own config values.</li>
158                         <li>Added <kbd>$config['directory_trigger']</kbd> to the config file so that a controller sub-directory can be specified when running _GET strings instead of URI segments.</li>
159                         <li>Added ability to set "Package" paths - specific paths where the Loader and Config classes should try to look first for a requested file.  This allows distribution of sub-applications with their own libraries, models, config files, etc. in a single "package" directory.  See the <a href="libraries/loader.html">Loader class</a> documentation for more details.</li>
160                         <li>In-development code is now hosted at <a href="http://bitbucket.org/ellislab/codeigniter-reactor/">BitBucket</a>.</li>
161                         <li>Removed the deprecated Validation Class.</li>
162                         <li>Added CI_ Prefix to all core classes.</li>
163                         <li class="reactor">Package paths can now be set in application/config/autoload.php.</li>
164                         <li class="reactor"><a href="libraries/file_uploading.html">Upload library</a> file_name can now be set without an extension, the extension will be taken from the uploaded file instead of the given name.</li>
165                         <li class="reactor">In <a href="database/forge.html">Database Forge</a> the name can be omitted from $this->dbforge->modify_column()'s 2nd param if you aren't changing the name.</li>
166                         <li class="reactor"><kbd>$config['base_url']</kbd> is now empty by default and will guess what it should be.</li>
167                         <li class="reactor">Enabled full Command Line Interface compatibility with <kbd>config['uri_protocol'] = 'CLI';</kbd>.</li>
168                 </ul>
169         <li>Libraries
170                 <ul>
171                         <li class="reactor">Added a <a href="libraries/caching.html">Cache driver</a> with APC, memcached, and file-based support.</li>
172                         <li>Added <var>$prefix</var>, <var>$suffix</var> and <var>$first_url</var> properties to <a href="./libraries/pagination.html">Pagination library</a>.</li>
173                         <li>Added the ability to suppress first, previous, next, last, and page links by setting their values to FALSE in the <a href="./libraries/pagination.html">Pagination library</a>.</li>
174                         <li>Added <a href="./libraries/security.html">Security library</a>, which now contains the <dfn>xss_clean</dfn> function, <dfn>filename_security</dfn> function and other security related functions.</li>
175                         <li>Added CSRF (Cross-site Reference Forgery) protection to the <a href="./libraries/security.html">Security library</a>.</li>
176                         <li>Added <var>$parse_exec_vars</var> property to Output library.</li>
177                         <li>Added ability to enable / disable individual sections of the <a href="general/profiling.html">Profiler</a></li>
178                         <li>Added a wildcard option <kbd>$config['allowed_types'] = '*'</kbd> to the <a href="./libraries/file_uploading.html">File Uploading Class</a>.</li>
179                         <li>Added an 'object' config variable to the XML-RPC Server library so that one can specify the object to look for requested methods, instead of assuming it is in the $CI superobject.</li>
180                         <li>Added "is_object" into the list of unit tests capable of being run.</li>
181                         <li>Table library will generate an empty cell with a blank string, or NULL value.</li>
182                         <li>Added ability to set tag attributes for individual cells in the Table library</li>
183                         <li>Added a <kbd>parse_string()</kbd> method to the <a href="libraries/parser.html">Parser Class</a>.</li>
184                         <li>Added HTTP headers and Config information to the <a href="general/profiling.html">Profiler</a> output.</li>
185                         <li>Added Chrome and Flock to the list of detectable browsers by <kbd>browser()</kbd> in the <a href="libraries/user_agent.html">User Agent Class</a>.</li>
186                         <li>The <a href="libraries/unit_testing.html">Unit Test Class</a> now has an optional "notes" field available to it, and allows for discrete display of test result items using <kbd>$this->unit->set_test_items()</kbd>.</li>
187                         <li>Added a <kbd>$xss_clean</kbd> class variable to the XMLRPC library, enabling control over the use of the Security library's <kbd>xss_clean()</kbd> method.</li>
188                         <li>Added a <kbd>download()</kbd> method to the <a href="libraries/ftp.html">FTP library</a></li>
189                         <li>Changed <kbd>do_xss_clean()</kbd> to return FALSE if the uploaded file fails XSS checks.</li>
190                         <li>Added stripslashes() and trim()ing of double quotes from $_FILES type value to standardize input in Upload library.</li>
191                         <li>Added a second parameter (boolean) to <kbd>$this->zip->read_dir('/path/to/directory', FALSE)</kbd> to remove the preceding trail of empty folders when creating a Zip archive. This example would contain a zip with "directory" and all of its contents.</li>
192                         <li>Added ability in the Image Library to handle PNG transparency for resize operations when using the GD lib.</li>
193                         <li>Modified the Session class to prevent use if no encryption key is set in the config file.</li>
194                         <li>Added a new config item to the Session class <kbd>sess_expire_on_close</kbd> to allow sessions to auto-expire when the browser window is closed.</li>
195                         <li>Improved performance of the Encryption library on servers where Mcrypt is available.</li>
196                         <li>Changed the default encryption mode in the Encryption library to CBC.</li>
197                         <li>Added an <kbd>encode_from_legacy()</kbd> method to provide a way to transition encrypted data from CodeIgniter 1.x to CodeIgniter 2.x.
198                                 Please see the <a href="./installation/upgrade_200.html">upgrade instructions</a> for details.</li>
199                         <li>Altered Form_Validation library to allow for method chaining on <kbd>set_rules()</kbd>, <kbd>set_message()</kbd> and <kbd>set_error_delimiters()</kbd> functions.</li>
200                         <li>Altered Email Library to allow for method chaining.</li>
201                         <li>Added <kbd>request_headers()</kbd>, <kbd>get_request_header()</kbd> and <kbd>is_ajax_request()</kbd> to the input class.</li>
202                         <li class="reactor">Altered <a href="libraries/user_agent.html">User agent library</a> so that <kbd>is_browser()</kbd>, <kbd>is_mobile()</kbd> and <kbd>is_robot()</kbd> can optionally check for a specific browser or mobile device.</li>
203                         <li class="reactor">Altered <a href="libraries/input.html">Input library</a> so that <kbd>post()</kbd> and <kbd>get()</kbd> will return all POST and GET items (respectively) if there are no parameters passed in.</li>
204                 </ul>
205         </li>
206         <li>Database
207                 <ul>
208                         <li><a href="./database/configuration.html">database configuration</a>.</li>
209                         <li>Added <kbd>autoinit</kbd> value to <a href="./database/configuration.html">database configuration</a>.</li>
210                         <li>Added <kbd>stricton</kbd> value to <a href="./database/configuration.html">database configuration</a>.</li>
211                         <li>Added <kbd>database_exists()</kbd> to the <a href="database/utilities.html">Database Utilities Class</a>.</li>
212                         <li>Semantic change to db->version() function to allow a list of exceptions for databases with functions to return version string instead of specially formed SQL queries. Currently this list only includes Oracle and SQLite.</li>
213                         <li>Fixed a bug where driver specific table identifier protection could lead to malformed queries in the <kbd>field_data()</kbd> functions.</li>
214                         <li>Fixed a bug where an undefined class variable was referenced in database drivers.</li>
215                         <li>Modified the database errors to show the filename and line number of the problematic query.</li>
216                         <li>Removed the following deprecated functions: orwhere, orlike, groupby, orhaving, orderby, getwhere.</li>
217                         <li>Removed deprecated _drop_database() and _create_database() functions from the db utility drivers.</li>
218                         <li>Improved dbforge create_table() function for the Postgres driver.</li>
219                 </ul>
220         </li>
221         <li>Helpers
222                 <ul>
223                         <li>Added <kbd>convert_accented_characters()</kbd> function to <a href="./helpers/text_helper.html">text helper</a>.</li>
224                         <li>Added accept-charset to the list of inserted attributes of <kbd>form_open()</kbd> in the <a href="helpers/form_helper.html">Form Helper</a>.</li>
225                         <li>Deprecated the <kbd>dohash()</kbd> function in favour of <kbd>do_hash()</kbd> for naming consistency.</li>
226                         <li>Non-backwards compatible change made to <kbd>get_dir_file_info()</kbd> in the <a href="helpers/file_helper.html">File Helper</a>.  No longer recurses
227                                 by default so as to encourage responsible use (this function can cause server performance issues when used without caution).</li>
228                         <li>Modified the second parameter of <kbd>directory_map()</kbd> in the <a href="helpers/directory_helper.html">Directory Helper</a> to accept an integer to specify recursion depth.</li>
229                         <li>Modified <kbd>delete_files()</kbd> in the <a href="helpers/file_helper.html">File Helper</a> to return FALSE on failure.</li>
230                         <li>Added an optional second parameter to <kbd>byte_format()</kbd> in the <a href="helpers/number_helper.html">Number Helper</a> to allow for decimal precision.</li>
231                         <li>Added alpha, and sha1 string types to <kbd>random_string()</kbd> in the <a href="helpers/string_helper.html">String Helper</a>.</li>
232                         <li>Modified <kbd>prep_url()</kbd> so as to not prepend http:// if the supplied string already has a scheme.</li>
233                         <li>Modified <kbd>get_file_info</kbd> in the file helper, changing filectime() to filemtime() for dates.</li>
234                         <li>Modified <kbd>smiley_js()</kbd> to add optional third parameter to return only the javascript with no script tags.</li>
235                         <li>The <kbd>img()</kbd> function of the <a href="./helpers/html_helper.html">HTML helper</a> will now generate an empty string as an alt attribute if one is not provided.</li>
236                         <li>If CSRF is enabled in the application config file, <kbd>form_open()</kbd> will automatically insert it as a hidden field.</li>
237                         <li>Added <kbd>sanitize_filename()</kbd> into the <a href="./helpers/security_helper.html">Security helper</a>.</li>
238                         <li>Added <kbd>ellipsize()</kbd> to the <a href="./helpers/text_helper.html">Text Helper</a></li>
239                         <li>Added <kbd>elements()</kbd> to the <a href="./helpers/array_helper.html">Array Helper</a></li>
240                 </ul>
241         </li>
242         <li>Other Changes
243                 <ul>
244                         <li>Added an optional second parameter to <kbd>show_404()</kbd> to disable logging.</li>
245                         <li>Updated loader to automatically apply the sub-class prefix as an option when loading classes.  Class names can be prefixed with the standard "CI_" or the same prefix as the subclass prefix, or no prefix at all.</li>
246                         <li>Increased randomness with <kbd>is_really_writable()</kbd> to avoid file collisions when hundreds or thousands of requests occur at once.</li>
247                         <li>Switched some DIR_WRITE_MODE constant uses to FILE_WRITE_MODE where files and not directories are being operated on.</li>
248                         <li><kbd>get_mime_by_extension()</kbd> is now case insensitive.</li>
249                         <li>Added "default" to the list <a href="general/reserved_names.html">Reserved Names</a>.</li>
250                         <li>Added 'application/x-msdownload' for .exe files and ''application/x-gzip-compressed' for .tgz files to config/mimes.php.</li>
251                         <li>Updated the output library to no longer compress output or send content-length headers if the server runs with zlib.output_compression enabled.</li>
252                         <li>Eliminated a call to is_really_writable() on each request unless it is really needed (Output caching)</li>
253                         <li>Documented <kbd>append_output()</kbd> in the <a href="libraries/output.html">Output Class</a>.</li>
254                         <li>Documented a second argument in the <kbd>decode()</kbd> function for the <a href="libraries/encryption.html">Encryption Class</a>.</li>
255                         <li>Documented db->close().</li>
256                         <li>Updated the router to support a default route with any number of segments.</li>
257                         <li>Moved _remove_invisible_characters() function from the <a href="libraries/security.html">Security Library</a> to <a href="general/common_functions.html">common functions.</a></li>
258                         <li>Added audio/mpeg3 as a valid mime type for MP3.</li>
259                 </ul>
260         </li>
261 </ul>
262
263 <h3>Bug fixes for 2.0.0</h3>
264 <ul>
265         <li class="reactor">Fixed a bug where you could not change the User-Agent when sending email.</li>
266         <li>Fixed a bug where the Output class would send incorrect cached output for controllers implementing their own <dfn>_output()</dfn> method.</li>
267         <li>Fixed a bug where a failed query would not have a saved query execution time causing errors in the Profiler</li>
268         <li>Fixed a bug that was writing log entries when multiple identical helpers and plugins were loaded.</li>
269         <li>Fixed assorted user guide typos or examples (#10693, #8951, #7825, #8660, #7883, #6771, #10656).</li>
270         <li>Fixed a language key in the profiler: "profiler_no_memory_usage" to "profiler_no_memory".</li>
271         <li>Fixed an error in the Zip library that didn't allow downloading on PHP 4 servers.</li>
272         <li>Fixed a bug in the Form Validation library where fields passed as rule parameters were not being translated (#9132)</li>
273         <li>Modified inflector helper to properly pluralize words that end in 'ch' or 'sh'</li>
274         <li>Fixed a bug in xss_clean() that was not allowing hyphens in query strings of submitted URLs.</li>
275         <li>Fixed bugs in get_dir_file_info() and get_file_info() in the File Helper with recursion, and file paths on Windows.</li>
276         <li>Fixed a bug where Active Record override parameter would not let you disable Active Record if it was enabled in your database config file.</li>
277         <li>Fixed a bug in reduce_double_slashes() in the String Helper to properly remove duplicate leading slashes (#7585)</li>
278         <li>Fixed a bug in values_parsing() of the XML-RPC library which prevented NULL variables typed as 'string' from being handled properly.</li>
279         <li>Fixed a bug were form_open_multipart() didn't accept string attribute arguments (#10930).</li>
280         <li>Fixed a bug (#10470) where <kdb>get_mime_by_extension()</kbd> was case sensitive.</li>
281         <li>Fixed a bug where some error messages for the SQLite and Oracle drivers would not display.</li>
282         <li>Fixed a bug where files created with the Zip Library would result in file creation dates of 1980.</li>
283         <li>Fixed a bug in the Session library that would result in PHP error when attempting to store values with objects.</li>
284         <li>Fixed a bug where extending the Controller class would result in a fatal PHP error.</li>
285         <li>Fixed a PHP Strict Standards Error in the index.php file.</li>
286         <li>Fixed a bug where getimagesize() was being needlessly checked on non-image files in is_allowed_type().</li>
287         <li>Fixed a bug in the Encryption library where an empty key was not triggering an error.</li>
288         <li>Fixed a bug in the Email library where CC and BCC recipients were not reset when using the clear() method (#109).</li>
289         <li>Fixed a bug in the URL Helper where prep_url() could cause a PHP error on PHP versions &lt; 5.1.2.</li>
290         <li>Added a log message in core/output if the cache directory config value was not found.</li>
291         <li>Fixed a bug where multiple libraries could not be loaded by passing an array to load-&gt;library()</li>
292         <li>Fixed a bug in the html helper where too much white space was rendered between the src and alt tags in the img() function.</li>
293         <li>Fixed a bug in the profilers _compile_queries() function.</li>
294         <li>Fixed a bug in the date helper where the DATE_ISO8601 variable was returning an incorrectly formatted date string.</li>
295 </ul>
296
297 <h2>Version 1.7.2</h2>
298 <p>Release Date: September 11, 2009<br />
299 Hg Tag: v1.7.2</p>
300
301 <ul>
302         <li>Libraries
303                 <ul>
304                         <li>Added a new <a href="libraries/cart.html">Cart Class</a>.</li>
305                         <li>Added the ability to pass $config['file_name'] for the <a href="libraries/file_uploading.html">File Uploading Class</a> and rename the uploaded file.</li>
306                         <li>Changed order of listed user-agents so Safari would more accurately report itself. (#6844)</li>
307                 </ul>
308         </li>
309         <li>Database
310                 <ul>
311                         <li>Switched from using gettype() in escape() to is_* methods, since future PHP versions might change its output.</li>
312                         <li>Updated all database drivers to handle arrays in escape_str()</li>
313                         <li>Added escape_like_str() method for escaping strings to be used in LIKE conditions</li>
314                         <li>Updated Active Record to utilize the new LIKE escaping mechanism.</li>
315                         <li>Added reconnect() method to DB drivers to try to keep alive / reestablish a connection after a long idle.</li>
316                         <li>Modified MSSQL driver to use mssql_get_last_message() for error messages.</li>
317                 </ul>
318         </li>
319         <li>Helpers
320                 <ul>
321                         <li>Added <kbd>form_multiselect()</kbd> to the <a href="helpers/form_helper.html">Form helper</a>.</li>
322                         <li>Modified <kbd>form_hidden()</kbd> in the <a href="helpers/form_helper.html">Form helper</a> to accept multi-dimensional arrays.</li>
323                         <li>Modified <kbd>form_prep()</kbd> in the <a href="helpers/form_helper.html">Form helper</a> to keep track of prepped fields to avoid multiple prep/mutation from subsequent calls which can occur when using Form Validation
324                                 and form helper functions to output form fields.</li>
325                         <li>Modified <kbd>directory_map()</kbd> in the <a href="helpers/directory_helper.html">Directory helper</a> to allow the inclusion of hidden files, and to return FALSE on failure to read directory.</li>
326                         <li>Modified the <a href="helpers/smiley_helper.html">Smiley helper</a> to work with multiple fields and insert the smiley at the last known cursor position.</li>
327                 </ul>
328         </li>
329         <li>General
330                 <ul>
331                         <li>Compatible with PHP 5.3.0</li>
332                         <li>Modified <a href="general/errors.html">show_error()</a> to allow sending of HTTP server response codes.</li>
333                         <li>Modified <a href="general/errors.html">show_404()</a> to send 404 status code, removing non-CGI compatible header() statement from error_404.php template.</li>
334                         <li>Added set_status_header() to the <a href="general/common_functions.html">Common functions<a> to allow use when the Output class is unavailable.</li>
335                         <li>Added is_php() to <a href="general/common_functions.html">Common functions</a> to facilitate PHP version comparisons.</p>
336                         <li>Added 2 CodeIgniter "cheatsheets" (thanks to DesignFellow.com for this contribution).</li>
337                 </ul>
338         </li>
339 </ul>
340
341 <h3>Bug fixes for 1.7.2</h3>
342 <ul>
343         <li>Fixed assorted user guide typos or examples (#6743, #7214, #7516, #7287, #7852, #8224, #8324, #8349).</li>
344         <li>Fixed a bug in the Form Validation library where multiple callbacks weren't working (#6110)</li>
345         <li>doctype helper default value was missing a "1".</li>
346         <li>Fixed a bug in the language class when outputting an error for an unfound file.</li>
347         <li>Fixed a bug in the Calendar library where the shortname was output for "May".</li>
348         <li>Fixed a bug with ORIG_PATH_INFO that was allowing URIs of just a slash through.</li>
349         <li>Fixed a fatal error in the Oracle and ODBC drivers (#6752)</li>
350         <li>Fixed a bug where xml_from_result() was checking for a nonexistent method.</li>
351         <li>Fixed a bug where Database Forge's add_column and modify_column were not looping through when sent multiple fields.</li>
352         <li>Fixed a bug where the File Helper was using '/' instead of the DIRECTORY_SEPARATOR constant.</li>
353         <li>Fixed a bug to prevent PHP errors when attempting to use sendmail on servers that have manually disabled the PHP popen() function.</li>
354         <li>Fixed a bug that would cause PHP errors in XML-RPC data if the PHP data type did not match the specified XML-RPC type.</li>
355         <li>Fixed a bug in the XML-RPC class with parsing dateTime.iso8601 data types.</li>
356         <li>Fixed a case sensitive string replacement in xss_clean()</li>
357         <li>Fixed a bug in form_textarea() where form data was not prepped correctly.</li>
358         <li>Fixed a bug in form_prep() causing it to not preserve entities in the user's original input when called back into a form element</li>
359         <li>Fixed a bug in _protect_identifiers() where the swap prefix ($swap_pre) was not being observed.</li>
360         <li>Fixed a bug where the 400 status header sent with the 'disallowed URI characters' was not compatible with CGI environments.</li>
361         <li>Fixed a bug in the typography class where heading tags could have paragraph tags inserted when using auto_typography().</li>
362 </ul>
363
364 <h2>Version 1.7.1</h2>
365 <p>Release Date: February 10, 2009<br />
366 Hg Tag: 1.7.1</p>
367
368 <ul>
369         <li>Libraries
370                 <ul>
371                         <li>Fixed an arbitrary script execution security flaw (#6068) in the Form Validation library (thanks to hkk)</li>
372                         <li>Changed default current page indicator in the Pagination library to use &lt;strong&gt; instead of &lt;b&gt;</li>
373                         <li>A "HTTP/1.1 400 Bad Request" header is now sent when disallowed characters are encountered.</li>
374                         <li>Added &lt;big&gt;, &lt;small&gt;, &lt;q&gt;, and &lt;tt&gt; to the Typography parser's inline elements.</li>
375                         <li>Added more accurate error reporting for the Email library when using sendmail.</li>
376                         <li>Removed a strict type check from the <kbd>rotate()</kbd> function of the <a href="libraries/image_lib.html">Image Manipulation Class</a>.</li>
377                         <li>Added enhanced error checking in file saving in the Image library when using the GD lib.</li>
378                         <li>Added an additional newline between multipart email headers and the MIME message text for better compatibility with a variety of MUAs.</li>
379                         <li>Made modest improvements to efficiency and accuracy of explode_name() in the Image lib.</li>
380                 </ul>
381         </li>
382         <li>Database
383                 <ul>
384                         <li>Added where_in to the list of expected arguments received by <kbd>delete()</kbd>.</li>
385                 </ul>
386         </li>
387         <li>Helpers
388                 <ul>
389                         <li>Added the ability to have optgroups in <kbd>form_dropdown()</kbd> within the <a href="helpers/form_helper.html">form helper</a>.</li>
390                         <li>Added a doctype() function to the <a href="helpers/html_helper.html">HTML helper</a>.</li>
391                         <li>Added ability to force lowercase for <kbd>url_title()</kbd> in the <a href="helpers/url_helper.html">URL helper</a>.</li>
392                         <li>Changed the default "type" of <kbd>form_button()</kbd> to "button" from "submit" in the <a href="helpers/form_helper.html">form helper</a>.</li>
393                         <li>Changed redirect() in the URL helper to allow redirections to URLs outside of the CI site.</li>
394                         <li>Updated get_cookie() to try to fetch the cookie using the global cookie prefix if the requested cookie name doesn't exist.</li>
395                 </ul>
396         </li>
397         <li>Other Changes
398                 <ul>
399                         <li>Improved security in <kbd>xss_clean()</kbd> to help prevent attacks targeting Internet Explorer.</li>
400                         <li>Added 'application/msexcel' to config/mimes.php for .xls files.</li>
401                         <li>Added 'proxy_ips' config item to whitelist reverse proxy servers from which to trust the HTTP_X_FORWARDED_FOR header to
402                                 to determine the visitor's IP address.</li>
403                         <li>Improved accuracy of Upload::is_allowed_filetype() for images (#6715)</li>
404                 </ul>
405         </li>
406 </ul>
407
408 <h3>Bug fixes for 1.7.1</h3>
409 <ul>
410         <li>Database
411                 <ul>
412                         <li>Fixed a bug when doing 'random' on order_by() (#5706).</li>
413                         <li>Fixed a bug where adding a primary key through Forge could fail (#5731).</li>
414                         <li>Fixed a bug when using DB cache on multiple databases (#5737).</li>
415                         <li>Fixed a bug where TRUNCATE was not considered a "write" query (#6619).</li>
416                         <li>Fixed a bug where csv_from_result() was checking for a nonexistent method.</li>
417                         <li>Fixed a bug _protect_identifiers() where it was improperly removing all pipe symbols from items</li>
418                 </ul>
419         </li>
420         <li>Fixed assorted user guide typos or examples (#5998, #6093, #6259, #6339, #6432, #6521).</li>
421         <li>Fixed a bug in the MySQLi driver when no port is specified</li>
422         <li>Fixed a bug (#5702), in which the field label was not being fetched properly, when "matching" one field to another.</li>
423         <li>Fixed a bug in which identifers were not being escaped properly when reserved characters were used.</li>
424         <li>Fixed a bug with the regular expression used to protect submitted paragraph tags in auto typography.</li>
425         <li>Fixed a bug where double dashes within tag attributes were being converted to em dash entities.</li>
426         <li>Fixed a bug where double spaces within tag attributes were being converted to non-breaking space entities.</li>
427         <li>Fixed some accuracy issues with curly quotes in Typography::format_characters()</li>
428         <li>Changed a few docblock comments to reflect actual return values.</li>
429         <li>Fixed a bug with high ascii characters in subject and from email headers.</li>
430         <li>Fixed a bug in xss_clean() where whitespace following a validated character entity would not be preserved.</li>
431         <li>Fixed a bug where HTML comments and &lt;pre&gt; tags were being parsed in Typography::auto_typography().</li>
432         <li>Fixed a bug with non-breaking space cleanup in Typography::auto_typography().</li>
433         <li>Fixed a bug in database escaping where a compound statement (ie: SUM()) wasn't handled correctly with database prefixes.</li>
434         <li>Fixed a bug when an opening quote is preceded by a paragraph tag and immediately followed by another tag.</li>
435         <li>Fixed a bug in the Text Helper affecting some locales where word_censor() would not work on words beginning or ending with an accented character.</li>
436         <li>Fixed a bug in the Text Helper character limiter where the provided limit intersects the last word of the string.</li>
437         <li>Fixed a bug (#6342) with plural() in the Inflection helper with words ending in "y".</li>
438         <li>Fixed bug (#6517) where Routed URI segments returned by URI::rsegment() method were incorrect for the default controller.</li>
439         <li>Fixed a bug (#6706) in the Security Helper where xss_clean() was using a deprecated second argument.</li>
440         <li>Fixed a bug in the URL helper url_title() function where trailing periods were allowed at the end of a URL.</li>
441         <li>Fixed a bug (#6669) in the Email class when CRLF's are used for the newline character with headers when used with the "mail" protocol.</li>
442         <li>Fixed a bug (#6500) where URI::A_filter_uri() was exit()ing an error instead of using show_error().</li>
443         <li>Fixed a bug (#6592) in the File Helper where get_dir_file_info() where recursion was not occurring properly.</li>
444         <li>Tweaked Typography::auto_typography() for some edge-cases.</li>
445 </ul>
446
447
448 <h2>Version 1.7</h2>
449 <p>Release Date: October 23, 2008<br />
450 Hg Tag: 1.7.0</p>
451
452 <ul>
453         <li>Libraries
454                 <ul>
455                         <li>Added a new <a href="libraries/form_validation.html">Form Validation Class</a>.  It simplifies setting rules and field names, supports arrays as field names, allows groups of validation rules to be saved in a config file, and adds some helper functions for use in view files.  <strong>Please note that the old Validation class is now deprecated</strong>. We will leave it in the library folder for some time so that existing applications that use it will not break, but you are encouraged to migrate to the new version.</li>
456                         <li>Updated the <a href="libraries/sessions.html">Sessions class</a> so that any custom data being saved gets stored to a database rather than the session cookie (assuming you are using a database to store session data), permitting much more data to be saved.</li>
457                         <li>Added the ability to store libraries in subdirectories within either the main "libraries" or the local application "libraries" folder. Please see the <a href="libraries/loader.html">Loader class</a> for more info.</li>
458                         <li>Added the ability to assign library objects to your own variable names when you use <kbd>$this->load->library()</kbd>. Please see the <a href="libraries/loader.html">Loader class</a> for more info.</li>
459                         <li>Added controller class/method info to <a href="general/profiling.html">Profiler class</a> and support for multiple database connections.</li>
460                         <li>Improved the "auto typography" feature and moved it out of the helper into its own <a href="libraries/typography.html">Typography Class</a>.</li>
461                         <li>Improved performance and accuracy of <kbd>xss_clean()</kbd>, including reduction of false positives on image/file tests.</li>
462                         <li>Improved <a href="./libraries/parser.html">Parser class</a> to allow multiple calls to the parse() function.  The output of each is appended in the output.</li>
463                         <li>Added <dfn>max_filename</dfn> option to set a file name length limit in the  <a href="libraries/file_uploading.html">File Upload Class</a>.</li>
464                         <li>Added <dfn>set_status_header()</dfn> function to <a href="libraries/output.html">Output class</a>.</li>
465                         <li>Modified <a href="libraries/pagination.html">Pagination</a> class to only output the "First" link when the link for page one would not be shown.</li>
466                         <li>Added support for mb_strlen in the <a href="libraries/form_validation.html">Form Validation</a> class so that multi-byte languages will calculate string lengths properly.</li>
467                 </ul>
468         </li>
469         <li>Database
470                 <ul>
471                         <li>Improved Active Record class to allow full path column and table names:  hostname.database.table.column.  Also improved the alias handling.</li>
472                         <li>Improved how table and column names are escaped and prefixed.  It now honors full path names when adding prefixes and escaping.</li>
473                         <li>Added Active Record caching feature to "update" and "delete" functions.</li>
474                         <li>Added removal of non-printing control characters in <kbd>escape_str()</kbd> of DB drivers that do not have native PHP escaping mechanisms (mssql, oci8, odbc), to avoid potential SQL errors, and possible sources of SQL injection.</li>
475                         <li>Added port support to MySQL, MySQLi, and MS SQL database drivers.</li>
476                         <li>Added driver name variable in each DB driver, based on bug report #4436.</li>
477                 </ul>
478         </li>
479         <li>Helpers
480                 <ul>
481                         <li>Added several new "setting" functions to the <a href="helpers/form_helper.html">Form helper</a> that allow POST data to be retrieved and set into forms.  These are intended to be used on their own, or with the new <a href="libraries/form_validation.html">Form Validation Class</a>.</li>
482                         <li>Added <kbd>current_url()</kbd> and uri_segments() to  <a href="helpers/url_helper.html">URL helper</a>.</li>
483                         <li>Altered <kbd>auto_link()</kbd> in the <a href="helpers/url_helper.html">URL helper</a> so that email addresses with "+" included will be linked.</li>
484                         <li>Added <kbd>meta()</kbd> function to  <a href="helpers/html_helper.html">HTML helper</a>.</li>
485                         <li>Improved accuracy of calculations in <a href="helpers/number_helper.html">Number helper</a>.</li>
486                         <li>Removed added newlines ("\n") from most form and html helper functions.</li>
487                         <li>Tightened up validation in the <a href="helpers/date_helper.html">Date helper</a> function <kbd>human_to_unix()</kbd>, and eliminated the POSIX regex.</li>
488                         <li>Updated <a href="helpers/date_helper.html">Date helper</a> to match the world's current time zones and offsets.</li>
489                         <li>Modified url_title() in the <a href="helpers/url_helper.html">URL helper</a> to remove characters and digits that are part of
490                                 character entities, to allow dashes, underscores, and periods regardless of the $separator, and to allow uppercase characters.</li>
491                         <li>Added support for arbitrary attributes in anchor_popup() of the <a href="helpers/url_helper.html">URL helper</a>.</li>
492                 </ul>
493         </li>
494         <li>Other Changes
495                 <ul>
496                         <li>Added <a href="./general/styleguide.html">PHP Style Guide</a> to docs.</li>
497                         <li>Added sanitization in <kbd>xss_clean()</kbd> for a deprecated HTML tag that could be abused in user input in Internet Explorer.</li>
498                         <li>Added a few openxml document mime types, and an additional mobile agent to mimes.php and user_agents.php respectively.</li>
499                         <li>Added a file lock check during caching, before trying to write to the file.</li>
500                         <li>Modified Cookie key cleaning to unset a few troublesome key names that can be present in certain environments, preventing CI from halting execution.</li>
501                         <li>Changed the output of the profiler to use style attribute rather than clear, and added the id "codeigniter_profiler" to the container div.</li>
502                 </ul>
503         </li>
504 </ul>
505
506 <h3>Bug fixes for 1.7.0</h3>
507 <ul>
508         <li>Fixed bug in <kbd>xss_clean()</kbd> that could remove some desirable tag attributes.</li>
509         <li>Fixed assorted user guide typos or examples (#4807, #4812, #4840, #4862, #4864, #4899, #4930, #5006, #5071, #5158, #5229, #5254, #5351).</li>
510         <li>Fixed an edit from 1.6.3 that made the $robots array in user_agents.php go poof.</li>
511         <li>Fixed a bug in the <a href="libraries/email.html">Email library</a> with quoted-printable encoding improperly encoding space and tab characters.</li>
512         <li>Modified XSS sanitization to no longer add semicolons after &amp;[single letter], such as in M&amp;M's, B&amp;B, etc.</li>
513         <li>Modified XSS sanitization to no longer strip XHTML image tags of closing slashes.</li>
514         <li>Fixed a bug in the Session class when database sessions are used where upon session update all userdata would be errantly written to the session cookie.</li>
515         <li>Fixed a bug (#4536) in backups with the MySQL driver where some legacy code was causing certain characters to be double escaped.</li>
516         <li>Fixed a routing bug (#4661) that occurred when the default route pointed to a subfolder.</li>
517         <li>Fixed the spelling of "Dhaka" in the <kbd>timezone_menu()</kbd> function of the <a href="helpers/date_helper.html">Date helper.</a></li>
518         <li>Fixed the spelling of "raspberry" in config/smileys.php.</li>
519         <li>Fixed incorrect parenthesis in <kbd>form_open()</kbd> function (#5135).</li>
520         <li>Fixed a bug that was ignoring case when comparing controller methods (#4560).</li>
521         <li>Fixed a bug (#4615) that was not setting SMTP authorization settings when using the initialize function.</li>
522         <li>Fixed a bug in <kbd>highlight_code()</kbd> in the <a href="helpers/text_helper.html">Text helper</a> that would leave a stray &lt;/span&gt; in certain cases.</li>
523         <li>Fixed Oracle bug (#3306) that was preventing multiple queries in one action.</li>
524         <li>Fixed ODBC bug that was ignoring connection params due to its use of a constructor.</li>
525         <li>Fixed a DB driver bug with num_rows() that would cause an error with the Oracle driver.</li>
526         <li>Fixed MS SQL bug (#4915).  Added brackets around database name in MS SQL driver when selecting the database, in the event that reserved characters are used in the name.</li>
527         <li>Fixed a DB caching bug (4718) in which the path was incorrect when no URI segments were present.</li>
528         <li>Fixed Image_lib class bug #4562.  A path was not defined for NetPBM.</li>
529         <li>Fixed Image_lib class bug #4532.  When cropping an image with identical height/width settings on output, a copy is made.</li>
530         <li>Fixed DB_driver bug (4900), in which a database error was not being logged correctly.</li>
531         <li>Fixed DB backup bug in which field names were not being escaped.</li>
532         <li>Fixed a DB Active Record caching bug in which multiple calls to cached data were not being honored.</li>
533         <li>Fixed a bug in the Session class that was disallowing slashes in the serialized array.</li>
534         <li>Fixed a Form Validation bug in which the "isset" error message was being trigged by the "required" rule.</li>
535         <li>Fixed a spelling error in a Loader error message.</li>
536         <li>Fixed a bug (5050) with IP validation with empty segments.</li>
537         <li>Fixed a bug in which the parser was being greedy if multiple identical sets of tags were encountered.</li>
538 </ul>
539
540 <h2>Version 1.6.3</h2>
541 <p>Release Date: June 26, 2008<br />
542 Hg Tag: v1.6.3</p>
543
544 <p>Version 1.6.3 is a security and maintenance release and is recommended for all users.</p>
545 <ul>
546         <li>Database
547                 <ul>
548                         <li>Modified MySQL/MySQLi Forge class to give explicit names to keys</li>
549                         <li>Added ability to set multiple column non-primary keys to the <a href="database/forge.html">Forge class</a></li>
550                         <li>Added ability to set additional database config values in <a href="database/connecting.html">DSN connections</a> via the query string.</li>
551                         </ul>
552         </li>
553         <li>Libraries
554                 <ul>
555                         <li>Set the mime type check in the <a href="libraries/file_uploading.html">Upload class</a> to reference the global mimes variable.</li>
556                         <li>Added support for query strings to the <a href="libraries/pagination.html">Pagination class</a>, automatically detected or explicitly declared.</li>
557                         <li>Added <kbd>get_post()</kbd> to the <a href="libraries/input.html">Input class</a>.</li>
558                         <li>Documented <kbd>get()</kbd> in the <a href="libraries/input.html">Input class</a>.</li>
559                         <li>Added the ability to automatically output language items as form labels in the <a href="libraries/language.html">Language class</a>.</li>
560                 </ul>
561         </li>
562         <li>Helpers
563                 <ul>
564                         <li>Added a <a href="helpers/language_helper.html">Language helper</a>.</li>
565                         <li>Added a <a href="helpers/number_helper.html">Number helper</a>.</li>
566                         <li><a href="helpers/form_helper.html">Form helper</a> refactored to allow <kbd>form_open()</kbd> and <kbd>form_fieldset()</kbd> to accept arrays or strings as arguments.</li>
567                 </ul>
568         </li>
569         <li>Other changes
570                 <ul>
571                         <li>Improved security in <kbd>xss_clean()</kbd>.</li>
572                         <li>Removed an unused Router reference in <kbd>_display_cache()</kbd>.</li>
573                         <li>Added ability to <a href="libraries/input.html">use xss_clean() to test images</a> for XSS, useful for upload security.</li>
574                         <li>Considerably expanded list of mobile user-agents in config/user_agents.php.</li>
575                         <li>Charset information in the userguide has been moved above title for internationalization purposes (#4614).</li>
576                         <li>Added &quot;Using Associative Arrays In a Request Parameter&quot; example to the <a href="libraries/xmlrpc.html">XMLRPC userguide page</a>.</li>
577                         <li>Removed maxlength and size as automatically added attributes of form_input() in the <a href="helpers/form_helper.html">form helper</a>.</li>
578                         <li>Documented the language file use of <kbd>byte_format()</kbd> in the <a href="helpers/number_helper.html">number helper</a>.</li>
579                 </ul>
580         </li>
581 </ul>
582
583
584 <h3>Bug fixes for 1.6.3</h3>
585
586 <ul>
587         <li>Added a language key for valid_emails in validation_lang.php.</li>
588         <li>Amended fixes for bug (#3419) with parsing DSN database connections.</li>
589         <li>Moved the <kbd>_has_operators()</kbd> function (#4535) into DB_driver from DB_active_rec.</li>
590         <li>Fixed a syntax error in upload_lang.php.</li>
591         <li>Fixed a bug (#4542) with a regular expression in the Image library.</li>
592         <li>Fixed a bug (#4561) where <kbd>orhaving()</kbd> wasn't properly passing values.</li>
593         <li>Removed some unused variables from the code (#4563).</li>
594         <li>Fixed a bug where <kbd>having()</kbd> was not adding an = into the statement (#4568).</li>
595         <li>Fixed assorted user guide typos or examples (#4574, #4706).</li>
596         <li>Added quoted-printable headers to Email class when the multi-part override is used.</li>
597         <li>Fixed a double opening &lt;p&gt; tag in the index pages of each system directory.</li>
598 </ul>
599
600 <h2>Version 1.6.2</h2>
601 <p>Release Date: May 13, 2008<br />
602 Hg Tag: 1.6.2</p>
603 <ul>
604         <li>Active Record
605                 <ul>
606                         <li>Added the ability to prevent escaping in <kbd>having()</kbd> clauses.</li>
607                         <li>Added <kbd>rename_table()</kbd> into <a href="./database/forge.html">DBForge</a>.</li>
608                         <li>Fixed a bug that wasn't allowing escaping to be turned off if the value of a query was NULL.</li>
609                         <li>DB Forge is now assigned to any models that exist after loading (#3457).</li>
610                         </ul>
611         </li>
612         <li>Database
613                 <ul>
614                         <li>Added <a href="./database/transactions.html">Strict Mode</a> to database transactions.</li>
615                         <li>Escape behaviour in where() clauses has changed; values in those with the &quot;FALSE&quot; argument are no longer escaped (ie: quoted).</li>
616                 </ul>
617         </li>
618         <li>Config
619                 <ul>
620                         <li>Added 'application/vnd.ms-powerpoint' to list of mime types.</li>
621                         <li>Added 'audio/mpg' to list of mime types.</li>
622                         <li>Added new user-modifiable file constants.php containing file mode and fopen constants.</li>
623                         <li>Added the ability to set CRLF settings via config in the <a href="libraries/email.html">Email</a> class.</li>
624                 </ul>
625         </li>
626         <li>Libraries
627                 <ul>
628                         <li>Added increased security for filename handling in the Upload library.</li>
629                         <li>Added increased security for sessions for client-side data tampering.</li>
630                         <li>The MySQLi forge class is now in sync with MySQL forge. </li>
631                         <li>Added the ability to set CRLF settings via config in the <a href="libraries/email.html">Email</a> class.</li>
632                         <li><a href="libraries/unit_testing.html">Unit Testing</a> results are now colour coded, and a change was made to the default template of results.</li>
633                         <li>Added a valid_emails rule to the Validation class.</li>
634                         <li>The <a href="libraries/zip.html">Zip class</a> now exits within <kbd>download()</kbd>.</li>
635                         <li>The <a href="libraries/zip.html">Zip class</a> has undergone a substantial re-write for speed and clarity (thanks stanleyxu for the hard work and code contribution in bug report #3425!)</li>
636                 </ul>
637         </li>
638         <li>Helpers
639                 <ul>
640                         <li>Added a <a href="helpers/compatibility_helper.html">Compatibility Helper</a> for using some common PHP 5 functions safely in applications that might run on PHP 4 servers (thanks Seppo for the hard work and code contribution!)</li>
641                         <li>Added <kbd>form_button()</kbd> in the <a href="helpers/form_helper.html">Form helper</a>.</li>
642                         <li>Changed the <kbd>radio()</kbd> and <kbd>checkbox()</kbd> functions to default to not checked by default.</li>
643                         <li>Added the ability to include an optional HTTP Response Code in the <kbd>redirect()</kbd> function of the <a href="helpers/url_helper.html">URL Helper</a>.</li>
644                         <li>Modified <kbd>img()</kbd> in the <a href="helpers/html_helper.html">HTML Helper</a> to remove an unneeded space (#4208).</li>
645                         <li>Modified <kbd>anchor()</kbd> in the <a href="helpers/url_helper.html">URL helper</a> to no longer add a default title= attribute (#4209).</li>
646                         <li>The <a href="helpers/download_helper.html">Download helper</a> now exits within <kbd>force_download()</kbd>.</li>
647                         <li>Added <kbd>get_dir_file_info()</kbd>, <kbd>get_file_info()</kbd>, and <kbd>get_mime_by_extension()</kbd> to the <a href="helpers/file_helper.html">File Helper</a>.</li>
648                         <li>Added <kbd>symbolic_permissions()</kbd> and <kbd>octal_permissions()</kbd> to the <a href='helpers/file_helper.html'>File helper</a>.</li>
649                 </ul>
650         </li>
651         <li>Plugins
652                 <ul>
653                         <li>Modified captcha generation to first look for the function imagecreatetruecolor, and fallback to imagecreate if it isn't available (#4226).</li>
654                 </ul>
655         </li>
656         <li>Other
657                 Changes
658                 <ul>
659                         <li>Added ability for <a href="libraries/input.html">xss_clean()</a> to accept arrays.</li>
660                         <li>Removed closing PHP tags from all PHP files to avoid accidental output and potential 'cannot modify headers' errors.</li>
661                         <li>Removed &quot;scripts&quot; from the auto-load search path. Scripts were deprecated
662                                 in Version 1.4.1 (September 21, 2006). If you still need to use them for legacy reasons, they must now be manually loaded in each Controller.</li>
663                         <li>Added a <a href="general/reserved_names.html">Reserved Names</a> page to the userguide, and migrated reserved controller names into it.</li>
664                         <li>Added a <a href="general/common_functions.html">Common Functions</a> page to the userguide for globally available functions.</li>
665                         <li>Improved security and performance of xss_clean().</li>
666                 </ul>
667         </li>
668         </ul>
669
670 <h3>Bugfixes for 1.6.2</h3>
671 <ul>
672         <li>Fixed a bug where SET queries were not being handled as "write" queries.</li>
673         <li>Fixed a bug (#3191) with ORIG_PATH_INFO URI parsing.</li>
674         <li>Fixed a bug in DB Forge, when inserting an id field (#3456).</li>
675         <li>Fixed a bug in the table library that could cause identically constructed rows to be dropped (#3459).</li>
676         <li>Fixed DB Driver and MySQLi result driver checking for resources instead of objects (#3461).</li>
677         <li>Fixed an AR_caching error where it wasn't tracking table aliases (#3463).</li>
678         <li>Fixed a bug in AR compiling, where select statements with arguments got incorrectly escaped (#3478).</li>
679         <li>Fixed an incorrect documentation of $this-&gt;load-&gt;language (#3520).</li>
680         <li>Fixed bugs (#3523, #4350) in get_filenames() with recursion and problems with Windows when $include_path is used.</li>
681         <li>Fixed a bug (#4153) in the XML-RPC class preventing dateTime.iso8601 from being used.</li>
682         <li>Fixed an AR bug with or_where_not_in() (#4171).</li>
683         <li>Fixed a bug with <a href="libraries/input.html">xss_clean()</a> that would add semicolons to GET URI variable strings.</li>
684         <li>Fixed a bug (#4206) in the Directory Helper where the directory resource was not being closed, and minor improvements.</li>
685         <li>Fixed a bug in the FTP library where delete_dir() was not working recursively (#4215).</li>
686         <li>Fixed a Validation bug when set_rules() is used with a non-array field name and rule (#4220).</li>
687         <li>Fixed a bug (#4223) where DB caching would not work for returned DB objects or multiple DB connections.</li>
688         <li>Fixed a bug in the Upload library that might output the same error twice (#4390).</li>
689         <li>Fixed an AR bug when joining with a table alias and table prefix (#4400).</li>
690         <li>Fixed a bug in the DB class testing the $params argument.</li>
691         <li>Fixed a bug in the Table library where the integer 0 in cell data would be displayed as a blank cell.</li>
692         <li>Fixed a bug in <kbd>link_tag()</kbd> of the <a href="helpers/url_helper.html">URL helper</a> where a key was passed instead of a value.</li>
693         <li>Fixed a bug in DB_result::row() that prevented it from returning individual fields with MySQL NULL values.</li>
694         <li>Fixed a bug where SMTP emails were not having dot transformation performed on lines that begin with a dot.</li>
695         <li>Fixed a bug in display_error() in the DB driver that was instantiating new Language and Exception objects, and not using the error heading.</li>
696         <li>Fixed a bug (#4413) where a URI containing slashes only e.g. 'http://example.com/index.php?//' would result in PHP errors</li>
697         <li>Fixed an array to string conversion error in the Validation library (#4425)</li>
698         <li>Fixed bug (#4451, #4299, #4339) where failed transactions will not rollback when debug mode is enabled.</li>
699         <li>Fixed a bug (#4506) with overlay_watermark() in the Image library preventing support for PNG-24s with alpha transparency</li>
700         <li>Fixed assorted user guide typos (#3453, #4364, #4379, #4399, #4408, #4412, #4448, #4488).</li>
701         </ul>
702
703 <h2>Version 1.6.1</h2>
704 <p>Release Date: February 12, 2008<br />
705 Hg Tag: 1.6.1</p>
706 <ul>
707         <li>Active Record
708                 <ul>
709                         <li>Added <a href="./database/active_record.html#caching">Active Record Caching</a>.</li>
710                         <li>Made Active Record fully database-prefix aware.</li>
711                 </ul>
712         </li>
713         <li>Database drivers
714                 <ul>
715                         <li>Added support for setting client character set and collation for MySQLi.</li>
716                 </ul>
717         </li>
718         <li>Core Changes
719                 <ul>
720                         <li>Modified <kbd>xss_clean()</kbd> to be more intelligent with its handling of URL encoded strings.</li>
721                         <li>Added $_SERVER, $_FILES, $_ENV, and $_SESSION to sanitization of globals.</li>
722                         <li>Added a <a href="./helpers/path_helper.html">Path Helper</a>.</li>
723                         <li>Simplified <kbd>_reindex_segments()</kbd> in the URI class.</li>
724                         <li>Escaped the '-' in the default 'permitted_uri_chars' config item, to prevent errors if developers just try to add additional characters to the end of the default expression.</li>
725                         <li>Modified method calling to controllers to show a 404 when a private or protected method is accessed via a URL.</li>
726                         <li>Modified framework initiated 404s to log the controller and method for invalid requests.</li>
727                 </ul>
728         </li>
729         <li>Helpers
730                 <ul>
731                         <li>Modified <kbd>get_filenames()</kbd> in the File Helper to return FALSE if the $source_dir is not readable.</li>
732                 </ul>
733         </li>
734 </ul>
735
736
737 <h3>Bugfixes for 1.6.1</h3>
738 <ul>
739         <li>Deprecated is_numeric as a validation rule. Use of numeric and integer are preferred.</li>
740         <li>Fixed bug (#3379) in DBForge with SQLite for table creation.</li>
741         <li>Made Active Record fully database prefix aware (#3384).</li>
742         <li>Fixed a bug where DBForge was outputting invalid SQL in Postgres by adding brackets around the tables in FROM.</li>
743         <li>Changed the behaviour of Active Record's update() to make the WHERE clause optional (#3395).</li>
744         <li>Fixed a bug (#3396) where certain POST variables would cause a PHP warning.</li>
745         <li>Fixed a bug in query binding (#3402).</li>
746         <li>Changed order of SQL keywords in the Profiler $highlight array so OR would not be highlighted before ORDER BY.</li>
747         <li>Fixed a bug (#3404) where the MySQLi driver was testing if $this->conn_id was a resource instead of an object.</li>
748         <li>Fixed a bug (#3419) connecting to a database via a DSN string.</li>
749         <li>Fixed a bug (#3445) where the routed segment array was not re-indexed to begin with 1 when the default controller is used.</li>
750         <li>Fixed assorted user guide typos.</li>
751 </ul>
752
753
754
755 <h2>Version 1.6.0</h2>
756 <p>Release Date: January 30, 2008 </p>
757 <ul>
758         <li>DBForge
759                 <ul>
760                         <li>Added <a href="./database/forge.html">DBForge</a> to the database tools.</li>
761                         <li>Moved <kbd>create_database()</kbd> and <kbd>drop_database()</kbd> into <a href="./database/forge.html">DBForge</a>.</li>
762                         <li>Added <kbd>add_field()</kbd>, <kbd>add_key()</kbd>, <kbd>create_table()</kbd>, <kbd>drop_table()</kbd>, <kbd>add_column()</kbd>, <kbd>drop_column()</kbd>, <kbd>modify_column()</kbd> into <a href="./database/forge.html">DBForge</a>.</li>
763                 </ul>
764         </li>
765
766         <li>Active Record
767                 <ul>
768                         <li>Added <kbd>protect_identifiers()</kbd> in <a href="./database/active_record.html">Active Record</a>.</li>
769                         <li>All AR queries are backticked if appropriate to the database.</li>
770                         <li>Added <kbd>where_in()</kbd>, <kbd>or_where_in()</kbd>, <kbd>where_not_in()</kbd>,  <kbd>or_where_not_in()</kbd>, <kbd>not_like()</kbd> and <kbd>or_not_like()</kbd> to <a href="./database/active_record.html">Active Record</a>.</li>
771                         <li>Added support for <kbd>limit()</kbd>  into <kbd>update()</kbd> and <kbd>delete()</kbd> statements in  <a href="./database/active_record.html">Active Record</a>.</li>
772                         <li>Added <kbd>empty_table()</kbd> and <kbd>truncate_table()</kbd> to <a href="./database/active_record.html">Active Record</a>.</li>
773                         <li>Added the ability to pass an array of tables to the <kbd>delete()</kbd> statement in <a href="./database/active_record.html">Active Record</a>.</li>
774                         <li>Added <kbd>count_all_results()</kbd> function to <a href="./database/active_record.html">Active Record</a>.</li>
775                         <li>Added <kbd>select_max()</kbd>, <kbd>select_min()</kbd>, <kbd>select_avg()</kbd> and <kbd>select_sum()</kbd> to <a href="./database/active_record.html">Active Record</a>.</li>
776                         <li>Added the ability to use aliases with joins in <a href="./database/active_record.html">Active Record</a>.</li>
777                         <li>Added a third parameter to Active Record's <kbd>like()</kbd> clause to control where the wildcard goes. </li>
778                         <li>Added a third parameter to <kbd>set()</kbd> in <a href="./database/active_record.html">Active Record</a> that withholds escaping data.</li>
779                         <li>Changed the behaviour of variables submitted to the where() clause with no values to auto set &quot;IS NULL&quot;</li>
780                 </ul>
781         </li>
782
783         <li>Other Database Related
784                 <ul>
785                         <li>MySQL driver now requires MySQL 4.1+</li>
786                         <li>Added $this->DB->save_queries variable to DB driver, enabling queries to get saved or not. Previously they were always saved.</li>
787                         <li>Added $this->db->dbprefix() to manually add database prefixes.</li>
788                         <li>Added 'random' as an <kbd>order_by()</kbd> option , and removed &quot;rand()&quot; as a listed option as it was MySQL only.</li>
789                         <li>Added a check for NULL fields in the MySQL database backup utility.</li>
790                         <li>Added &quot;constrain_by_prefix&quot; parameter to db-&gt;list_table() function.  If set to TRUE it will limit the result to only table names with the current prefix.</li>
791                         <li>Deprecated from Active Record; <kbd>getwhere()</kbd> for <kbd>get_where()</kbd>; <kbd>groupby()</kbd> for <kbd>group_by()</kbd>; <kbd>havingor()</kbd> for <kbd>having_or()</kbd>; <kbd>orderby()</kbd> for <kbd>order_by</kbd>; <kbd>orwhere()</kbd> for <kbd>or_where()</kbd>; and <kbd>orlike()</kbd> for <kbd>or_like()</kbd>.</li>
792                         <li>Modified <kbd>csv_from_result()</kbd> to output CSV data more in the spirit of basic rules of RFC 4180.</li>
793                         <li>Added 'char_set' and 'dbcollat' database configuration settings, to explicitly set the client communication properly.</li>
794                         <li>Removed 'active_r' configuration setting and replaced with a global $active_record setting, which is more
795                                 in harmony with the global nature of the behavior (#1834).</li>
796                 </ul>
797         </li>
798
799         <li>Core changes
800                 <ul>
801                         <li>Added ability to load multiple views, whose content will be appended to the output in the order loaded.</li>
802                         <li>Added the ability to <a href="./general/autoloader.html">auto-load</a> <a href="./general/models.html">Models</a>.</li>
803                         <li>Reorganized the URI and Routes classes for better clarity.</li>
804                         <li>Added Compat.php to allow function overrides for older versions of PHP or PHP environments missing certain extensions / libraries</li>
805                         <li>Added memory usage, GET, URI string data, and individual query execution time to Profiler output.</li>
806                         <li>Deprecated Scaffolding.</li>
807                         <li>Added is_really_writable() to Common.php to provide a cross-platform reliable method of testing file/folder writability.</li>
808                 </ul>
809         </li>
810
811         <li>Libraries
812                 <ul>
813                         <li>Changed the load protocol of Models to allow for extension.</li>
814                         <li>Strengthened the Encryption library to help protect against man in the middle attacks when MCRYPT_MODE_CBC mode is used.</li>
815                         <li>Added Flashdata variables, session_id regeneration and configurable session update times to the <a href="./libraries/sessions.html">Session class.</a></li>
816                         <li>Removed 'last_visit' from the Session class.</li>
817                         <li>Added a language entry for valid_ip validation error.</li>
818                         <li>Modified prep_for_form() in the Validation class to accept arrays, adding support for POST array validation (via callbacks only)</li>
819                         <li>Added an &quot;integer&quot; rule into the Validation library.</li>
820                         <li>Added valid_base64() to the Validation library.</li>
821                         <li>Documented clear() in the <a href="../libraries/image_lib.html">Image Processing</a> library.</li>
822                         <li>Changed the behaviour of custom callbacks so that they no longer trigger the &quot;required&quot; rule. </li>
823                         <li>Modified Upload class $_FILES error messages to be more precise.</li>
824                         <li>Moved the safe mode and auth checks for the Email library into the constructor. </li>
825                         <li>Modified variable names in _ci_load() method of Loader class to avoid conflicts with view variables.</li>
826                         <li>Added a few additional mime type variations for CSV.</li>
827                         <li>Enabled the 'system' methods for the XML-RPC Server library, except for 'system.multicall' which is still disabled.</li>
828                 </ul>
829         </li>
830
831         <li>Helpers &amp; Plugins
832                 <ul>
833                         <li>Added link_tag() to the <a href="./helpers/html_helper.html">HTML helper.</a></li>
834                         <li>Added img() to the <a href="./helpers/html_helper.html">HTML helper.</a></li>
835                         <li>Added ability to <a href="./general/helpers.html">"extend" Helpers</a>.</li>
836                         <li>Added an <a href="./helpers/email_helper.html">email helper</a> into core helpers.</li>
837                         <li>Added <kbd>strip_quotes()</kbd> function to <a href="./helpers/string_helper.html">string helper</a>.</li>
838                         <li>Added <kbd>reduce_multiples()</kbd> function to <a href="./helpers/string_helper.html">string helper</a>.</li>
839                         <li>Added <kbd>quotes_to_entities()</kbd> function to <a href="./helpers/string_helper.html">string helper</a>.</li>
840                         <li>Added <kbd>form_fieldset()</kbd>, <kbd>form_fieldset_close()</kbd>, <kbd>form_label()</kbd>, and <kbd>form_reset()</kbd> function to <a href="./helpers/form_helper.html">form helper</a>.</li>
841                         <li>Added support for external urls in <kbd>form_open()</kbd>.</li>
842                         <li>Removed support for db_backup in MySQLi due to incompatible functions.</li>
843                         <li>Javascript Calendar plugin now uses the months and days from the calendar language file, instead of hard-coded values, internationalizing it.</li>
844                 </ul>
845         </li>
846
847
848         <li>Documentation Changes
849                 <ul>
850                         <li>Added <a href="./doc_style/index.html">Writing Documentation</a> section for the community to use in writing their own documentation.</li>
851                         <li>Added titles to all user manual pages.</li>
852                         <li>Added attributes into &lt;html&gt; of userguide for valid html.</li>
853                         <li>Added <a href="http://codeigniter.com/user_guide/libraries/zip.html">Zip Encoding Class</a> to the table of contents of the userguide.</li>
854                         <li>Moved part of the userguide menu javascript to an external file.</li>
855                         <li>Documented <kbd>distinct()</kbd> in <a href="./database/active_record.html">Active Record</a>. </li>
856                         <li>Documented the <kbd>timezones()</kbd> function in the <a href="./helpers/date_helper.html">Date Helper</a>.</li>
857                         <li>Documented unset_userdata in the <a href="./libraries/sessions.html">Session class</a>.</li>
858                         <li>Documented 2 config options to the <a href="./database/configuration.html">Database configuration</a> page.</li>
859                 </ul>
860         </li>
861 </ul>
862
863 <h3>Bug fixes for Version 1.6.0</h3>
864
865 <ul>
866         <li>Fixed a bug (#1813) preventing using $CI->db in the same application with returned database objects.</li>
867         <li>Fixed a bug (#1842) where the $this->uri->rsegments array would not include the 'index' method if routed to the controller without an implicit method.</li>
868         <li>Fixed a bug (#1872) where word_limiter() was not retaining whitespace.</li>
869         <li>Fixed a bug (#1890) in csv_from_result() where content that included the delimiter would break the file.</li>
870         <li>Fixed a bug (#2542)in the clean_email() method of the Email class to allow for non-numeric / non-sequential array keys.</li>
871         <li>Fixed a bug (#2545) in <kbd>_html_entity_decode_callback()</kbd> when 'global_xss_filtering' is enabled.</li>
872         <li>Fixed a bug (#2668) in the <a href="./libraries/parser.html">parser class</a> where numeric data was ignored.</li>
873         <li>Fixed a bug (#2679) where the &quot;previous&quot; pagination link would get drawn on the first page.</li>
874         <li>Fixed a bug (#2702) in _object_to_array that broke some types of inserts and updates.</li>
875         <li>Fixed a bug (#2732) in the SQLite driver for PHP 4.</li>
876         <li>Fixed a bug (#2754) in Pagination to scan for non-positive num_links.</li>
877         <li>Fixed a bug (#2762) in the <a href="./libraries/sessions.html">Session library</a> where user agent matching would fail on user agents ending with a space. </li>
878         <li>Fixed a bug (#2784) $field_names[] vs $Ffield_names[] in postgres and sqlite drivers.</li>
879         <li>Fixed a bug (#2810) in the typography helper causing extraneous paragraph tags when string contains tags.</li>
880         <li>Fixed a bug (#2849) where arguments passed to a subfolder controller method would be incorrectly shifted, dropping the 3rd segment value.</li>
881         <li>Fixed a bug (#2858) which referenced a wrong variable in the Image class.</li>
882         <li>Fixed a bug (#2875)when loading plugin files as _plugin. and not _pi.</li>
883         <li>Fixed a bug (#2912) in <kbd>get_filenames()</kbd> in the <a href="./helpers/file_helper.html">File Helper </a>where the array wasn't cleared after each call.</li>
884         <li>Fixed a bug (#2974) in <kbd>highlight_phrase()</kbd> that caused an error with slashes.</li>
885         <li>Fixed a bug (#3003) in the Encryption Library to support modes other than MCRYPT_MODE_ECB</li>
886         <li>Fixed a bug (#3015) in the <a href="./libraries/user_agent.html">User Agent library</a> where more then 2 languages where not reported with languages().</li>
887         <li>Fixed a bug (#3017) in the <a href="./libraries/email.html">Email</a> library where some timezones were calculated incorrectly. </li>
888         <li>Fixed a bug (#3024) in which master_dim wasn't getting reset by clear() in the Image library.</li>
889         <li>Fixed a bug (#3156) in Text Helper highlight_code() causing PHP tags to be handled incorrectly.</li>
890         <li>Fixed a bug (#3166) that prevented num_rows from working in Oracle.</li>
891         <li>Fixed a bug (#3175) preventing certain libraries from working properly when autoloaded in PHP 4.</li>
892         <li>Fixed a bug (#3267) in the Typography Helper where unordered list was listed &quot;un.</li>
893         <li>Fixed a bug (#3268) where the Router could leave '/' as the path.</li>
894         <li>Fixed a bug (#3279) where the Email class was sending the wrong Content-Transfer-Encoding for some character sets.</li>
895         <li>Fixed a bug (#3284) where the rsegment array would not be set properly if the requested URI contained more segments than the routed URI.</li>
896         <li>Removed extraneous load of $CFG in _display_cache() of the Output class (#3285).</li>
897         <li>Removed an extraneous call to loading models (#3286).</li>
898         <li>Fixed a bug (#3310) with sanitization of globals in the Input class that could unset CI's global variables.</li>
899         <li>Fixed a bug (#3314) which would cause the top level path to be deleted in delete_files() of the File helper.</li>
900         <li>Fixed a bug (#3328) where the smiley helper might return an undefined variable.</li>
901         <li>Fixed a bug (#3330) in the FTP class where a comparison wasn't getting made.</li>
902         <li>Removed an unused parameter from Profiler (#3332).</li>
903         <li>Fixed a bug in database driver where num_rows property wasn't getting updated.</li>
904         <li>Fixed a bug in the <a href="./libraries/file_uploading.html">upload library</a> when allowed_files wasn't defined.</li>
905         <li>Fixed a bug in <kbd>word_wrap()</kbd> of the Text Helper that incorrectly referenced an object. </li>
906         <li>Fixed a bug in Validation where <kbd>valid_ip()</kbd> wasn't called properly.</li>
907         <li>Fixed a bug in Validation where individual error messages for checkboxes wasn't supported.</li>
908         <li>Fixed a bug in captcha calling an invalid PHP function.</li>
909         <li>Fixed a bug in the cookie helper "set_cookie" function.  It was not honoring the config settings.</li>
910         <li>Fixed a bug that was making validation callbacks required even when not set as such.</li>
911         <li>Fixed a bug in the XML-RPC library so if a type is specified, a more intelligent decision is made as to the default type.</li>
912         <li>Fixed an example of comma-separated emails in the email library documentation.</li>
913         <li>Fixed an example in the Calendar library for Showing Next/Previous Month Links.</li>
914         <li>Fixed a typo in the database language file.</li>
915         <li>Fixed a typo in the image language file &quot;suppor&quot; to &quot;support&quot;.</li>
916         <li>Fixed an example for XML RPC.</li>
917         <li>Fixed an example of <kbd>accept_charset()</kbd> in the <a href="./libraries/user_agent.html">User Agent Library</a>.</li>
918         <li>Fixed a typo in the docblock comments that had CodeIgniter spelled CodeIgnitor.</li>
919         <li>Fixed a typo in the <a href="./helpers/string_helper.html">String Helper</a> (uniquid changed to uniqid).</li>
920         <li>Fixed typos in the email Language class (email_attachment_unredable, email_filed_smtp_login), and FTP Class (ftp_unable_to_remame).</li>
921         <li>Added a stripslashes()  into the Upload Library.</li>
922         <li>Fixed a series of grammatical and spelling errors in the language files.</li>
923         <li>Fixed assorted user guide typos.</li>
924 </ul>
925 <h2>Version 1.5.4</h2>
926 <p>Release Date: July 12, 2007 </p>
927 <ul>
928         <li>Added <a href="./libraries/language.html">custom Language files</a> to the <a href="./general/autoloader.html">autoload</a> options. </li>
929         <li>Added stripslashes() to the _clean_input_data() function in the <a href="./libraries/input.html">Input class</a> when magic quotes is on so that data will always be un-slashed within the framework.</li>
930         <li>Added array to string into the <a href="general/profiling.html">profiler</a>.</li>
931         <li>Added some additional mime types in application/config/mimes.php.</li>
932         <li>Added filename_security() method to <a href="./libraries/input.html">Input library</a>.</li>
933         <li>Added some additional arguments to the <a href="./helpers/inflector_helper.html">Inflection helper</a> singular() to compensate for words ending in "s".  Also added a force parameter to pluralize().</li>
934         <li>Added $config['charset'] to the config file.  Default value is 'UTF-8', used in some string handling functions.</li>
935         <li>Fixed MSSQL insert_id().</li>
936         <li>Fixed a logic error in the DB trans_status() function.  It was incorrectly returning TRUE on failure and FALSE on success.</li>
937         <li>Fixed a bug that was allowing multiple load attempts on extended classes.</li>
938         <li>Fixed a bug in the bootstrap file that was incorrectly attempting to discern the full server path even when it was explicity set by the user.</li>
939         <li>Fixed a bug in the escape_str() function in the MySQL driver.</li>
940         <li>Fixed a typo in the <a href="./libraries/calendar.html">Calendar library </a> </li>
941         <li>Fixed a typo in rpcs.php library</li>
942         <li>Fixed a bug in the <a href="./libraries/zip.html">Zip library</a>, providing PC Zip file compatibility with Mac OS X</li>
943         <li>Fixed a bug in router that was ignoring the scaffolding route for optimization </li>
944         <li>Fixed an IP validation bug.</li>
945         <li>Fixed a bug in display of POST keys in the <a href="./general/profiling.html">Profiler</a> output</li>
946         <li>Fixed a bug in display of queries with characters that would be interpreted as HTML in the <a href="./general/profiling.html">Profiler</a> output</li>
947         <li>Fixed a bug in display of Email class print debugger with characters that would be interpreted as HTML in the debugging output</li>
948         <li>Fixed a bug in the Content-Transfer-Encoding of HTML emails with the quoted-printable MIME type</li>
949         <li>Fixed a bug where one could unset certain PHP superglobals by setting them via GET or POST data</li>
950         <li>Fixed an undefined function error in the insert_id() function of the PostgreSQL driver</li>
951         <li>Fixed various doc typos. </li>
952         <li>Documented two functions from the <a href="./helpers/string_helper.html">String helper </a> that were missing from the user guide:  trim_slashes() and reduce_double_slashes().</li>
953         <li>Docs now validate to XHTML 1 transitional</li>
954         <li>Updated the XSS Filtering to take into account the IE expression() ability and improved certain deletions to prevent possible exploits</li>
955         <li>Modified the Router so that when Query Strings are Enabled, the controller trigger and function trigger values are sanitized for filename include security.</li>
956         <li>Modified the is_image() method in the Upload library to take into account Windows IE 6/7 eccentricities when dealing with MIMEs</li>
957         <li>Modified XSS Cleaning routine to be more performance friendly and compatible with PHP 5.2's new PCRE backtrack and recursion limits.</li>
958         <li>Modified the <a href="./helpers/url_helper.html">URL Helper</a> to type cast the $title as a string in case a numeric value is supplied</li>
959         <li>Modified Form Helper form_dropdown() to type cast the keys and values of the options array as strings, allowing numeric values to be properly set as 'selected'</li>
960         <li>Deprecated the use if <kbd>is_numeric()</kbd> in various places since it allows periods.  Due to compatibility problems with <kbd>ctype_digit()</kbd>, making it unreliable in some installations, the following regular expression was used instead:  <kbd>preg_match("/[^0-9]/", $n)</kbd></li>
961         <li>Deprecated: APPVER has been deprecated and replaced with CI_VERSION for clarity. </li>
962 </ul>
963 <h2>Version 1.5.3</h2>
964 <p>Release Date: April 15, 2007 </p>
965 <ul>
966         <li>Added array to string into the profiler </li>
967         <li>Code Igniter references updated to CodeIgniter </li>
968         <li>pMachine references updated to EllisLab </li>
969         <li>Fixed a bug in the repeater function of <a href="./helpers/string_helper.html">string helper</a>. </li>
970         <li>Fixed a bug in ODBC driver </li>
971         <li>Fixed a bug in result_array() that was returning an empty array when no result is produced.</li>
972         <li>Fixed a bug in the redirect function of the <a href="./helpers/url_helper.html">url helper</a>. </li>
973         <li>Fixed an undefined variable in Loader </li>
974         <li>Fixed a version bug in the Postgres driver </li>
975         <li>Fixed a bug in the textarea function of the form helper for use with strings</li>
976         <li>Fixed doc typos. </li>
977 </ul>
978 <h2>Version 1.5.2</h2>
979 <p>Release Date: February 13, 2007 </p>
980 <ul>
981         <li>Added <a href="./installation/downloads.html#svn">subversion information</a> to the <a href="./installation/downloads.html">downloads</a> page. </li>
982         <li>Added support for captions in the <a href="./libraries/table.html">Table Library</a> </li>
983         <li>Fixed a bug in the <a href="./helpers/download_helper.html">download_helper</a> that was causing Internet Explorer to load rather than download </li>
984         <li>Fixed a bug in the Active Record Join function that was not taking table prefixes into consideration.</li>
985         <li>Removed unescaped variables in error messages of Input and Router classes</li>
986         <li>Fixed a bug in the Loader that was causing errors on Libraries loaded twice. A debug message is now silently made in the log.  </li>
987         <li>Fixed a bug in the <a href="./helpers/form_helper.html">form helper</a> that gave textarea a value attribute </li>
988         <li>Fixed a bug in the <a href="./libraries/image_lib.php">Image Library</a> that was ignoring resizing the same size image </li>
989         <li>Fixed some doc typos.</li>
990 </ul>
991
992
993 <h2>Version 1.5.1</h2>
994 <p>Release Date: November 23, 2006</p>
995 <ul>
996         <li>Added support for submitting arrays of libraries in the $this-&gt;load-&gt;library function.</li>
997         <li>Added support for naming custom library files in lower or uppercase.</li>
998         <li>Fixed a bug related to output buffering.</li>
999         <li>Fixed a bug in the active record class that was not resetting query data after a completed query.</li>
1000         <li>Fixed a bug that was suppressing errors in controllers.</li>
1001         <li>Fixed a problem that can cause a loop to occur when the config file is missing.</li>
1002         <li>Fixed a bug that occurred when multiple models were loaded with the third parameter set to TRUE.</li>
1003         <li>Fixed an oversight that was not unsetting globals properly in the input sanitize function.</li>
1004         <li>Fixed some bugs in the Oracle DB driver.</li>
1005         <li>Fixed an incorrectly named variable in the MySQLi result driver.</li>
1006         <li>Fixed some doc typos.</li>
1007 </ul>
1008 <h2>Version 1.5.0.1</h2>
1009 <p>Release Date: October 31, 2006</p>
1010 <ul>
1011 <li>Fixed a problem in which duplicate attempts to load helpers and classes were not being stopped.</li>
1012 <li>Fixed a bug in the word_wrap() helper function.</li>
1013 <li>Fixed an invalid color Hex number in the Profiler class.</li>
1014 <li>Fixed a corrupted image in the user guide.</li>
1015 </ul>
1016
1017
1018
1019 <h2>Version 1.5.0</h2>
1020 <p>Release Date: October 30, 2006</p>
1021
1022 <ul>
1023 <li>Added <a href="./database/utilities.html">DB utility class</a>, permitting DB backups, CVS or XML files from DB results, and various other functions.</li>
1024 <li>Added <a href="./database/caching.html">Database Caching Class</a>.</li>
1025 <li>Added <a href="./database/transactions.html">transaction support</a> to the database classes.</li>
1026 <li>Added <a href="./general/profiling.html">Profiler Class</a> which generates a report of Benchmark execution times, queries, and POST data at the bottom of your pages.</li>
1027 <li>Added <a href="./libraries/user_agent.html">User Agent Library</a> which allows browsers, robots, and mobile devises to be identified.</li>
1028 <li>Added <a href="./libraries/table.html">HTML Table Class</a> , enabling tables to be generated from arrays or database results.</li>
1029 <li>Added <a href="./libraries/zip.html">Zip Encoding Library</a>.</li>
1030 <li>Added <a href="./libraries/ftp.html">FTP Library</a>.</li>
1031 <li>Added the ability to <a href="./general/creating_libraries.html">extend libraries</a> and <a href="./general/core_classes.html">extend core classes</a>, in addition to being able to replace them.</li>
1032 <li>Added support for storing <a href="./general/models.html">models within sub-folders</a>.</li>
1033 <li>Added <a href="./helpers/download_helper.html">Download Helper</a>.</li>
1034 <li>Added <a href="./database/queries.html">simple_query()</a> function to the database classes</li>
1035 <li>Added <a href="./helpers/date_helper.html">standard_date()</a> function to the Date Helper.</li>
1036 <li>Added <a href="./database/results.html">$query->free_result()</a> to database class.</li>
1037 <li>Added <a href="./database/fields.html">$query->list_fields()</a> function to database class</li>
1038 <li>Added <a href="./database/helpers.html">$this->db->platform()</a> function</li>
1039 <li>Added new <a href="./helpers/file_helper.html">File Helper</a>:  get_filenames()</li>
1040 <li>Added new helper:  <a href="./helpers/smiley_helper.html">Smiley Helper</a></li>
1041 <li>Added support for &lt;ul> and &lt;ol> lists in the  <a href="./helpers/html_helper.html">HTML Helper</a></li>
1042 <li>Added the ability to rewrite <a href="./general/alternative_php.html">short tags</a> on-the-fly, converting them to standard PHP statements, for those servers that do not support short tags.  This allows the cleaner syntax to be used regardless of whether it's supported by the server.</li>
1043 <li>Added the ability to <a href="./general/managing_apps.html">rename or relocate the "application" folder</a>.</li>
1044 <li>Added more thorough initialization in the upload class so that all class variables are reset.</li>
1045 <li>Added "is_numeric" to validation, which uses the native PHP is_numeric function.</li>
1046 <li>Improved the URI handler to make it more reliable when the $config['uri_protocol'] item is set to AUTO.</li>
1047 <li>Moved most of the functions in the Controller class into the Loader class, allowing fewer reserved function names for controllers when running under PHP 5.</li>
1048 <li>Updated the DB Result class to return an empty array when $query->result() doesn't produce a result.</li>
1049 <li>Updated the <dfn>input->cookie()</dfn> and <dfn>input->post()</dfn> functions in <a href="./libraries/input.html">Input Class</a> to permit arrays contained cookies that are arrays to be run through the XSS filter.</li>
1050 <li>Documented three functions from the <a href="./libraries/validation.html">Validation class</a> that were missing from the user guide:  set_select(), set_radio(), and set_checkbox().</li>
1051 <li>Fixed a bug in the Email class related to SMTP Helo data.</li>
1052 <li>Fixed a bug in the word wrapping helper and function in the email class.</li>
1053 <li>Fixed a bug in the validation class.</li>
1054 <li>Fixed a bug in the typography helper that was incorrectly wrapping block level elements in paragraph tags.</li>
1055 <li>Fixed a problem in the form_prep() function that was double encoding entities.</li>
1056 <li>Fixed a bug that affects some versions of PHP when output buffering is nested.</li>
1057 <li>Fixed a bug that caused CI to stop working when the PHP magic __get() or __set() functions were used within models or controllers.</li>
1058 <li>Fixed a pagination bug that was permitting negative values in the URL.</li>
1059 <li>Fixed an oversight in which the Loader class was not allowed to be extended.</li>
1060 <li>Changed <dfn>_get_config()</dfn> to <dfn>get_config()</dfn> since the function is not a private one.</li>
1061 <li><strong>Deprecated "init" folder</strong>.  Initialization happens automatically now.  <a href="./general/creating_libraries.html">Please see documentation</a>.</li>
1062 <li><strong>Deprecated</strong> $this->db->field_names()  USE  $this->db->list_fields()</li>
1063 <li><strong>Deprecated</strong> the <dfn>$config['log_errors']</dfn> item from the config.php file.  Instead, <dfn>$config['log_threshold']</dfn> can be set to "0" to turn it off.</li>
1064 </ul>
1065
1066
1067
1068
1069 <h2>Version 1.4.1</h2>
1070 <p>Release Date: September 21, 2006</p>
1071
1072 <ul>
1073 <li>Added a new feature that passes URI segments directly to your function calls as parameters. See the <a href="./general/controllers.html">Controllers</a> page for more info.</li>
1074 <li>Added support for a function named <dfn>_output()</dfn>, which when used in your controllers will received the final rendered output from the output class.  More info in the <a href="controllers.html">Controllers</a> page.</li>
1075 <li>Added several new functions in the <a href="./libraries/uri.html">URI Class</a> to let you retrieve and manipulate URI segments that have been re-routed using the <a href="routing.html">URI Routing</a> feature. Previously, the URI class did not permit you to access any re-routed URI segments, but now it does.</li>
1076 <li>Added <a href="./libraries/output.html">$this->output->set_header()</a> function, which allows you to set server headers.</li>
1077 <li>Updated plugins, helpers, and language classes to allow your <dfn>application</dfn> folder to contain its own plugins, helpers, and language folders.  Previously they were always treated as global for your entire installation.  If your application folder contains any of these resources they will be used <em>instead</em> the global ones.</li>
1078 <li>Added <a href="./helpers/inflector_helper.html">Inflector helper</a>.</li>
1079 <li>Added <dfn>element()</dfn> function in the <a href="./helpers/array_helper.html">array helper</a>.</li>
1080 <li>Added <dfn>RAND()</dfn> to active record <dfn>orderby()</dfn> function.</li>
1081 <li>Added <dfn>delete_cookie()</dfn> and <dfn>get_cookie()</dfn> to <a href="./helpers/cookie_helper.html">Cookie helper</a>, even though the input class has a cookie fetching function.</li>
1082 <li>Added Oracle database driver (still undergoing testing so it might have some bugs).</li>
1083 <li>Added the ability to combine pseudo-variables and php variables in the template parser class.</li>
1084 <li>Added output compression option to the config file.</li>
1085 <li>Removed the is_numeric test from the db->escape() function.</li>
1086 <li>Fixed a MySQLi bug that was causing error messages not to contain proper error data.</li>
1087 <li>Fixed a bug in the email class which was causing it to ignore explicitly set alternative headers.</li>
1088 <li>Fixed a bug that was causing a PHP error when the Exceptions class was called within the get_config() function since it was causing problems.</li>
1089 <li>Fixed an oversight in the cookie helper in which the config file cookie settings were not being honored.</li>
1090 <li>Fixed an oversight in the upload class. An item mentioned in the 1.4 changelog was missing.</li>
1091 <li>Added some code to allow email attachments to be reset when sending batches of email.</li>
1092 <li>Deprecated the <dfn>application/scripts</dfn> folder. It will continue to work for legacy users, but it is recommended that you create your own
1093 <a href="./general/libraries.html">libraries</a> or <a href="./general/models.html">models</a> instead.  It was originally added before CI had user libraries or models, but it's not needed anymore.</li>
1094 <li>Deprecated the <dfn>$autoload['core']</dfn> item from the <kbd>autoload.php</kbd> file.  Instead, please now use: <kbd>$autoload['libraries']</kbd></li>
1095 <li>Deprecated the following database functions: $this->db->smart_escape_str() and $this->db->fields().</li>
1096 </ul>
1097
1098
1099
1100 <h2>Version 1.4.0</h2>
1101 <p>Release Date: September 17, 2006</p>
1102
1103 <ul>
1104 <li>Added <a href="./general/hooks.html">Hooks</a> feature, enabling you to tap into and modify the inner workings of the framework without hacking the core files.</li>
1105 <li>Added the ability to organize controller files <a href="./general/controllers.html">into sub-folders</a>.  Kudos to Marco for <a href="http://codeigniter.com/forums/viewthread/627/">suggesting</a> this (and the next two) feature.</li>
1106 <li>Added regular expressions support for <a href="./general/routing.html">routing rules</a>.</li>
1107 <li>Added the ability to <a href="./general/controllers.html">remap function calls</a> within your controllers.</li>
1108 <li>Added the ability to <a href="./general/core_classes.html">replace core system classes</a> with your own classes.</li>
1109 <li>Added support for % character in URL.</li>
1110 <li>Added the ability to supply full URLs using the <a href="./helpers/url_helper.html">anchor()</a> helper function.</li>
1111 <li>Added mode parameter to <a href="./helpers/file_helper.html">file_write()</a> helper.</li>
1112 <li>Added support for changing the port number in the <a href="./database/configuration.html">Postgres driver</a>.</li>
1113 <li>Moved the list of "allowed URI characters" out of the Router class and into the config file.</li>
1114 <li>Moved the MIME type array out of the Upload class and into its own file in the applications/config/ folder.</li>
1115 <li>Updated the Upload class to allow the upload field name to be set when calling <a href="./libraries/file_uploading.html">do_upload()</a>.</li>
1116 <li>Updated the <a href="./libraries/config.html">Config Library</a> to be able to load config files silently, and to be able to assign config files to their own index (to avoid collisions if you use multiple config files).</li>
1117 <li>Updated the URI Protocol code to allow more options so that URLs will work more reliably in different environments.</li>
1118 <li>Updated the <dfn>form_open()</dfn> helper to allow the GET method to be used.</li>
1119 <li>Updated the MySQLi <dfn>execute()</dfn> function with some code to help prevent lost connection errors.</li>
1120 <li>Updated the SQLite Driver to check for object support before attempting to return results as objects.  If unsupported it returns an array.</li>
1121 <li>Updated the Models loader function to allow multiple loads of the same model.</li>
1122 <li>Updated the MS SQL driver so that single quotes are escaped.</li>
1123 <li>Updated the Postgres and ODBC drivers for better compatibility.</li>
1124 <li>Removed a strtolower() call that was changing URL segments to lower case.</li>
1125 <li>Removed some references that were interfering with PHP 4.4.1 compatibility.</li>
1126 <li>Removed backticks from Postgres class since these are not needed.</li>
1127 <li>Renamed <dfn>display()</dfn> to <dfn>_display()</dfn> in the Output class to make it clear that it's a private function.</li>
1128 <li>Deprecated the hash() function due to a naming conflict with a native PHP function with the same name.  Please use <kbd>dohash()</kbd> instead.</li>
1129 <li>Fixed an bug that was preventing the input class from unsetting GET variables.</li>
1130 <li>Fixed a router bug that was making it too greedy when matching end segments.</li>
1131 <li>Fixed a bug that was preventing multiple discrete database calls.</li>
1132 <li>Fixed a bug in which loading a language file was producing a "file contains no data" message.</li>
1133 <li>Fixed a session bug caused by the XSS Filtering feature inadvertently changing the case of certain words.</li>
1134 <li>Fixed some missing prefixes when using the database prefix feature.</li>
1135 <li>Fixed a typo in the Calendar class (cal_november).</li>
1136 <li>Fixed a bug in the <dfn>form_checkbox()</dfn> helper.</li>
1137 <li>Fixed a bug that was allowing the second segment of the URI to be identical to the class name.</li>
1138 <li>Fixed an evaluation bug in the database initialization function.</li>
1139 <li>Fixed a minor bug in one of the error messages in the language class.</li>
1140 <li>Fixed a bug in the date helper <dfn>timespan</dfn> function.</li>
1141 <li>Fixed an undefined variable in the DB Driver class.</li>
1142 <li>Fixed a bug in which dollar signs used as binding replacement values in the DB class would be treated as RegEx back-references.</li>
1143 <li>Fixed a bug in the <dfn>set_hash()</dfn> function which was preventing MD5 from being used.</li>
1144 <li>Fixed a couple bugs in the Unit Testing class.</li>
1145 <li>Fixed an incorrectly named variable in the Validation class.</li>
1146 <li>Fixed an incorrectly named variable in the URI class.</li>
1147 <li>Fixed a bug in the config class that was preventing the base URL from being called properly.</li>
1148 <li>Fixed a bug in the validation class that was not permitting callbacks if the form field was empty.</li>
1149 <li>Fixed a problem that was preventing scaffolding from working properly with MySQLi.</li>
1150 <li>Fixed some MS SQL bugs.</li>
1151 <li>Fixed some doc typos.</li>
1152 </ul>
1153
1154
1155
1156 <h2>Version 1.3.3</h2>
1157 <p>Release Date: June 1, 2006</p>
1158
1159 <ul>
1160
1161 <li>Models do <strong>not</strong> connect automatically to the database as of this version. <a href="./general/models.html">More info here</a>.</li>
1162 <li>Updated the Sessions class to utilize the active record class when running session related queries.  Previously the queries assumed MySQL syntax.</li>
1163 <li>Updated alternator() function to re-initialize when called with no arguments, allowing multiple calls.</li>
1164 <li>Fixed a bug in the active record "having" function.</li>
1165 <li>Fixed a problem in the validation class which was making checkboxes be ignored when required.</li>
1166 <li>Fixed a bug in the word_limiter() helper function.  It was cutting off the fist word.</li>
1167 <li>Fixed a bug in the xss_clean function due to a PHP bug that affects some versions of html_entity_decode.</li>
1168 <li>Fixed a validation bug that was preventing rules from being set twice in one controller.</li>
1169 <li>Fixed a calendar bug that was not letting it use dynamically loaded languages.</li>
1170 <li>Fixed a bug in the active record class when using WHERE clauses with LIKE</li>
1171 <li>Fixed a bug in the hash() security helper.</li>
1172 <li>Fixed some typos.</li>
1173 </ul>
1174
1175
1176
1177
1178 <h2>Version 1.3.2</h2>
1179 <p>Release Date: April 17, 2006</p>
1180
1181 <ul>
1182 <li>Changed the behavior of the validation class such that if a "required" rule is NOT explicitly stated for a field then all other tests get ignored.</li>
1183 <li>Fixed a bug in the Controller class that was causing it to look in the local "init" folder instead of the main system one.</li>
1184 <li>Fixed a bug in the init_pagination file.  The $config item was not being set correctly.</li>
1185 <li>Fixed a bug in the auto typography helper that was causing inconsistent behavior.</li>
1186 <li>Fixed a couple bugs in the Model class.</li>
1187 <li>Fixed some documentation typos and errata.</li>
1188 </ul>
1189
1190
1191
1192 <h2>Version 1.3.1</h2>
1193 <p>Release Date: April 11, 2006</p>
1194
1195 <ul>
1196 <li>Added a <a href="./libraries/unit_testing.html">Unit Testing Library</a>.</li>
1197 <li>Added the ability to pass objects to the <strong>insert()</strong> and <strong>update()</strong>  database functions.
1198 This feature enables you to (among other things) use your  <a href="./general/models.html">Model class</a> variables to run queries with. See the Models page for details.</li>
1199 <li>Added the ability to pass objects to the <a href="./general/views.html">view loading function</a>: $this->load->view('my_view', <var>$object</var>);</li>
1200 <li>Added <kbd>getwhere</kbd> function to <a href="./database/active_record.html">Active Record class</a>.</li>
1201 <li>Added <kbd>count_all</kbd> function to <a href="./database/active_record.html">Active Record class</a>.</li>
1202 <li>Added language file for scaffolding and fixed a scaffolding bug that occurs when there are no rows in the specified table.</li>
1203 <li>Added <a href="./database/queries.html">$this->db->last_query()</a>, which allows you to view your last query that was run.</li>
1204 <li>Added a new mime type to the upload class for better compatibility.</li>
1205 <li>Changed how cache files are read to prevent PHP errors if the cache file contains an XML tag, which PHP wants to interpret as a short tag.</li>
1206 <li>Fixed a bug in a couple of the active record functions (where and orderby).</li>
1207 <li>Fixed a bug in the image library when realpath() returns false.</li>
1208 <li>Fixed a bug in the Models that was preventing libraries from being used within them.</li>
1209 <li>Fixed a bug in the "exact_length" function of the validation class.</li>
1210 <li>Fixed some typos in the user guide</li>
1211 </ul>
1212
1213
1214 <h2>Version 1.3</h2>
1215 <p>Release Date: April 3, 2006</p>
1216
1217 <ul>
1218 <li>Added support for <a href="models.html">Models</a>.</li>
1219 <li>Redesigned the database libraries to support additional RDBMs (Postgres, MySQLi, etc.).</li>
1220 <li>Redesigned the <a href="./database/active_record.html">Active Record class</a> to enable more varied types of queries with simpler syntax, and advanced features like JOINs.</li>
1221 <li>Added a feature to the database class that lets you run <a href="./database/call_function.html">custom function calls</a>.</li>
1222 <li>Added support for <a href="controllers.html">private functions</a> in your controllers.  Any controller function name that starts with an underscore will not be served by a URI request.</li>
1223 <li>Added the ability to pass your own initialization parameters to your <a href="creating_libraries.html">custom core libraries</a> when using $this->load->library()</li>
1224 <li>Added support for running standard <a href="urls.html">query string URLs</a>.  These can be optionally enabled in your config file.</li>
1225 <li>Added the ability to  <a href="urls.html">specify a "suffix"</a>, which will be appended to your URLs.  For example, you could add .html to your URLs, making them appear static. This feature is enabled in your config file.</li>
1226 <li>Added a new error template for use with native PHP errors.</li>
1227 <li>Added "alternator" function in the <a href="./helpers/string_helper.html">string helpers</a>.</li>
1228 <li>Removed slashing from the input class. After much debate we decided to kill this feature.</li>
1229 <li>Change the commenting style in the scripts to the PEAR standard so that IDEs and tools like phpDocumenter can harvest the comments.</li>
1230 <li>Added better class and function name-spacing to avoid collisions with user developed classes. All CodeIgniter classes are now prefixed with <dfn>CI_</dfn> and
1231 all controller methods are prefixed with <dfn>_ci</dfn> to avoid controller collisions. A list of reserved function names can be <a href="controllers.html">found here</a>.</li>
1232 <li>Redesigned how the "CI" super object is referenced, depending on whether PHP 4 or 5 is being run, since PHP 5 allows a more graceful way to manage objects that utilizes a bit less resources.</li>
1233 <li>Deprecated: <var>$this->db->use_table()</var> has been deprecated. Please read the <a href="./database/active_record.html">Active Record</a> page for information.</li>
1234 <li>Deprecated: <var>$this->db->smart_escape_str()</var> has been deprecated. Please use this instead: <var>$this->db->escape()</var></li>
1235 <li>Fixed a bug in the exception handler which was preventing some PHP errors from showing up.</li>
1236 <li>Fixed a typo in the URI class.  $this->total_segment() should be plural: $this->total_segments()</li>
1237 <li>Fixed some typos in the default calendar template</li>
1238 <li>Fixed some typos in the user guide</li>
1239 </ul>
1240
1241
1242
1243
1244
1245
1246
1247
1248 <h2>Version 1.2</h2>
1249 <p>Release Date: March 21, 2006</p>
1250
1251 <ul>
1252 <li>Redesigned some internal aspects of the framework to resolve scoping problems that surfaced during the beta tests. The problem was most notable when instantiating classes in your constructors, particularly if those classes in turn did work in their constructors.</li>
1253 <li>Added a global function named <a href="ancillary_classes.html">get_instance()</a> allowing the main CodeIgniter object to be accessible throughout your own classes.</li>
1254 <li>Added new <a href="./helpers/file_helper.html">File Helper</a>:  delete_files()</li>
1255 <li>Added new <a href="./helpers/url_helper.html">URL Helpers</a>:  base_url(), index_page()</li>
1256 <li>Added the ability to create your own <a href="creating_libraries.html">core libraries</a> and store them in your local application directory.</li>
1257 <li>Added an <kbd>overwrite</kbd> option to the <a href="./libraries/file_uploading.html">Upload class</a>, enabling files to be overwritten rather than having the file name appended.</li>
1258 <li>Added Javascript Calendar plugin.</li>
1259 <li>Added search feature to user guide.  Note: This is done using Google, which at the time of this writing has not crawled all the pages of the docs.</li>
1260 <li>Updated the parser class so that it allows tag pars within other tag pairs.</li>
1261 <li>Fixed a bug in the DB "where" function.</li>
1262 <li>Fixed a bug that was preventing custom config files to be auto-loaded.</li>
1263 <li>Fixed a bug in the mysql class bind feature that prevented question marks in the replacement data.</li>
1264 <li>Fixed some bugs in the xss_clean function</li>
1265 </ul>
1266
1267
1268
1269
1270
1271 <h2>Version Beta 1.1</h2>
1272 <p>Release Date: March 10, 2006</p>
1273
1274 <ul>
1275 <li>Added a <a href="./libraries/calendar.html">Calendaring class</a>.</li>
1276 <li>Added support for running <a href="managing_apps.html">multiple applications</a> that share a common CodeIgniter backend.</li>
1277 <li>Moved the "uri protocol" variable from the index.php file into the config.php file</li>
1278 <li>Fixed a problem that was preventing certain function calls from working within constructors.</li>
1279 <li>Fixed a problem that was preventing the $this->load->library function from working in constructors.</li>
1280 <li>Fixed a bug that occurred when the session class was loaded using the auto-load routine.</li>
1281 <li>Fixed a bug that can happen with PHP versions that do not support the E_STRICT constant</li>
1282 <li>Fixed a data type error in the form_radio function (form helper)</li>
1283 <li>Fixed a bug that was preventing the xss_clean function from being called from the validation class.</li>
1284 <li>Fixed the cookie related config names, which were incorrectly specified as $conf rather than $config</li>
1285 <li>Fixed a pagination problem in the scaffolding.</li>
1286 <li>Fixed a bug in the mysql class "where" function.</li>
1287 <li>Fixed a regex problem in some code that trimmed duplicate slashes.</li>
1288 <li>Fixed a bug in the br() function in the HTML helper</li>
1289 <li>Fixed a syntax mistake in the form_dropdown function in the Form Helper.</li>
1290 <li>Removed the "style" attributes form the form helpers.</li>
1291 <li>Updated the documentation. Added "next/previous" links to each page and fixed various typos.</li>
1292 </ul>
1293
1294 <h2>Version Beta 1.0 </h2>
1295 <p>Release Date: February 28, 2006</p>
1296 <p>First publicly released version.</p>
1297
1298 </div>
1299 <!-- END CONTENT -->
1300
1301
1302 <div id="footer">
1303 <p>
1304 Previous Topic:&nbsp;&nbsp;<a href="license.html">License Agreement</a>
1305 &nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
1306 <a href="#top">Top of Page</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
1307 <a href="index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
1308 Next Topic:&nbsp;&nbsp;<a href="./general/credits.html">Credits</a>
1309 </p>
1310 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p>
1311 </div>
1312
1313 </body>
1314 </html>