blob: 4d700bcd02421aaf745f854268e9bbaabfe66185 [file] [log] [blame]
Andrey Andreevc5769952019-01-16 17:49:35 +02001
2
3<!DOCTYPE html>
4<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
5<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
6<head>
7 <meta charset="utf-8">
8 <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
10 <title>Change Log &mdash; CodeIgniter 3.1.10 documentation</title>
11
12
13
14
15 <link rel="shortcut icon" href="_static/ci-icon.ico"/>
16
17
18
19 <link href='https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'>
20
21
22
23
24
25
26
27
28
29 <link rel="stylesheet" href="_static/css/citheme.css" type="text/css" />
30
31
32
33 <link rel="index" title="Index"
34 href="genindex.html"/>
35 <link rel="search" title="Search" href="search.html"/>
36 <link rel="top" title="CodeIgniter 3.1.10 documentation" href="index.html"/>
37 <link rel="next" title="The MIT License (MIT)" href="license.html"/>
38 <link rel="prev" title="XML Helper" href="helpers/xml_helper.html"/>
39
40
41 <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
42
43</head>
44
45<body class="wy-body-for-nav" role="document">
46
47 <div id="nav">
48 <div id="nav_inner">
49
50
51
52 <div id="pulldown-menu" class="ciNav">
53 <ul>
54<li class="toctree-l1"><a class="reference internal" href="general/welcome.html">Welcome to CodeIgniter</a></li>
55</ul>
56<ul>
57<li class="toctree-l1"><a class="reference internal" href="installation/index.html">Installation Instructions</a><ul>
58<li class="toctree-l2"><a class="reference internal" href="installation/downloads.html">Downloading CodeIgniter</a></li>
59<li class="toctree-l2"><a class="reference internal" href="installation/index.html">Installation Instructions</a></li>
60<li class="toctree-l2"><a class="reference internal" href="installation/upgrading.html">Upgrading From a Previous Version</a></li>
61<li class="toctree-l2"><a class="reference internal" href="installation/troubleshooting.html">Troubleshooting</a></li>
62</ul>
63</li>
64</ul>
65<ul>
66<li class="toctree-l1"><a class="reference internal" href="overview/index.html">CodeIgniter Overview</a><ul>
67<li class="toctree-l2"><a class="reference internal" href="overview/getting_started.html">Getting Started</a></li>
68<li class="toctree-l2"><a class="reference internal" href="overview/at_a_glance.html">CodeIgniter at a Glance</a></li>
69<li class="toctree-l2"><a class="reference internal" href="overview/features.html">Supported Features</a></li>
70<li class="toctree-l2"><a class="reference internal" href="overview/appflow.html">Application Flow Chart</a></li>
71<li class="toctree-l2"><a class="reference internal" href="overview/mvc.html">Model-View-Controller</a></li>
72<li class="toctree-l2"><a class="reference internal" href="overview/goals.html">Architectural Goals</a></li>
73</ul>
74</li>
75</ul>
76<ul>
77<li class="toctree-l1"><a class="reference internal" href="tutorial/index.html">Tutorial</a><ul>
78<li class="toctree-l2"><a class="reference internal" href="tutorial/static_pages.html">Static pages</a></li>
79<li class="toctree-l2"><a class="reference internal" href="tutorial/news_section.html">News section</a></li>
80<li class="toctree-l2"><a class="reference internal" href="tutorial/create_news_items.html">Create news items</a></li>
81<li class="toctree-l2"><a class="reference internal" href="tutorial/conclusion.html">Conclusion</a></li>
82</ul>
83</li>
84</ul>
85<ul>
86<li class="toctree-l1"><a class="reference internal" href="contributing/index.html">Contributing to CodeIgniter</a><ul>
87<li class="toctree-l2"><a class="reference internal" href="documentation/index.html">Writing CodeIgniter Documentation</a></li>
88<li class="toctree-l2"><a class="reference internal" href="DCO.html">Developer’s Certificate of Origin 1.1</a></li>
89</ul>
90</li>
91</ul>
92<ul>
93<li class="toctree-l1"><a class="reference internal" href="general/index.html">General Topics</a><ul>
94<li class="toctree-l2"><a class="reference internal" href="general/urls.html">CodeIgniter URLs</a></li>
95<li class="toctree-l2"><a class="reference internal" href="general/controllers.html">Controllers</a></li>
96<li class="toctree-l2"><a class="reference internal" href="general/reserved_names.html">Reserved Names</a></li>
97<li class="toctree-l2"><a class="reference internal" href="general/views.html">Views</a></li>
98<li class="toctree-l2"><a class="reference internal" href="general/models.html">Models</a></li>
99<li class="toctree-l2"><a class="reference internal" href="general/helpers.html">Helpers</a></li>
100<li class="toctree-l2"><a class="reference internal" href="general/libraries.html">Using CodeIgniter Libraries</a></li>
101<li class="toctree-l2"><a class="reference internal" href="general/creating_libraries.html">Creating Libraries</a></li>
102<li class="toctree-l2"><a class="reference internal" href="general/drivers.html">Using CodeIgniter Drivers</a></li>
103<li class="toctree-l2"><a class="reference internal" href="general/creating_drivers.html">Creating Drivers</a></li>
104<li class="toctree-l2"><a class="reference internal" href="general/core_classes.html">Creating Core System Classes</a></li>
105<li class="toctree-l2"><a class="reference internal" href="general/ancillary_classes.html">Creating Ancillary Classes</a></li>
106<li class="toctree-l2"><a class="reference internal" href="general/hooks.html">Hooks - Extending the Framework Core</a></li>
107<li class="toctree-l2"><a class="reference internal" href="general/autoloader.html">Auto-loading Resources</a></li>
108<li class="toctree-l2"><a class="reference internal" href="general/common_functions.html">Common Functions</a></li>
109<li class="toctree-l2"><a class="reference internal" href="general/compatibility_functions.html">Compatibility Functions</a></li>
110<li class="toctree-l2"><a class="reference internal" href="general/routing.html">URI Routing</a></li>
111<li class="toctree-l2"><a class="reference internal" href="general/errors.html">Error Handling</a></li>
112<li class="toctree-l2"><a class="reference internal" href="general/caching.html">Caching</a></li>
113<li class="toctree-l2"><a class="reference internal" href="general/profiling.html">Profiling Your Application</a></li>
114<li class="toctree-l2"><a class="reference internal" href="general/cli.html">Running via the CLI</a></li>
115<li class="toctree-l2"><a class="reference internal" href="general/managing_apps.html">Managing your Applications</a></li>
116<li class="toctree-l2"><a class="reference internal" href="general/environments.html">Handling Multiple Environments</a></li>
117<li class="toctree-l2"><a class="reference internal" href="general/alternative_php.html">Alternate PHP Syntax for View Files</a></li>
118<li class="toctree-l2"><a class="reference internal" href="general/security.html">Security</a></li>
119<li class="toctree-l2"><a class="reference internal" href="general/styleguide.html">PHP Style Guide</a></li>
120</ul>
121</li>
122</ul>
123<ul>
124<li class="toctree-l1"><a class="reference internal" href="libraries/index.html">Libraries</a><ul>
125<li class="toctree-l2"><a class="reference internal" href="libraries/benchmark.html">Benchmarking Class</a></li>
126<li class="toctree-l2"><a class="reference internal" href="libraries/caching.html">Caching Driver</a></li>
127<li class="toctree-l2"><a class="reference internal" href="libraries/calendar.html">Calendaring Class</a></li>
128<li class="toctree-l2"><a class="reference internal" href="libraries/cart.html">Shopping Cart Class</a></li>
129<li class="toctree-l2"><a class="reference internal" href="libraries/config.html">Config Class</a></li>
130<li class="toctree-l2"><a class="reference internal" href="libraries/email.html">Email Class</a></li>
131<li class="toctree-l2"><a class="reference internal" href="libraries/encrypt.html">Encrypt Class</a></li>
132<li class="toctree-l2"><a class="reference internal" href="libraries/encryption.html">Encryption Library</a></li>
133<li class="toctree-l2"><a class="reference internal" href="libraries/file_uploading.html">File Uploading Class</a></li>
134<li class="toctree-l2"><a class="reference internal" href="libraries/form_validation.html">Form Validation</a></li>
135<li class="toctree-l2"><a class="reference internal" href="libraries/ftp.html">FTP Class</a></li>
136<li class="toctree-l2"><a class="reference internal" href="libraries/image_lib.html">Image Manipulation Class</a></li>
137<li class="toctree-l2"><a class="reference internal" href="libraries/input.html">Input Class</a></li>
138<li class="toctree-l2"><a class="reference internal" href="libraries/javascript.html">Javascript Class</a></li>
139<li class="toctree-l2"><a class="reference internal" href="libraries/language.html">Language Class</a></li>
140<li class="toctree-l2"><a class="reference internal" href="libraries/loader.html">Loader Class</a></li>
141<li class="toctree-l2"><a class="reference internal" href="libraries/migration.html">Migrations Class</a></li>
142<li class="toctree-l2"><a class="reference internal" href="libraries/output.html">Output Class</a></li>
143<li class="toctree-l2"><a class="reference internal" href="libraries/pagination.html">Pagination Class</a></li>
144<li class="toctree-l2"><a class="reference internal" href="libraries/parser.html">Template Parser Class</a></li>
145<li class="toctree-l2"><a class="reference internal" href="libraries/security.html">Security Class</a></li>
146<li class="toctree-l2"><a class="reference internal" href="libraries/sessions.html">Session Library</a></li>
147<li class="toctree-l2"><a class="reference internal" href="libraries/table.html">HTML Table Class</a></li>
148<li class="toctree-l2"><a class="reference internal" href="libraries/trackback.html">Trackback Class</a></li>
149<li class="toctree-l2"><a class="reference internal" href="libraries/typography.html">Typography Class</a></li>
150<li class="toctree-l2"><a class="reference internal" href="libraries/unit_testing.html">Unit Testing Class</a></li>
151<li class="toctree-l2"><a class="reference internal" href="libraries/uri.html">URI Class</a></li>
152<li class="toctree-l2"><a class="reference internal" href="libraries/user_agent.html">User Agent Class</a></li>
153<li class="toctree-l2"><a class="reference internal" href="libraries/xmlrpc.html">XML-RPC and XML-RPC Server Classes</a></li>
154<li class="toctree-l2"><a class="reference internal" href="libraries/zip.html">Zip Encoding Class</a></li>
155</ul>
156</li>
157</ul>
158<ul>
159<li class="toctree-l1"><a class="reference internal" href="database/index.html">Database Reference</a><ul>
160<li class="toctree-l2"><a class="reference internal" href="database/examples.html">Quick Start: Usage Examples</a></li>
161<li class="toctree-l2"><a class="reference internal" href="database/configuration.html">Database Configuration</a></li>
162<li class="toctree-l2"><a class="reference internal" href="database/connecting.html">Connecting to a Database</a></li>
163<li class="toctree-l2"><a class="reference internal" href="database/queries.html">Running Queries</a></li>
164<li class="toctree-l2"><a class="reference internal" href="database/results.html">Generating Query Results</a></li>
165<li class="toctree-l2"><a class="reference internal" href="database/helpers.html">Query Helper Functions</a></li>
166<li class="toctree-l2"><a class="reference internal" href="database/query_builder.html">Query Builder Class</a></li>
167<li class="toctree-l2"><a class="reference internal" href="database/transactions.html">Transactions</a></li>
168<li class="toctree-l2"><a class="reference internal" href="database/metadata.html">Getting MetaData</a></li>
169<li class="toctree-l2"><a class="reference internal" href="database/call_function.html">Custom Function Calls</a></li>
170<li class="toctree-l2"><a class="reference internal" href="database/caching.html">Query Caching</a></li>
171<li class="toctree-l2"><a class="reference internal" href="database/forge.html">Database Manipulation with Database Forge</a></li>
172<li class="toctree-l2"><a class="reference internal" href="database/utilities.html">Database Utilities Class</a></li>
173<li class="toctree-l2"><a class="reference internal" href="database/db_driver_reference.html">Database Driver Reference</a></li>
174</ul>
175</li>
176</ul>
177<ul>
178<li class="toctree-l1"><a class="reference internal" href="helpers/index.html">Helpers</a><ul>
179<li class="toctree-l2"><a class="reference internal" href="helpers/array_helper.html">Array Helper</a></li>
180<li class="toctree-l2"><a class="reference internal" href="helpers/captcha_helper.html">CAPTCHA Helper</a></li>
181<li class="toctree-l2"><a class="reference internal" href="helpers/cookie_helper.html">Cookie Helper</a></li>
182<li class="toctree-l2"><a class="reference internal" href="helpers/date_helper.html">Date Helper</a></li>
183<li class="toctree-l2"><a class="reference internal" href="helpers/directory_helper.html">Directory Helper</a></li>
184<li class="toctree-l2"><a class="reference internal" href="helpers/download_helper.html">Download Helper</a></li>
185<li class="toctree-l2"><a class="reference internal" href="helpers/email_helper.html">Email Helper</a></li>
186<li class="toctree-l2"><a class="reference internal" href="helpers/file_helper.html">File Helper</a></li>
187<li class="toctree-l2"><a class="reference internal" href="helpers/form_helper.html">Form Helper</a></li>
188<li class="toctree-l2"><a class="reference internal" href="helpers/html_helper.html">HTML Helper</a></li>
189<li class="toctree-l2"><a class="reference internal" href="helpers/inflector_helper.html">Inflector Helper</a></li>
190<li class="toctree-l2"><a class="reference internal" href="helpers/language_helper.html">Language Helper</a></li>
191<li class="toctree-l2"><a class="reference internal" href="helpers/number_helper.html">Number Helper</a></li>
192<li class="toctree-l2"><a class="reference internal" href="helpers/path_helper.html">Path Helper</a></li>
193<li class="toctree-l2"><a class="reference internal" href="helpers/security_helper.html">Security Helper</a></li>
194<li class="toctree-l2"><a class="reference internal" href="helpers/smiley_helper.html">Smiley Helper</a></li>
195<li class="toctree-l2"><a class="reference internal" href="helpers/string_helper.html">String Helper</a></li>
196<li class="toctree-l2"><a class="reference internal" href="helpers/text_helper.html">Text Helper</a></li>
197<li class="toctree-l2"><a class="reference internal" href="helpers/typography_helper.html">Typography Helper</a></li>
198<li class="toctree-l2"><a class="reference internal" href="helpers/url_helper.html">URL Helper</a></li>
199<li class="toctree-l2"><a class="reference internal" href="helpers/xml_helper.html">XML Helper</a></li>
200</ul>
201</li>
202</ul>
203
204 </div>
205
206
207 </div>
208</div>
209<div id="nav2">
210 <a href="#" id="openToc">
211 <img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAARgAA/+4ADkFkb2JlAGTAAAAAAf/bAIQABAMDAwMDBAMDBAYEAwQGBwUEBAUHCAYGBwYGCAoICQkJCQgKCgwMDAwMCgwMDQ0MDBERERERFBQUFBQUFBQUFAEEBQUIBwgPCgoPFA4ODhQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgAKwCaAwERAAIRAQMRAf/EAHsAAQAABwEBAAAAAAAAAAAAAAABAwQFBgcIAgkBAQAAAAAAAAAAAAAAAAAAAAAQAAEDAwICBwYEAgsAAAAAAAIBAwQAEQUSBiEHkROTVNQWGDFBUVIUCHEiMtOUFWGBobHRQlMkZIRVEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwDSC+ygkOOaUoKigUCgUCgUCgUCgUCgUCgUCgkuGguIP9FBMFb0Hqg7We+3jlmIqqYFf4ub+/QYlnOR/LqIBKGFUbf8qWv971BytQXXE7Y3Lnm3HsFhp2TaZJAdchRXpIgSpdEJWxJEW3xoKV7F5OMy7JkQn2o7D6w33XGjEAkoiqrJEqIiOIiKuhePCgqp22dyYyS3CyWHnQ5joG61HkRnmnTbaFSMhExRVQRRVJU9iUHjE7ez+fJ0MFipmUNhBV8YUd2SoIV9KkjQla9ltegttBdPLW4/qocL+UTfrMiHW4+P9M71shuyrqaHTcxsl7jegpsji8nh5ZwMvDfgTm0RTjSmjYdFCS6KoOIipdFunCgmNYTMv457MMY6U7iI6oMieDDhRm1VbIhuoOkbqtuK0Hpzb+eZcYZexUxt6UyUqK2cd0SdjtgrhOgijcgERUlJOCIl6CpgbP3blRI8XgMjNARAyKNDfeRBdFDBVUAXgQrqH4pxoJTu2NysY97LP4ac1io5q1InHFeGO24LnVKJuKOkSQ/yKir+rh7aCLG1dzypZQI2FnvTgccYOM3FeN0XWERXAUEFVQgQkUktdLpegm+Td3/Xli/L+S/mYNJIOF9G/wBeLKrZHFb0akG6W1WtQWSg3Dyg5e7V3fipE3O4/wCrktyzYA+ufas2LbZIlmnAT2kvuoN1wft95augilglX/tzP3qCu9O3LL/wV/i5v79BvmTADq14UGu91467Z6U9y0HzH/ncj/U/sT/CgynZG7I2NezpZGUjIycJkYkZSG+uQ81pbBNKLxJfjwoMqZ3/ALYHl35AJ7/cuwHcu5k7r1Q5pHetBjquqVVJWGxj9Zrtcl/Ggy3dHMvauR3HFZj5nHNxSyW5JISYDMoIwx8tFIGHZhPNaykGapr6rUAiicEoMG21lMRj8buPAz8xhJrr7uOeiPTCyAwXUaGR1mgozbTusOsFLEiJ7fbQa/h7gcjy2H3V6xppwDNtUSxCJIqp7valBuWVzJ22xuCROXNNZiJkMtms0DbjUkAZjzoDrTMd9dDRI44ZC2YsrYdKWP2WDT2S3N9dNdlRYrGMYc06IURXSYb0igrpWS485xVNS6nF4rwslkoMwnbpgZLB7bmt5uMweAhDEl4B5uSLzzqTnnyVpW2jaJHRMSIjdDiiotvy3DOE5rYTEbkl5yFn28k7JyG4c7AU2HtLH1uKfaiMPI40CdYbpNtmLdwTSn5rewLNld+7TLdeal4WarWBkbVKBjgdElMJJwAAY5fl4kB3b1fp4XvagsGS3FjJfLzDNtS8aeXx7LzT7TyzByQE5PccRGRC0ZRUDRV6y62vbjagzLmJzS2vuPK43JY6aP1TW6Jz+RIWyFtyC06y3EkiiinAo7YCqfq1AqqnGgsOH3lhZO8d1pmcpB8j5XIm9OYlBJSQ/FSS4427DKO0RC8AlcEMhFdViRR1WDWR5t3WXVuL1d106kG9vdeye2g60+1FDyW0shIcXVpyroXt8I8dfd+NB1vioAdWnD3UF1+gD4UFc6CEKpagxXN43rwJLUHz7yX2c8zokt9uHlsPIhA4aRnnHJTLptIS6CNsY7iASpxUUMkReGpfbQW0vtN5pitvrsN28rwtBD0nc0+/Yft5XhaB6TuaXfsP28rwtA9J3NPv2H7eV4Wgek7mn37D9vK8LQPSdzT79h+3leFoHpO5pd+w/byvC0D0nc0u/Yft5XhaB6TuaXfsP28rwtA9J3NLv2H7eV4Wgek7ml37D9vK8LQPSdzS79h+3leFoHpO5p9+w/byvC0E9r7Reazy2HIYVPxkS/CUHVn26cosxyv2g7h89LYmZSXOenvLEQ1YaQ222RATcQCP8rSGqqA8S02W2pQ6FhMoAIlqCtsnwoCpdKClejI4i3Sgtb+GBxVuNBSFt1pV/RQefLjPyUDy4z8lA8uM/JQPLjPyUDy4z8lA8uM/JQPLjPyUDy4z8lA8uM/JQPLjPyUDy4z8lA8utJ/koJ7WCbBU/LQXOPAFq1koK8B0pag90CggtBBf6qB0UDooHRQOigdFA6KB0UDooHRQOigdFA6KB0UDooI0EaBQf//Z" title="Toggle Table of Contents" alt="Toggle Table of Contents" />
212 </a>
213</div>
214
215 <div class="wy-grid-for-nav">
216
217
218 <nav data-toggle="wy-nav-shift" class="wy-nav-side">
219 <div class="wy-side-nav-search">
220
221 <a href="index.html" class="fa fa-home"> CodeIgniter</a>
222
223
224<div role="search">
225 <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
226 <input type="text" name="q" placeholder="Search docs" />
227 <input type="hidden" name="check_keywords" value="yes" />
228 <input type="hidden" name="area" value="default" />
229 </form>
230</div>
231 </div>
232
233 <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
234
235
236
237 <ul>
238<li class="toctree-l1"><a class="reference internal" href="general/welcome.html">Welcome to CodeIgniter</a></li>
239</ul>
240<ul>
241<li class="toctree-l1"><a class="reference internal" href="installation/index.html">Installation Instructions</a><ul>
242<li class="toctree-l2"><a class="reference internal" href="installation/downloads.html">Downloading CodeIgniter</a></li>
243<li class="toctree-l2"><a class="reference internal" href="installation/index.html">Installation Instructions</a></li>
244<li class="toctree-l2"><a class="reference internal" href="installation/upgrading.html">Upgrading From a Previous Version</a></li>
245<li class="toctree-l2"><a class="reference internal" href="installation/troubleshooting.html">Troubleshooting</a></li>
246</ul>
247</li>
248</ul>
249<ul>
250<li class="toctree-l1"><a class="reference internal" href="overview/index.html">CodeIgniter Overview</a><ul>
251<li class="toctree-l2"><a class="reference internal" href="overview/getting_started.html">Getting Started</a></li>
252<li class="toctree-l2"><a class="reference internal" href="overview/at_a_glance.html">CodeIgniter at a Glance</a></li>
253<li class="toctree-l2"><a class="reference internal" href="overview/features.html">Supported Features</a></li>
254<li class="toctree-l2"><a class="reference internal" href="overview/appflow.html">Application Flow Chart</a></li>
255<li class="toctree-l2"><a class="reference internal" href="overview/mvc.html">Model-View-Controller</a></li>
256<li class="toctree-l2"><a class="reference internal" href="overview/goals.html">Architectural Goals</a></li>
257</ul>
258</li>
259</ul>
260<ul>
261<li class="toctree-l1"><a class="reference internal" href="tutorial/index.html">Tutorial</a><ul>
262<li class="toctree-l2"><a class="reference internal" href="tutorial/static_pages.html">Static pages</a></li>
263<li class="toctree-l2"><a class="reference internal" href="tutorial/news_section.html">News section</a></li>
264<li class="toctree-l2"><a class="reference internal" href="tutorial/create_news_items.html">Create news items</a></li>
265<li class="toctree-l2"><a class="reference internal" href="tutorial/conclusion.html">Conclusion</a></li>
266</ul>
267</li>
268</ul>
269<ul>
270<li class="toctree-l1"><a class="reference internal" href="contributing/index.html">Contributing to CodeIgniter</a><ul>
271<li class="toctree-l2"><a class="reference internal" href="documentation/index.html">Writing CodeIgniter Documentation</a></li>
272<li class="toctree-l2"><a class="reference internal" href="DCO.html">Developer’s Certificate of Origin 1.1</a></li>
273</ul>
274</li>
275</ul>
276<ul>
277<li class="toctree-l1"><a class="reference internal" href="general/index.html">General Topics</a><ul>
278<li class="toctree-l2"><a class="reference internal" href="general/urls.html">CodeIgniter URLs</a></li>
279<li class="toctree-l2"><a class="reference internal" href="general/controllers.html">Controllers</a></li>
280<li class="toctree-l2"><a class="reference internal" href="general/reserved_names.html">Reserved Names</a></li>
281<li class="toctree-l2"><a class="reference internal" href="general/views.html">Views</a></li>
282<li class="toctree-l2"><a class="reference internal" href="general/models.html">Models</a></li>
283<li class="toctree-l2"><a class="reference internal" href="general/helpers.html">Helpers</a></li>
284<li class="toctree-l2"><a class="reference internal" href="general/libraries.html">Using CodeIgniter Libraries</a></li>
285<li class="toctree-l2"><a class="reference internal" href="general/creating_libraries.html">Creating Libraries</a></li>
286<li class="toctree-l2"><a class="reference internal" href="general/drivers.html">Using CodeIgniter Drivers</a></li>
287<li class="toctree-l2"><a class="reference internal" href="general/creating_drivers.html">Creating Drivers</a></li>
288<li class="toctree-l2"><a class="reference internal" href="general/core_classes.html">Creating Core System Classes</a></li>
289<li class="toctree-l2"><a class="reference internal" href="general/ancillary_classes.html">Creating Ancillary Classes</a></li>
290<li class="toctree-l2"><a class="reference internal" href="general/hooks.html">Hooks - Extending the Framework Core</a></li>
291<li class="toctree-l2"><a class="reference internal" href="general/autoloader.html">Auto-loading Resources</a></li>
292<li class="toctree-l2"><a class="reference internal" href="general/common_functions.html">Common Functions</a></li>
293<li class="toctree-l2"><a class="reference internal" href="general/compatibility_functions.html">Compatibility Functions</a></li>
294<li class="toctree-l2"><a class="reference internal" href="general/routing.html">URI Routing</a></li>
295<li class="toctree-l2"><a class="reference internal" href="general/errors.html">Error Handling</a></li>
296<li class="toctree-l2"><a class="reference internal" href="general/caching.html">Caching</a></li>
297<li class="toctree-l2"><a class="reference internal" href="general/profiling.html">Profiling Your Application</a></li>
298<li class="toctree-l2"><a class="reference internal" href="general/cli.html">Running via the CLI</a></li>
299<li class="toctree-l2"><a class="reference internal" href="general/managing_apps.html">Managing your Applications</a></li>
300<li class="toctree-l2"><a class="reference internal" href="general/environments.html">Handling Multiple Environments</a></li>
301<li class="toctree-l2"><a class="reference internal" href="general/alternative_php.html">Alternate PHP Syntax for View Files</a></li>
302<li class="toctree-l2"><a class="reference internal" href="general/security.html">Security</a></li>
303<li class="toctree-l2"><a class="reference internal" href="general/styleguide.html">PHP Style Guide</a></li>
304</ul>
305</li>
306</ul>
307<ul>
308<li class="toctree-l1"><a class="reference internal" href="libraries/index.html">Libraries</a><ul>
309<li class="toctree-l2"><a class="reference internal" href="libraries/benchmark.html">Benchmarking Class</a></li>
310<li class="toctree-l2"><a class="reference internal" href="libraries/caching.html">Caching Driver</a></li>
311<li class="toctree-l2"><a class="reference internal" href="libraries/calendar.html">Calendaring Class</a></li>
312<li class="toctree-l2"><a class="reference internal" href="libraries/cart.html">Shopping Cart Class</a></li>
313<li class="toctree-l2"><a class="reference internal" href="libraries/config.html">Config Class</a></li>
314<li class="toctree-l2"><a class="reference internal" href="libraries/email.html">Email Class</a></li>
315<li class="toctree-l2"><a class="reference internal" href="libraries/encrypt.html">Encrypt Class</a></li>
316<li class="toctree-l2"><a class="reference internal" href="libraries/encryption.html">Encryption Library</a></li>
317<li class="toctree-l2"><a class="reference internal" href="libraries/file_uploading.html">File Uploading Class</a></li>
318<li class="toctree-l2"><a class="reference internal" href="libraries/form_validation.html">Form Validation</a></li>
319<li class="toctree-l2"><a class="reference internal" href="libraries/ftp.html">FTP Class</a></li>
320<li class="toctree-l2"><a class="reference internal" href="libraries/image_lib.html">Image Manipulation Class</a></li>
321<li class="toctree-l2"><a class="reference internal" href="libraries/input.html">Input Class</a></li>
322<li class="toctree-l2"><a class="reference internal" href="libraries/javascript.html">Javascript Class</a></li>
323<li class="toctree-l2"><a class="reference internal" href="libraries/language.html">Language Class</a></li>
324<li class="toctree-l2"><a class="reference internal" href="libraries/loader.html">Loader Class</a></li>
325<li class="toctree-l2"><a class="reference internal" href="libraries/migration.html">Migrations Class</a></li>
326<li class="toctree-l2"><a class="reference internal" href="libraries/output.html">Output Class</a></li>
327<li class="toctree-l2"><a class="reference internal" href="libraries/pagination.html">Pagination Class</a></li>
328<li class="toctree-l2"><a class="reference internal" href="libraries/parser.html">Template Parser Class</a></li>
329<li class="toctree-l2"><a class="reference internal" href="libraries/security.html">Security Class</a></li>
330<li class="toctree-l2"><a class="reference internal" href="libraries/sessions.html">Session Library</a></li>
331<li class="toctree-l2"><a class="reference internal" href="libraries/table.html">HTML Table Class</a></li>
332<li class="toctree-l2"><a class="reference internal" href="libraries/trackback.html">Trackback Class</a></li>
333<li class="toctree-l2"><a class="reference internal" href="libraries/typography.html">Typography Class</a></li>
334<li class="toctree-l2"><a class="reference internal" href="libraries/unit_testing.html">Unit Testing Class</a></li>
335<li class="toctree-l2"><a class="reference internal" href="libraries/uri.html">URI Class</a></li>
336<li class="toctree-l2"><a class="reference internal" href="libraries/user_agent.html">User Agent Class</a></li>
337<li class="toctree-l2"><a class="reference internal" href="libraries/xmlrpc.html">XML-RPC and XML-RPC Server Classes</a></li>
338<li class="toctree-l2"><a class="reference internal" href="libraries/zip.html">Zip Encoding Class</a></li>
339</ul>
340</li>
341</ul>
342<ul>
343<li class="toctree-l1"><a class="reference internal" href="database/index.html">Database Reference</a><ul>
344<li class="toctree-l2"><a class="reference internal" href="database/examples.html">Quick Start: Usage Examples</a></li>
345<li class="toctree-l2"><a class="reference internal" href="database/configuration.html">Database Configuration</a></li>
346<li class="toctree-l2"><a class="reference internal" href="database/connecting.html">Connecting to a Database</a></li>
347<li class="toctree-l2"><a class="reference internal" href="database/queries.html">Running Queries</a></li>
348<li class="toctree-l2"><a class="reference internal" href="database/results.html">Generating Query Results</a></li>
349<li class="toctree-l2"><a class="reference internal" href="database/helpers.html">Query Helper Functions</a></li>
350<li class="toctree-l2"><a class="reference internal" href="database/query_builder.html">Query Builder Class</a></li>
351<li class="toctree-l2"><a class="reference internal" href="database/transactions.html">Transactions</a></li>
352<li class="toctree-l2"><a class="reference internal" href="database/metadata.html">Getting MetaData</a></li>
353<li class="toctree-l2"><a class="reference internal" href="database/call_function.html">Custom Function Calls</a></li>
354<li class="toctree-l2"><a class="reference internal" href="database/caching.html">Query Caching</a></li>
355<li class="toctree-l2"><a class="reference internal" href="database/forge.html">Database Manipulation with Database Forge</a></li>
356<li class="toctree-l2"><a class="reference internal" href="database/utilities.html">Database Utilities Class</a></li>
357<li class="toctree-l2"><a class="reference internal" href="database/db_driver_reference.html">Database Driver Reference</a></li>
358</ul>
359</li>
360</ul>
361<ul>
362<li class="toctree-l1"><a class="reference internal" href="helpers/index.html">Helpers</a><ul>
363<li class="toctree-l2"><a class="reference internal" href="helpers/array_helper.html">Array Helper</a></li>
364<li class="toctree-l2"><a class="reference internal" href="helpers/captcha_helper.html">CAPTCHA Helper</a></li>
365<li class="toctree-l2"><a class="reference internal" href="helpers/cookie_helper.html">Cookie Helper</a></li>
366<li class="toctree-l2"><a class="reference internal" href="helpers/date_helper.html">Date Helper</a></li>
367<li class="toctree-l2"><a class="reference internal" href="helpers/directory_helper.html">Directory Helper</a></li>
368<li class="toctree-l2"><a class="reference internal" href="helpers/download_helper.html">Download Helper</a></li>
369<li class="toctree-l2"><a class="reference internal" href="helpers/email_helper.html">Email Helper</a></li>
370<li class="toctree-l2"><a class="reference internal" href="helpers/file_helper.html">File Helper</a></li>
371<li class="toctree-l2"><a class="reference internal" href="helpers/form_helper.html">Form Helper</a></li>
372<li class="toctree-l2"><a class="reference internal" href="helpers/html_helper.html">HTML Helper</a></li>
373<li class="toctree-l2"><a class="reference internal" href="helpers/inflector_helper.html">Inflector Helper</a></li>
374<li class="toctree-l2"><a class="reference internal" href="helpers/language_helper.html">Language Helper</a></li>
375<li class="toctree-l2"><a class="reference internal" href="helpers/number_helper.html">Number Helper</a></li>
376<li class="toctree-l2"><a class="reference internal" href="helpers/path_helper.html">Path Helper</a></li>
377<li class="toctree-l2"><a class="reference internal" href="helpers/security_helper.html">Security Helper</a></li>
378<li class="toctree-l2"><a class="reference internal" href="helpers/smiley_helper.html">Smiley Helper</a></li>
379<li class="toctree-l2"><a class="reference internal" href="helpers/string_helper.html">String Helper</a></li>
380<li class="toctree-l2"><a class="reference internal" href="helpers/text_helper.html">Text Helper</a></li>
381<li class="toctree-l2"><a class="reference internal" href="helpers/typography_helper.html">Typography Helper</a></li>
382<li class="toctree-l2"><a class="reference internal" href="helpers/url_helper.html">URL Helper</a></li>
383<li class="toctree-l2"><a class="reference internal" href="helpers/xml_helper.html">XML Helper</a></li>
384</ul>
385</li>
386</ul>
387
388
389
390 </div>
391 &nbsp;
392 </nav>
393
394 <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
395
396
397 <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
398 <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
399 <a href="index.html">CodeIgniter</a>
400 </nav>
401
402
403
404 <div class="wy-nav-content">
405 <div class="rst-content">
406 <div role="navigation" aria-label="breadcrumbs navigation">
407 <ul class="wy-breadcrumbs">
408 <li><a href="index.html">Docs</a> &raquo;</li>
409
410 <li>Change Log</li>
411 <li class="wy-breadcrumbs-aside">
412
413 </li>
414 <div style="float:right;margin-left:5px;" id="closeMe">
415 <img title="Classic Layout" alt="classic layout" src="data:image/gif;base64,R0lGODlhFAAUAJEAAAAAADMzM////wAAACH5BAUUAAIALAAAAAAUABQAAAImlI+py+0PU5gRBRDM3DxbWoXis42X13USOLauUIqnlsaH/eY6UwAAOw==" />
416 </div>
417 </ul>
418 <hr/>
419</div>
420 <div role="main" class="document">
421
422 <div class="section" id="change-log">
423<h1>Change Log<a class="headerlink" href="#change-log" title="Permalink to this headline"></a></h1>
424<div class="section" id="version-3-1-10">
425<h2>Version 3.1.10<a class="headerlink" href="#version-3-1-10" title="Permalink to this headline"></a></h2>
426<p>Release Date: Jan 16, 2019</p>
427<ul class="simple">
428<li>General Changes<ul>
429<li>Added ‘ssl_verify’ support to the ‘pdo/mysql’ <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> driver.</li>
430<li>Renamed <a class="reference internal" href="helpers/inflector_helper.html"><span class="doc">Inflector Helper</span></a> function <code class="docutils literal"><span class="pre">is_countable()</span></code> to <a class="reference internal" href="helpers/inflector_helper.html#word_is_countable" title="word_is_countable"><code class="xref php php-func docutils literal"><span class="pre">word_is_countable()</span></code></a> due to the former colliding with one introduced in PHP 7.3.0.</li>
431</ul>
432</li>
433</ul>
434<div class="section" id="bug-fixes-for-3-1-10">
435<h3>Bug fixes for 3.1.10<a class="headerlink" href="#bug-fixes-for-3-1-10" title="Permalink to this headline"></a></h3>
436<ul class="simple">
437<li>Fixed a bug (#5526) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> had a syntax error in its ‘memcached’ driver.</li>
438<li>Fixed a bug (#5542) - <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> method <code class="docutils literal"><span class="pre">modify_column()</span></code> always made fields <code class="docutils literal"><span class="pre">NOT</span> <span class="pre">NULL</span></code> when attempting to modify their nullable property under PostgreSQL.</li>
439<li>Fixed a bug (#5561) - <a class="reference internal" href="database/index.html"><span class="doc">Database Library</span></a> didn’t allow SSL connection configuration with only the ‘ssl_verify’ option when using the ‘mysqli’ driver.</li>
440<li>Fixed a bug (#5545) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> crashed due to a caching-related error with the ‘files’ driver.</li>
441<li>Fixed a bug (#5571) - <a class="reference internal" href="libraries/xmlrpc.html"><span class="doc">XML-RPC Library</span></a> had a typo that triggered an <code class="docutils literal"><span class="pre">E_WARNING</span></code> message on PHP 7.2.</li>
442<li>Fixed a bug (#5587) - <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> method <code class="docutils literal"><span class="pre">create_table()</span></code> generated an <code class="docutils literal"><span class="pre">E_WARNING</span></code> message.</li>
443<li>Fixed a bug (#5590) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> rule <strong>valid_base64</strong> didn’t have a default error message.</li>
444<li>Fixed a bug (#5624) - <a class="reference internal" href="database/index.html"><span class="doc">Database Library</span></a> methods <code class="docutils literal"><span class="pre">list_fields()</span></code>, <code class="docutils literal"><span class="pre">field_exists()</span></code> returned incorrect results after tables are modified.</li>
445<li>Fixed a bug (#5627) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> driver ‘mysqli’ triggered an <code class="docutils literal"><span class="pre">E_WARNING</span></code> message if there’s no <code class="docutils literal"><span class="pre">'port'</span></code> specified in the database configuration.</li>
446<li>Fixed a bug (#5651) - <a class="reference internal" href="database/caching.html"><span class="doc">Database Caching</span></a> could try to delete non-existent cache files due to a race condition.</li>
447<li>Fixed a bug (#5652) - <a class="reference internal" href="helpers/captcha_helper.html"><span class="doc">CAPTCHA Helper</span></a> function <a class="reference internal" href="helpers/captcha_helper.html#create_captcha" title="create_captcha"><code class="xref php php-func docutils literal"><span class="pre">create_captcha()</span></code></a> didn’t comply with CSS standards.</li>
448<li>Fixed a bug (#5605) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> didn’t nullify array inputs that are expected to be strings.</li>
449</ul>
450</div>
451</div>
452<div class="section" id="version-3-1-9">
453<h2>Version 3.1.9<a class="headerlink" href="#version-3-1-9" title="Permalink to this headline"></a></h2>
454<p>Release Date: Jun 12, 2018</p>
455<ul>
456<li><p class="first"><strong>Security</strong></p>
457<blockquote>
458<div><ul class="simple">
459<li>Updated <a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL Helper</span></a> function <a class="reference internal" href="helpers/url_helper.html#auto_link" title="auto_link"><code class="xref php php-func docutils literal"><span class="pre">auto_link()</span></code></a> to add <code class="docutils literal"><span class="pre">rel=&quot;noopener&quot;</span></code> to generated links in order to prevent tab hijacking.</li>
460<li>Fixed a possible session fixation vulnerability where the <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> enabled <code class="docutils literal"><span class="pre">session.use_strict_mode</span></code> but it didn’t actually do anything (thanks to Aamer Shah, Prasanna Kumar).</li>
461</ul>
462</div></blockquote>
463</li>
464<li><p class="first">General Changes</p>
465<ul class="simple">
466<li>Updated <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">limit()</span></code> to allow <code class="docutils literal"><span class="pre">0</span></code> values.</li>
467<li>Updated <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> and <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> to discard the results of failed <code class="docutils literal"><span class="pre">idn_to_ascii()</span></code> calls while validating e-mail addresses.</li>
468</ul>
469</li>
470</ul>
471<div class="section" id="bug-fixes-for-3-1-9">
472<h3>Bug fixes for 3.1.9<a class="headerlink" href="#bug-fixes-for-3-1-9" title="Permalink to this headline"></a></h3>
473<ul class="simple">
474<li>Fixed a regression (#5448) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> methods <code class="docutils literal"><span class="pre">like()</span></code>, <code class="docutils literal"><span class="pre">or_like()</span></code> (and siblings) didn’t apply <em>dbprefix</em> or identifier escaping.</li>
475<li>Fixed a regression (#5462) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> methods <code class="docutils literal"><span class="pre">like()</span></code>, <code class="docutils literal"><span class="pre">or_like()</span></code> (and siblings) produced incorrect SQL syntax when used with <code class="docutils literal"><span class="pre">'before'</span></code> as the third parameter.</li>
476<li>Fixed a bug (#5516) - <a class="reference internal" href="helpers/html_helper.html"><span class="doc">HTML Helper</span></a> functions <a class="reference internal" href="helpers/html_helper.html#img" title="img"><code class="xref php php-func docutils literal"><span class="pre">img()</span></code></a>, <a class="reference internal" href="helpers/html_helper.html#link_tag" title="link_tag"><code class="xref php php-func docutils literal"><span class="pre">link_tag()</span></code></a> would output results with double slashes if a prefix slash was included in their path inputs.</li>
477</ul>
478</div>
479</div>
480<div class="section" id="version-3-1-8">
481<h2>Version 3.1.8<a class="headerlink" href="#version-3-1-8" title="Permalink to this headline"></a></h2>
482<p>Release Date: Mar 22, 2018</p>
483<ul>
484<li><p class="first"><strong>Security</strong></p>
485<blockquote>
486<div><ul class="simple">
487<li>Updated <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> method <code class="docutils literal"><span class="pre">xss_clean()</span></code> to also filter JavaScript tag functions.</li>
488<li>Fixed a bug where <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> method <code class="docutils literal"><span class="pre">xss_clean()</span></code> didn’t check for parentheses around JavaScript’s <code class="docutils literal"><span class="pre">document</span></code>.</li>
489</ul>
490</div></blockquote>
491</li>
492<li><p class="first">General Changes</p>
493<ul class="simple">
494<li>Updated <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> to always negotiate between TLS 1.0, 1.1, 1.2 when possible (PHP 5.6+) for SMTP connections.</li>
495<li>Updated <a class="reference internal" href="database/index.html"><span class="doc">Database Library</span></a> method <code class="docutils literal"><span class="pre">version()</span></code> to exclude suffixes to the main version numbers with the ‘postgre’ driver.</li>
496</ul>
497</li>
498</ul>
499<div class="section" id="bug-fixes-for-3-1-8">
500<h3>Bug fixes for 3.1.8<a class="headerlink" href="#bug-fixes-for-3-1-8" title="Permalink to this headline"></a></h3>
501<ul class="simple">
502<li>Fixed a bug where <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a>, <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> tried to use <code class="docutils literal"><span class="pre">INTL_IDNA_VARIANT_UTS46</span></code> when it was undeclared.</li>
503<li>Fixed a bug where <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> methods <code class="docutils literal"><span class="pre">where()</span></code>, <code class="docutils literal"><span class="pre">having()</span></code> treated values passed to them as arbitrary SQL.</li>
504<li>Fixed a bug (#5423) - <a class="reference internal" href="database/index.html"><span class="doc">Database Library</span></a> method <code class="docutils literal"><span class="pre">insert_id()</span></code> failed due to incorrect server version parsing with the ‘postgre’ driver.</li>
505<li>Fixed a bug (#5425) - <a class="reference internal" href="libraries/xmlrpc.html"><span class="doc">XML-RPC Library</span></a> produced an error message related to <code class="docutils literal"><span class="pre">count()</span></code> on PHP 7.2.</li>
506<li>Fixed a bug (#5434) - <a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Manipulation Library</span></a> attempted to <code class="docutils literal"><span class="pre">chmod()</span></code> while rendering images with the <code class="docutils literal"><span class="pre">dynamic_output</span></code> option.</li>
507<li>Fixed a bug (#5435) - <a class="reference internal" href="database/results.html"><span class="doc">Database Results</span></a> method <code class="docutils literal"><span class="pre">field_data()</span></code> hid info about one field if <code class="docutils literal"><span class="pre">limit()</span></code> was previously used with the ‘oci8’ driver.</li>
508</ul>
509</div>
510</div>
511<div class="section" id="version-3-1-7">
512<h2>Version 3.1.7<a class="headerlink" href="#version-3-1-7" title="Permalink to this headline"></a></h2>
513<p>Release Date: Jan 13, 2018</p>
514<ul class="simple">
515<li>General Changes<ul>
516<li>Updated <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> rule <code class="docutils literal"><span class="pre">valid_email</span></code> to use <code class="docutils literal"><span class="pre">INTL_IDNA_VARIANT_UTS46</span></code> for non-ASCII domain names.</li>
517<li>Updated <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> to use <code class="docutils literal"><span class="pre">INTL_IDNA_VARIANT_UTS46</span></code> for non-ASCII domain names.</li>
518<li>Updated <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Library</span></a> method <code class="docutils literal"><span class="pre">model()</span></code> to log both <code class="docutils literal"><span class="pre">CI_Model</span></code> class loading and individual models’ initialization.</li>
519<li>Updated <a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination Library</span></a> to preserve previously set attributes while calling <code class="docutils literal"><span class="pre">initialize()</span></code>.</li>
520<li>Updated <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache Library</span></a> to automatically add items to cache on <code class="docutils literal"><span class="pre">increment()</span></code>, <code class="docutils literal"><span class="pre">decrement()</span></code> calls for missing keys.</li>
521<li>Deprecated usage of <a class="reference internal" href="helpers/captcha_helper.html"><span class="doc">CAPTCHA Helper</span></a> function <a class="reference internal" href="helpers/captcha_helper.html#create_captcha" title="create_captcha"><code class="xref php php-func docutils literal"><span class="pre">create_captcha()</span></code></a> with parameters other than <code class="docutils literal"><span class="pre">$data</span></code>.</li>
522</ul>
523</li>
524</ul>
525<div class="section" id="bug-fixes-for-3-1-7">
526<h3>Bug fixes for 3.1.7<a class="headerlink" href="#bug-fixes-for-3-1-7" title="Permalink to this headline"></a></h3>
527<ul class="simple">
528<li>Fixed a regression (#5276) - <a class="reference internal" href="database/utilities.html"><span class="doc">Database Utilities</span></a> method <code class="docutils literal"><span class="pre">backup()</span></code> generated incorrect <code class="docutils literal"><span class="pre">INSERT</span></code> statements with the ‘mysqli’ driver.</li>
529<li>Fixed a regression where <a class="reference internal" href="database/results.html"><span class="doc">Database Results</span></a> method <code class="docutils literal"><span class="pre">field_data()</span></code> returned incorrect type names.</li>
530<li>Fixed a bug (#5278) - <a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL Helper</span></a> function <a class="reference internal" href="helpers/url_helper.html#auto_link" title="auto_link"><code class="xref php php-func docutils literal"><span class="pre">auto_link()</span></code></a> didn’t detect trailing slashes in URLs.</li>
531<li>Fixed a regression (#5282) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">count_all_results()</span></code> breaks <code class="docutils literal"><span class="pre">ORDER</span> <span class="pre">BY</span></code> clauses for subsequent queries.</li>
532<li>Fixed a bug (#5279) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> didn’t account for already escaped identifiers while applying database name prefixes.</li>
533<li>Fixed a bug (#5331) - <a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL Helper</span></a> function <a class="reference internal" href="helpers/url_helper.html#auto_link" title="auto_link"><code class="xref php php-func docutils literal"><span class="pre">auto_link()</span></code></a> converted e-mail addresses starting with ‘www.’ to both “url” and “email” links.</li>
534<li>Fixed a bug where <code class="docutils literal"><span class="pre">$config['allow_get_array']</span></code> defaulted to <code class="docutils literal"><span class="pre">FALSE</span></code> if it didn’t exist in the config file.</li>
535<li>Fixed a bug (#5379) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> would incorrectly fail to obtain a lock that it already has on PHP 7 with the ‘memcached’ driver.</li>
536</ul>
537</div>
538</div>
539<div class="section" id="version-3-1-6">
540<h2>Version 3.1.6<a class="headerlink" href="#version-3-1-6" title="Permalink to this headline"></a></h2>
541<p>Release Date: Sep 25, 2017</p>
542<ul class="simple">
543<li><strong>Security</strong><ul>
544<li>Fixed a potential object injection in <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache Library</span></a> ‘apc’ driver when <code class="docutils literal"><span class="pre">save()</span></code> is used with <code class="docutils literal"><span class="pre">$raw</span> <span class="pre">=</span> <span class="pre">TRUE</span></code> (thanks to Tomas Bortoli).</li>
545</ul>
546</li>
547<li>General Changes<ul>
548<li>Deprecated <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache Library Library</span></a> driver ‘apc’.</li>
549<li>Updated the <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> ‘redis’, ‘memcached’ drivers to reduce the potential of a locking race conditions.</li>
550</ul>
551</li>
552</ul>
553<div class="section" id="bug-fixes-for-3-1-6">
554<h3>Bug fixes for 3.1.6<a class="headerlink" href="#bug-fixes-for-3-1-6" title="Permalink to this headline"></a></h3>
555<ul class="simple">
556<li>Fixed a bug (#5164) - <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Library</span></a> method <code class="docutils literal"><span class="pre">library()</span></code> ignored requests to load libraries previously assigned to super-object properties named differently than the library name.</li>
557<li>Fixed a bug (#5168) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">count_all_results()</span></code> produced erroneous queries on Microsoft SQL Server when <code class="docutils literal"><span class="pre">ORDER</span> <span class="pre">BY</span></code> clauses are cached.</li>
558<li>Fixed a bug (#5128) - <a class="reference internal" href="general/profiling.html"><span class="doc">Profiler</span></a> didn’t wrap <code class="docutils literal"><span class="pre">$_SESSION</span></code> and configuration arrays in <code class="docutils literal"><span class="pre">&lt;pre&gt;</span></code> tags.</li>
559<li>Fixed a bug (#5183) - <a class="reference internal" href="database/index.html"><span class="doc">Database Library</span></a> method <code class="docutils literal"><span class="pre">is_write_type()</span></code> didn’t return TRUE for <code class="docutils literal"><span class="pre">MERGE</span></code> statements.</li>
560<li>Fixed a bug where <a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Manipulation Library</span></a> didn’t escape image source paths passed to NetPBM as shell arguments.</li>
561<li>Fixed a bug (#5236) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> methods <code class="docutils literal"><span class="pre">limit()</span></code>, <code class="docutils literal"><span class="pre">offset()</span></code> break SQL Server 2005, 2008 queries with <code class="docutils literal"><span class="pre">&quot;&lt;tablename&gt;&quot;.*</span></code> in the <code class="docutils literal"><span class="pre">SELECT</span></code> clause.</li>
562<li>Fixed a bug (#5243) - <a class="reference internal" href="database/index.html"><span class="doc">Database Library</span></a> method <code class="docutils literal"><span class="pre">version()</span></code> didn’t work with the ‘pdo/dblib’ driver.</li>
563<li>Fixed a bug (#5246) - <a class="reference internal" href="database/transactions.html"><span class="doc">Database transactions</span></a> status wasn’t reset unless <code class="docutils literal"><span class="pre">trans_complete()</span></code> was called.</li>
564<li>Fixed a bug (#5260) - <a class="reference internal" href="database/utilities.html"><span class="doc">Database Utilities</span></a> method <code class="docutils literal"><span class="pre">backup()</span></code> generated incorrect <code class="docutils literal"><span class="pre">INSERT</span></code> statements with the ‘mysqli’ driver.</li>
565<li>Fixed a bug where <a class="reference internal" href="database/results.html"><span class="doc">Database Results</span></a> method <code class="docutils literal"><span class="pre">field_data()</span></code> didn’t parse field types with the ‘mysqli’ driver.</li>
566</ul>
567</div>
568</div>
569<div class="section" id="version-3-1-5">
570<h2>Version 3.1.5<a class="headerlink" href="#version-3-1-5" title="Permalink to this headline"></a></h2>
571<p>Release Date: Jun 19, 2017</p>
572<ul class="simple">
573<li><strong>Security</strong><ul>
574<li><a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> rule <code class="docutils literal"><span class="pre">valid_email</span></code> could be bypassed if <code class="docutils literal"><span class="pre">idn_to_ascii()</span></code> is available.</li>
575</ul>
576</li>
577<li>General Changes<ul>
578<li>Updated <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form Helper</span></a> function <a class="reference internal" href="helpers/form_helper.html#form_label" title="form_label"><code class="xref php php-func docutils literal"><span class="pre">form_label()</span></code></a> to accept HTML attributes as a string.</li>
579</ul>
580</li>
581</ul>
582<div class="section" id="bug-fixes-for-3-1-5">
583<h3>Bug fixes for 3.1.5<a class="headerlink" href="#bug-fixes-for-3-1-5" title="Permalink to this headline"></a></h3>
584<ul class="simple">
585<li>Fixed a bug (#5070) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> didn’t properly detect 7-bit encoding.</li>
586<li>Fixed a bug (#5084) - <a class="reference internal" href="libraries/xmlrpc.html"><span class="doc">XML-RPC Library</span></a> errored because of a variable name typo.</li>
587<li>Fixed a bug (#5108) - <a class="reference internal" href="helpers/inflector_helper.html"><span class="doc">Inflector Helper</span></a> function <a class="reference internal" href="helpers/inflector_helper.html#singular" title="singular"><code class="xref php php-func docutils literal"><span class="pre">singular()</span></code></a> didn’t properly handle ‘quizzes’.</li>
588<li>Fixed a regression (#5131) - private controller methods triggered PHP errors instead of a 404 response.</li>
589<li>Fixed a bug (#5150) - <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> method <code class="docutils literal"><span class="pre">modify_column()</span></code> triggered an error while renaming columns with the ‘oci8’, ‘pdo/oci’ drivers.</li>
590<li>Fixed a bug (#5155) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">count_all_results()</span></code> returned incorrect result for queries using <code class="docutils literal"><span class="pre">LIMIT</span></code>, <code class="docutils literal"><span class="pre">OFFSET</span></code>.</li>
591</ul>
592</div>
593</div>
594<div class="section" id="version-3-1-4">
595<h2>Version 3.1.4<a class="headerlink" href="#version-3-1-4" title="Permalink to this headline"></a></h2>
596<p>Release Date: Mar 20, 2017</p>
597<ul class="simple">
598<li><strong>Security</strong><ul>
599<li>Fixed a header injection vulnerability in <a class="reference internal" href="general/common_functions.html"><span class="doc">common function</span></a> <a class="reference internal" href="general/common_functions.html#set_status_header" title="set_status_header"><code class="xref php php-func docutils literal"><span class="pre">set_status_header()</span></code></a> under Apache (thanks to Guillermo Caminer from <a class="reference external" href="https://flowgate.net/">Flowgate</a>).</li>
600<li>Fixed byte-safety issues in <a class="reference internal" href="libraries/encrypt.html"><span class="doc">Encrypt Library</span></a> (DEPRECATED) when <code class="docutils literal"><span class="pre">mbstring.func_overload</span></code> is enabled.</li>
601<li>Fixed byte-safety issues in <a class="reference internal" href="libraries/encryption.html"><span class="doc">Encryption Library</span></a> when <code class="docutils literal"><span class="pre">mbstring.func_overload</span></code> is enabled.</li>
602<li>Fixed byte-safety issues in <a class="reference internal" href="general/compatibility_functions.html"><span class="doc">compatibility functions</span></a> <code class="docutils literal"><span class="pre">password_hash()</span></code>, <code class="docutils literal"><span class="pre">hash_pbkdf2()</span></code> when <code class="docutils literal"><span class="pre">mbstring.func_overload</span></code> is enabled.</li>
603<li>Updated <a class="reference internal" href="libraries/encrypt.html"><span class="doc">Encrypt Library</span></a> (DEPRECATED) to call <code class="docutils literal"><span class="pre">mcrypt_create_iv()</span></code> with <code class="docutils literal"><span class="pre">MCRYPT_DEV_URANDOM</span></code>.</li>
604</ul>
605</li>
606<li>General Changes<ul>
607<li>Updated the <a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Manipulation Library</span></a> to work-around an issue with some JPEGs when using GD.</li>
608</ul>
609</li>
610</ul>
611<div class="section" id="bug-fixes-for-3-1-4">
612<h3>Bug fixes for 3.1.4<a class="headerlink" href="#bug-fixes-for-3-1-4" title="Permalink to this headline"></a></h3>
613<ul class="simple">
614<li>Fixed a regression (#4975) - <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Library</span></a> couldn’t handle objects passed as view variables.</li>
615<li>Fixed a bug (#4977) - <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Library</span></a> method <code class="docutils literal"><span class="pre">helper()</span></code> could accept any character as a filename extension separator.</li>
616<li>Fixed a regression where the <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> would fail on a <code class="docutils literal"><span class="pre">session_regenerate_id(TRUE)</span></code> call with the ‘database’ driver.</li>
617<li>Fixed a bug (#4987) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> caching didn’t keep track of table aliases.</li>
618<li>Fixed a bug where <a class="reference internal" href="helpers/text_helper.html"><span class="doc">Text Helper</span></a> function <code class="docutils literal"><span class="pre">ascii_to_entities()</span></code> wasn’t byte-safe when <code class="docutils literal"><span class="pre">mbstring.func_overload</span></code> is enabled.</li>
619<li>Fixed a bug where <code class="docutils literal"><span class="pre">CI_Log</span></code>, <code class="docutils literal"><span class="pre">CI_Output</span></code>, <code class="docutils literal"><span class="pre">CI_Email</span></code> and <code class="docutils literal"><span class="pre">CI_Zip</span></code> didn’t handle strings in a byte-safe manner when <code class="docutils literal"><span class="pre">mbstring.func_overload</span></code> is enabled.</li>
620<li>Fixed a bug where <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> didn’t read session data in a byte-safe manner when <code class="docutils literal"><span class="pre">mbstring.func_overload</span></code> is enabled.</li>
621<li>Fixed a bug (#4990) - <a class="reference internal" href="general/profiling.html"><span class="doc">Profiler</span></a> didn’t close <code class="docutils literal"><span class="pre">&lt;pre&gt;</span></code> tags it generated.</li>
622<li>Fixed a bug (#4990) - <a class="reference internal" href="general/profiling.html"><span class="doc">Profiler</span></a> didn’t HTML-escape quotes for <code class="docutils literal"><span class="pre">$_SESSION</span></code> variables.</li>
623<li>Fixed a bug where <a class="reference internal" href="libraries/input.html"><span class="doc">Input Library</span></a> method <code class="docutils literal"><span class="pre">set_cookie()</span></code> didn’t allow its <em>httponly</em> and <em>secure</em> parameters to be overriden to <code class="docutils literal"><span class="pre">FALSE</span></code>.</li>
624<li>Fixed a bug (#5006) - <a class="reference internal" href="general/common_functions.html"><span class="doc">common function</span></a> <a class="reference internal" href="general/common_functions.html#get_mimes" title="get_mimes"><code class="xref php php-func docutils literal"><span class="pre">get_mimes()</span></code></a> didn’t load <em>application/config/mimes.php</em> if an environment specific config exists.</li>
625<li>Fixed a bug (#5006) - <a class="reference internal" href="general/common_functions.html"><span class="doc">common function</span></a> <a class="reference internal" href="general/common_functions.html#remove_invisible_characters" title="remove_invisible_characters"><code class="xref php php-func docutils literal"><span class="pre">remove_invisible_characters()</span></code></a> didn’t remove URL-encoded <code class="docutils literal"><span class="pre">0x7F</span></code>.</li>
626<li>Fixed a bug (#4815) - <a class="reference internal" href="database/index.html"><span class="doc">Database Library</span></a> stripped URL-encoded sequences while escaping strings with the ‘mssql’ driver.</li>
627<li>Fixed a bug (#5044) - <a class="reference internal" href="helpers/html_helper.html"><span class="doc">HTML Helper</span></a> function <a class="reference internal" href="helpers/html_helper.html#img" title="img"><code class="xref php php-func docutils literal"><span class="pre">img()</span></code></a> didn’t accept <code class="docutils literal"><span class="pre">data:</span></code> URI schemes for the image source.</li>
628<li>Fixed a bug (#5050) - <a class="reference internal" href="database/index.html"><span class="doc">Database Library</span></a> tried to access an undefined property in a number of error handling cases.</li>
629<li>Fixed a bug (#5057) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> driver ‘postgre’ didn’t actually apply extra options (such as ‘connect_timeout’) to its DSN.</li>
630</ul>
631</div>
632</div>
633<div class="section" id="version-3-1-3">
634<h2>Version 3.1.3<a class="headerlink" href="#version-3-1-3" title="Permalink to this headline"></a></h2>
635<p>Release Date: Jan 09, 2017</p>
636<ul class="simple">
637<li><strong>Security</strong><ul>
638<li>Fixed an XSS vulnerability in <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> method <code class="docutils literal"><span class="pre">xss_clean()</span></code>.</li>
639<li>Fixed a possible file inclusion vulnerability in <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Library</span></a> method <code class="docutils literal"><span class="pre">vars()</span></code>.</li>
640<li>Fixed a possible remote code execution vulnerability in the <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> when ‘mail’ or ‘sendmail’ are used (thanks to Paul Buonopane from <a class="reference external" href="https://www.namepros.com/">NamePros</a>).</li>
641<li>Added protection against timing side-channel attacks in <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> method <code class="docutils literal"><span class="pre">csrf_verify()</span></code>.</li>
642<li>Added protection against BREACH attacks targeting the CSRF token field generated by <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form Helper</span></a> function <a class="reference internal" href="helpers/form_helper.html#form_open" title="form_open"><code class="xref php php-func docutils literal"><span class="pre">form_open()</span></code></a>.</li>
643</ul>
644</li>
645<li>General Changes<ul>
646<li>Deprecated <code class="docutils literal"><span class="pre">$config['allow_get_array']</span></code>.</li>
647<li>Deprecated <code class="docutils literal"><span class="pre">$config['standardize_newlines']</span></code>.</li>
648<li>Deprecated <a class="reference internal" href="helpers/date_helper.html"><span class="doc">Date Helper</span></a> function <a class="reference internal" href="helpers/date_helper.html#nice_date" title="nice_date"><code class="xref php php-func docutils literal"><span class="pre">nice_date()</span></code></a>.</li>
649</ul>
650</li>
651</ul>
652<div class="section" id="bug-fixes-for-3-1-3">
653<h3>Bug fixes for 3.1.3<a class="headerlink" href="#bug-fixes-for-3-1-3" title="Permalink to this headline"></a></h3>
654<ul class="simple">
655<li>Fixed a bug (#4886) - <a class="reference internal" href="database/index.html"><span class="doc">Database Library</span></a> didn’t differentiate bind markers inside double-quoted strings in queries.</li>
656<li>Fixed a bug (#4890) - <a class="reference internal" href="libraries/xmlrpc.html"><span class="doc">XML-RPC Library</span></a> didn’t work on PHP 7.</li>
657<li>Fixed a regression (#4887) - <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File Uploading Library</span></a> triggered fatal errors due to numerous PHP distribution channels (XAMPP and cPanel confirmed) explicitly disabling ext/fileinfo by default.</li>
658<li>Fixed a bug (#4679) - <a class="reference internal" href="libraries/input.html"><span class="doc">Input Library</span></a> method <code class="docutils literal"><span class="pre">ip_address()</span></code> didn’t properly resolve <code class="docutils literal"><span class="pre">$config['proxy_ips']</span></code> IPv6 addresses.</li>
659<li>Fixed a bug (#4902) - <a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Manipulation Library</span></a> processing via ImageMagick didn’t work.</li>
660<li>Fixed a bug (#4905) - <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Library</span></a> didn’t take into account possible user-provided directory paths when loading helpers.</li>
661<li>Fixed a bug (#4916) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> with <code class="docutils literal"><span class="pre">sess_match_ip</span></code> enabled was unusable for IPv6 clients when using the ‘database’ driver on MySQL 5.7.5+.</li>
662<li>Fixed a bug (#4917) - <a class="reference internal" href="helpers/date_helper.html"><span class="doc">Date Helper</span></a> function <a class="reference internal" href="helpers/date_helper.html#nice_date" title="nice_date"><code class="xref php php-func docutils literal"><span class="pre">nice_date()</span></code></a> didn’t handle YYYYMMDD inputs properly.</li>
663<li>Fixed a bug (#4923) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> could execute an erroneous SQL query with the ‘database’ driver, if the lock attempt times out.</li>
664<li>Fixed a bug (#4927) - <a class="reference internal" href="libraries/output.html"><span class="doc">Output Library</span></a> method <code class="docutils literal"><span class="pre">get_header()</span></code> returned the first matching header, regardless of whether it would be replaced by a second <code class="docutils literal"><span class="pre">set_header()</span></code> call.</li>
665<li>Fixed a bug (#4844) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> didn’t apply <code class="docutils literal"><span class="pre">escapeshellarg()</span></code> to the while passing the Sendmail <code class="docutils literal"><span class="pre">-f</span></code> parameter through <code class="docutils literal"><span class="pre">popen()</span></code>.</li>
666<li>Fixed a bug (#4928) - the bootstrap file didn’t check if <em>config/constants.php</em> exists before trying to load it.</li>
667<li>Fixed a bug (#4937) - <a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Manipulation Library</span></a> method <code class="docutils literal"><span class="pre">initialize()</span></code> didn’t translate <em>new_image</em> inputs to absolute paths.</li>
668<li>Fixed a bug (#4941) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">order_by()</span></code> didn’t work with ‘RANDOM’ under the ‘pdo/sqlite’ driver.</li>
669<li>Fixed a regression (#4892) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">update_batch()</span></code> didn’t properly handle identifier escaping.</li>
670<li>Fixed a bug (#4953) - <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> method <code class="docutils literal"><span class="pre">create_table()</span></code> didn’t update an internal tables list cache if it exists but is empty.</li>
671<li>Fixed a bug (#4958) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">count_all_results()</span></code> didn’t take into account cached <code class="docutils literal"><span class="pre">ORDER</span> <span class="pre">BY</span></code> clauses.</li>
672<li>Fixed a bug (#4804) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">insert_batch()</span></code> could fail if the input array pointer was modified.</li>
673<li>Fixed a bug (#4962) - <a class="reference internal" href="database/forge.html"><span class="doc">Database Force</span></a> method <code class="docutils literal"><span class="pre">alter_table()</span></code> would fail with the ‘oci8’ driver.</li>
674<li>Fixed a bug (#4457) - <a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Manipulation Library</span></a> method <code class="docutils literal"><span class="pre">get_image_properties()</span></code> didn’t detect invalid images.</li>
675<li>Fixed a bug (#4765) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> didn’t send the <code class="docutils literal"><span class="pre">User-Agent</span></code> header without a prior call to <code class="docutils literal"><span class="pre">clear()</span></code>.</li>
676</ul>
677</div>
678</div>
679<div class="section" id="version-3-1-2">
680<h2>Version 3.1.2<a class="headerlink" href="#version-3-1-2" title="Permalink to this headline"></a></h2>
681<p>Release Date: Oct 28, 2016</p>
682<ul class="simple">
683<li><strong>Security</strong><ul>
684<li>Fixed a number of new vulnerabilities in <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> method <code class="docutils literal"><span class="pre">xss_clean()</span></code>.</li>
685</ul>
686</li>
687<li>General Changes<ul>
688<li>Allowed PHP 4-style constructors (<code class="docutils literal"><span class="pre">Matching_name::Matching_name()</span></code> methods) to be used as routes, if there’s a <code class="docutils literal"><span class="pre">__construct()</span></code> to override them.</li>
689</ul>
690</li>
691</ul>
692<div class="section" id="bug-fixes-for-3-1-2">
693<h3>Bug fixes for 3.1.2<a class="headerlink" href="#bug-fixes-for-3-1-2" title="Permalink to this headline"></a></h3>
694<ul class="simple">
695<li>Fixed a regression (#4874) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> didn’t take into account <code class="docutils literal"><span class="pre">session.hash_bits_per_character</span></code> when validating session IDs.</li>
696<li>Fixed a bug (#4871) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">update_batch()</span></code> didn’t properly handle identifier escaping.</li>
697<li>Fixed a bug (#4884) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> didn’t properly parse field names ending in ‘is’ when used inside WHERE and HAVING statements.</li>
698<li>Fixed a bug where <code class="docutils literal"><span class="pre">CI_Log</span></code>, <code class="docutils literal"><span class="pre">CI_Output</span></code>, <code class="docutils literal"><span class="pre">CI_Email</span></code> and <code class="docutils literal"><span class="pre">CI_Zip</span></code> didn’t handle strings in a byte-safe manner when <code class="docutils literal"><span class="pre">mbstring.func_overload</span></code> is enabled.</li>
699</ul>
700</div>
701</div>
702<div class="section" id="version-3-1-1">
703<h2>Version 3.1.1<a class="headerlink" href="#version-3-1-1" title="Permalink to this headline"></a></h2>
704<p>Release Date: Oct 22, 2016</p>
705<ul class="simple">
706<li><strong>Security</strong><ul>
707<li>Fixed a flaw in <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> method <code class="docutils literal"><span class="pre">entity_decode()</span></code> (used by <code class="docutils literal"><span class="pre">xss_clean()</span></code>) that affects HTML 5 entities when using PHP 5.3.</li>
708</ul>
709</li>
710<li>General Changes<ul>
711<li>Added <code class="docutils literal"><span class="pre">E_PARSE</span></code> to the list of error levels detected by the shutdown handler.</li>
712<li>Updated <a class="reference internal" href="helpers/inflector_helper.html"><span class="doc">Inflector Helper</span></a> <code class="docutils literal"><span class="pre">is_countable()</span></code> with more words.</li>
713<li>Updated <a class="reference internal" href="general/common_functions.html"><span class="doc">common function</span></a> <a class="reference internal" href="general/common_functions.html#set_status_header" title="set_status_header"><code class="xref php php-func docutils literal"><span class="pre">set_status_header()</span></code></a> with new status codes from IETF RFCs
714<a class="reference external" href="https://tools.ietf.org/html/rfc2817">2817</a> (426)
715and <a class="reference external" href="https://tools.ietf.org/html/rfc6585">6585</a> (428, 429, 431, 511).</li>
716</ul>
717</li>
718</ul>
719<div class="section" id="bug-fixes-for-3-1-1">
720<h3>Bug fixes for 3.1.1<a class="headerlink" href="#bug-fixes-for-3-1-1" title="Permalink to this headline"></a></h3>
721<ul class="simple">
722<li>Fixed a bug (#4732) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> triggered errors while writing data for a newly-created sessions with the ‘memcached’ driver.</li>
723<li>Fixed a regression (#4736) - <a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Manipulation Library</span></a> processing via ImageMagick didn’t work.</li>
724<li>Fixed a bug (#4737) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> didn’t add an <code class="docutils literal"><span class="pre">OFFSET</span></code> when <code class="docutils literal"><span class="pre">LIMIT</span></code> is zero or unused.</li>
725<li>Fixed a regression (#4739) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> doesn’t properly separate attachment bodies from headers.</li>
726<li>Fixed a bug (#4754) - <a class="reference internal" href="libraries/unit_testing.html"><span class="doc">Unit Testing Library</span></a> method <code class="docutils literal"><span class="pre">result()</span></code> didn’t translate <code class="docutils literal"><span class="pre">res_datatype</span></code>.</li>
727<li>Fixed a bug (#4759) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation</span></a>, <a class="reference internal" href="libraries/trackback.html"><span class="doc">Trackback</span></a> and <a class="reference internal" href="libraries/xmlrpc.html"><span class="doc">XML-RPC</span></a> libraries treated URI schemes in a case-sensitive manner.</li>
728<li>Fixed a bug (#4762) - <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache Library</span></a> ‘file’ driver method <code class="docutils literal"><span class="pre">get_metadata()</span></code> checked TTL time against <code class="docutils literal"><span class="pre">mtime</span></code> instead of the cache item’s creation time.</li>
729<li>Fixed a bug where <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File Uploading Library</span></a> generated error messages on PHP 7.1.</li>
730<li>Fixed a bug (#4780) - <a class="reference internal" href="general/compatibility_functions.html"><span class="doc">compatibility function</span></a> <code class="docutils literal"><span class="pre">hex2bin()</span></code> didn’t reject inputs of type “resource”.</li>
731<li>Fixed a bug (#4787) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> method <code class="docutils literal"><span class="pre">valid_email()</span></code> triggered <code class="docutils literal"><span class="pre">E_WARNING</span></code> when input emails have empty domain names.</li>
732<li>Fixed a bug (#4805) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> driver ‘mysqli’ didn’t use the <code class="docutils literal"><span class="pre">MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT</span></code> flag properly.</li>
733<li>Fixed a bug (#4808) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> method <code class="docutils literal"><span class="pre">is_write_type()</span></code> only looked at the first line of a queries using <code class="docutils literal"><span class="pre">RETURNING</span></code> with the ‘postgre’, ‘pdo/pgsql’, ‘odbc’ and ‘pdo/odbc’ drivers.</li>
734<li>Fixed a bug where <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">insert_batch()</span></code> tried to execute an unsupported SQL query with the ‘ibase’ and ‘pdo/firebird’ drivers.</li>
735<li>Fixed a bug (#4809) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> driver ‘pdo/mysql’ didn’t turn off <code class="docutils literal"><span class="pre">AUTOCOMMIT</span></code> when starting a transaction.</li>
736<li>Fixed a bug (#4822) - <a class="reference internal" href="helpers/captcha_helper.html"><span class="doc">CAPTCHA Helper</span></a> didn’t clear expired PNG images.</li>
737<li>Fixed a bug (#4823) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> ‘files’ driver could enter an infinite loop if <code class="docutils literal"><span class="pre">mbstring.func_overload</span></code> is enabled.</li>
738<li>Fixed a bug (#4851) - <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> didn’t quote schema names passed to its <code class="docutils literal"><span class="pre">create_database()</span></code> method.</li>
739<li>Fixed a bug (#4863) - <a class="reference internal" href="libraries/table.html"><span class="doc">HTML Table Library</span></a> method <code class="docutils literal"><span class="pre">set_caption()</span></code> was missing method chaining support.</li>
740<li>Fixed a bug (#4843) - <a class="reference internal" href="libraries/xmlrpc.html"><span class="doc">XML-RPC Library</span></a> client class didn’t set a read/write socket timeout.</li>
741<li>Fixed a bug (#4865) - uncaught exceptions didn’t set the HTTP Response status code to 500 unless <code class="docutils literal"><span class="pre">display_errors</span></code> was turned On.</li>
742<li>Fixed a bug (#4830) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> didn’t take into account the new session INI settings in PHP 7.1.</li>
743</ul>
744</div>
745</div>
746<div class="section" id="version-3-1-0">
747<h2>Version 3.1.0<a class="headerlink" href="#version-3-1-0" title="Permalink to this headline"></a></h2>
748<p>Release Date: July 26, 2016</p>
749<ul class="simple">
750<li><strong>Security</strong><ul>
751<li>Fixed an SQL injection in the ‘odbc’ database driver.</li>
752<li>Updated <a class="reference internal" href="helpers/path_helper.html#set_realpath" title="set_realpath"><code class="xref php php-func docutils literal"><span class="pre">set_realpath()</span></code></a> <a class="reference internal" href="helpers/path_helper.html"><span class="doc">Path Helper</span></a> function to filter-out <code class="docutils literal"><span class="pre">php://</span></code> wrapper inputs.</li>
753<li>Officially dropped any kind of support for PHP 5.2.x and anything under 5.3.7.</li>
754</ul>
755</li>
756<li>General Changes<ul>
757<li>Updated <a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Manipulation Library</span></a> to validate <em>width</em> and <em>height</em> configuration values.</li>
758<li>Updated <a class="reference internal" href="libraries/encryption.html"><span class="doc">Encryption Library</span></a> to always prefer <code class="docutils literal"><span class="pre">random_bytes()</span></code> when it is available.</li>
759<li>Updated <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> to log ‘debug’ messages when using fallbacks to <em>session.save_path</em> (php.ini) or ‘sess_use_database’, ‘sess_table_name’ settings.</li>
760<li>Added a ‘LONGTEXT’ to ‘STRING’ alias to <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> for the ‘cubrid’, ‘pdo/cubrid’ drivers.</li>
761<li>Added ‘TINYINT’, ‘MEDIUMINT’, ‘INT’ and ‘BIGINT’ aliases to ‘NUMBER’ to <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> for the ‘oci8’, ‘pdo/oci’ drivers.</li>
762<li><a class="reference internal" href="general/compatibility_functions.html#password_hash" title="password_hash"><code class="xref php php-func docutils literal"><span class="pre">password_hash()</span></code></a> <a class="reference internal" href="general/compatibility_functions.html"><span class="doc">compatibility function</span></a> changes:<ul>
763<li>Changed salt-generation logic to prefer <code class="docutils literal"><span class="pre">random_bytes()</span></code> when it is available.</li>
764<li>Changed salt-generation logic to prefer direct access to <em>/dev/urandom</em> over <code class="docutils literal"><span class="pre">openssl_random_pseudo_bytes()</span></code>.</li>
765<li>Changed salt-generation logic to error if <code class="docutils literal"><span class="pre">openssl_random_pseudo_bytes()</span></code> sets its <code class="docutils literal"><span class="pre">$crypto_strong</span></code> flag to FALSE.</li>
766</ul>
767</li>
768</ul>
769</li>
770</ul>
771<div class="section" id="bug-fixes-for-3-1-0">
772<h3>Bug fixes for 3.1.0<a class="headerlink" href="#bug-fixes-for-3-1-0" title="Permalink to this headline"></a></h3>
773<ul class="simple">
774<li>Fixed a bug where <a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Manipulation Library</span></a> didn’t escape image source paths passed to ImageMagick as shell arguments.</li>
775<li>Fixed a bug (#861) - <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> method <code class="docutils literal"><span class="pre">create_table()</span></code> incorrectly accepts field width constraints for MSSQL/SQLSRV integer-type columns.</li>
776<li>Fixed a bug (#4562) - <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache Library</span></a> didn’t check if <code class="docutils literal"><span class="pre">Memcached::quit()</span></code> is available before calling it.</li>
777<li>Fixed a bug (#4563) - <a class="reference internal" href="libraries/input.html"><span class="doc">Input Library</span></a> method <code class="docutils literal"><span class="pre">request_headers()</span></code> ignores <code class="docutils literal"><span class="pre">$xss_clean</span></code> parameter value after first call.</li>
778<li>Fixed a bug (#4605) - <a class="reference internal" href="libraries/config.html"><span class="doc">Config Library</span></a> method <code class="docutils literal"><span class="pre">site_url()</span></code> stripped trailing slashes from relative URIs passed to it.</li>
779<li>Fixed a bug (#4613) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> failed to send multiple emails via SMTP due to “already authenticated” errors when keep-alive is enabled.</li>
780<li>Fixed a bug (#4633) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> ignored multiple “callback” rules for empty, non-required fields.</li>
781<li>Fixed a bug (#4637) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> method <code class="docutils literal"><span class="pre">error()</span></code> returned <code class="docutils literal"><span class="pre">FALSE</span></code> with the ‘oci8’ driver if there was no error.</li>
782<li>Fixed a bug (#4647) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">count_all_results()</span></code> doesn’t take into account <code class="docutils literal"><span class="pre">GROUP</span> <span class="pre">BY</span></code> clauses while deciding whether to do a subquery or not.</li>
783<li>Fixed a bug where <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> ‘redis’ driver didn’t properly detect if a connection is properly closed on PHP 5.x.</li>
784<li>Fixed a bug (#4583) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> didn’t properly handle inline attachments in HTML emails.</li>
785<li>Fixed a bug where <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> method <code class="docutils literal"><span class="pre">db_select()</span></code> didn’t clear metadata cached for the previously used database.</li>
786<li>Fixed a bug (#4675) - <a class="reference internal" href="helpers/file_helper.html"><span class="doc">File Helper</span></a> function <a class="reference internal" href="helpers/file_helper.html#delete_files" title="delete_files"><code class="xref php php-func docutils literal"><span class="pre">delete_files()</span></code></a> treated symbolic links as regular directories.</li>
787<li>Fixed a bug (#4674) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> driver ‘dblib’ triggered E_WARNING messages while connecting.</li>
788<li>Fixed a bug (#4678) - <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> tried to use unsupported <code class="docutils literal"><span class="pre">IF</span> <span class="pre">NOT</span> <span class="pre">EXISTS</span></code> clause when creating tables on Oracle.</li>
789<li>Fixed a bug (#4691) - <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File Uploading Library</span></a> method <code class="docutils literal"><span class="pre">data()</span></code> returns wrong ‘raw_name’ when the filename extension is also contained in the raw filename.</li>
790<li>Fixed a bug (#4679) - <a class="reference internal" href="libraries/input.html"><span class="doc">Input Library</span></a> method <code class="docutils literal"><span class="pre">ip_address()</span></code> errors with a matching <code class="docutils literal"><span class="pre">$config['proxy_ips']</span></code> IPv6 address.</li>
791<li>Fixed a bug (#4695) - <a class="reference internal" href="libraries/user_agent.html"><span class="doc">User Agent Library</span></a> didn’t load the <em>config/user_agents.php</em> file when there’s no <code class="docutils literal"><span class="pre">User-Agent</span></code> HTTP request header.</li>
792<li>Fixed a bug (#4713) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> methods <code class="docutils literal"><span class="pre">insert_batch()</span></code>, <code class="docutils literal"><span class="pre">update_batch()</span></code> could return wrong affected rows count.</li>
793<li>Fixed a bug (#4712) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> doesn’t sent <code class="docutils literal"><span class="pre">RSET</span></code> to SMTP servers after a failure and while using keep-alive.</li>
794<li>Fixed a bug (#4724) - <a class="reference internal" href="general/common_functions.html"><span class="doc">Common function</span></a> <a class="reference internal" href="general/common_functions.html#is_https" title="is_https"><code class="xref php php-func docutils literal"><span class="pre">is_https()</span></code></a> compared the <code class="docutils literal"><span class="pre">X-Forwarded-Proto</span></code> HTTP header case-sensitively.</li>
795<li>Fixed a bug (#4725) - <a class="reference internal" href="general/common_functions.html"><span class="doc">Common function</span></a> <a class="reference internal" href="general/common_functions.html#remove_invisible_characters" title="remove_invisible_characters"><code class="xref php php-func docutils literal"><span class="pre">remove_invisible_characters()</span></code></a> searched case-sensitively for URL-encoded characters.</li>
796</ul>
797</div>
798</div>
799<div class="section" id="version-3-0-6">
800<h2>Version 3.0.6<a class="headerlink" href="#version-3-0-6" title="Permalink to this headline"></a></h2>
801<p>Release Date: March 21, 2016</p>
802<ul class="simple">
803<li>General Changes<ul>
804<li>Added a destructor to <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache Library</span></a> ‘memcached’ driver to ensure that Memcache(d) connections are properly closed.</li>
805<li>Deprecated <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> method <code class="docutils literal"><span class="pre">prep_for_form()</span></code>.</li>
806</ul>
807</li>
808</ul>
809<div class="section" id="bug-fixes-for-3-0-6">
810<h3>Bug fixes for 3.0.6<a class="headerlink" href="#bug-fixes-for-3-0-6" title="Permalink to this headline"></a></h3>
811<ul class="simple">
812<li>Fixed a bug (#4516) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> always accepted empty array inputs.</li>
813<li>Fixed a bug where <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> allowed accessing <code class="docutils literal"><span class="pre">$_SESSION</span></code> values as class properties but <code class="docutils literal"><span class="pre">isset()</span></code> didn’t work on them.</li>
814<li>Fixed a bug where <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> modified the <code class="docutils literal"><span class="pre">$_POST</span></code> array when the data being validated was actually provided via <code class="docutils literal"><span class="pre">set_data()</span></code>.</li>
815<li>Fixed a bug (#4539) - <a class="reference internal" href="libraries/migration.html"><span class="doc">Migration Library</span></a> applied migrations before validating that all migrations within the requested version range are valid.</li>
816<li>Fixed a bug (#4539) - <a class="reference internal" href="libraries/migration.html"><span class="doc">Migration Library</span></a> triggered failures for migrations that are out of the requested version range.</li>
817</ul>
818</div>
819</div>
820<div class="section" id="version-3-0-5">
821<h2>Version 3.0.5<a class="headerlink" href="#version-3-0-5" title="Permalink to this headline"></a></h2>
822<p>Release Date: March 11, 2016</p>
823<ul class="simple">
824<li>Core<ul>
825<li>Changed <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Library</span></a> to allow <code class="docutils literal"><span class="pre">$autoload['drivers']</span></code> assigning with custom property names.</li>
826<li>Changed <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Library</span></a> to ignore variables prefixed with ‘_ci_’ when loading views.</li>
827</ul>
828</li>
829<li>General Changes<ul>
830<li>Updated the <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> to produce friendlier error messages on failures with drivers other than ‘files’.</li>
831</ul>
832</li>
833<li><a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a><ul>
834<li>Added a <code class="docutils literal"><span class="pre">$batch_size</span></code> parameter to the <code class="docutils literal"><span class="pre">insert_batch()</span></code> method (defaults to 100).</li>
835<li>Added a <code class="docutils literal"><span class="pre">$batch_size</span></code> parameter to the <code class="docutils literal"><span class="pre">update_batch()</span></code> method (defaults to 100).</li>
836</ul>
837</li>
838</ul>
839<div class="section" id="bug-fixes-for-3-0-5">
840<h3>Bug fixes for 3.0.5<a class="headerlink" href="#bug-fixes-for-3-0-5" title="Permalink to this headline"></a></h3>
841<ul class="simple">
842<li>Fixed a bug (#4391) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> method <code class="docutils literal"><span class="pre">reply_to()</span></code> didn’t apply Q-encoding.</li>
843<li>Fixed a bug (#4384) - <a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination Library</span></a> ignored (possible) <em>cur_page</em> configuration value.</li>
844<li>Fixed a bug (#4395) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">count_all_results()</span></code> still fails if an <code class="docutils literal"><span class="pre">ORDER</span> <span class="pre">BY</span></code> condition is used.</li>
845<li>Fixed a bug (#4399) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> methods <code class="docutils literal"><span class="pre">insert_batch()</span></code>, <code class="docutils literal"><span class="pre">update_batch()</span></code> produced confusing error messages when called with no data and <em>db_debug</em> is enabled.</li>
846<li>Fixed a bug (#4401) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> breaks <code class="docutils literal"><span class="pre">WHERE</span></code> and <code class="docutils literal"><span class="pre">HAVING</span></code> conditions that use <code class="docutils literal"><span class="pre">IN()</span></code> with strings containing a closing parenthesis.</li>
847<li>Fixed a regression in <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form Helper</span></a> functions <a class="reference internal" href="helpers/form_helper.html#set_checkbox" title="set_checkbox"><code class="xref php php-func docutils literal"><span class="pre">set_checkbox()</span></code></a>, <a class="reference internal" href="helpers/form_helper.html#set_radio" title="set_radio"><code class="xref php php-func docutils literal"><span class="pre">set_radio()</span></code></a> where “checked” inputs aren’t recognized after a form submit.</li>
848<li>Fixed a bug (#4407) - <a class="reference internal" href="helpers/text_helper.html"><span class="doc">Text Helper</span></a> function <a class="reference internal" href="helpers/text_helper.html#word_censor" title="word_censor"><code class="xref php php-func docutils literal"><span class="pre">word_censor()</span></code></a> doesn’t work under PHP 7 if there’s no custom replacement provided.</li>
849<li>Fixed a bug (#4415) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> rule <strong>valid_url</strong> didn’t accept URLs with IPv6 addresses enclosed in square brackets under PHP 5 (upstream bug).</li>
850<li>Fixed a bug (#4427) - <a class="reference internal" href="helpers/captcha_helper.html"><span class="doc">CAPTCHA Helper</span></a> triggers an error if the provided character pool is too small.</li>
851<li>Fixed a bug (#4430) - <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File Uploading Library</span></a> option <strong>file_ext_tolower</strong> didn’t work.</li>
852<li>Fixed a bug (#4431) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">join()</span></code> discarded opening parentheses.</li>
853<li>Fixed a bug (#4424) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> triggered a PHP warning when writing a newly created session with the ‘redis’ driver.</li>
854<li>Fixed a bug (#4437) - <a class="reference internal" href="helpers/inflector_helper.html"><span class="doc">Inflector Helper</span></a> function <a class="reference internal" href="helpers/inflector_helper.html#humanize" title="humanize"><code class="xref php php-func docutils literal"><span class="pre">humanize()</span></code></a> didn’t escape its <code class="docutils literal"><span class="pre">$separator</span></code> parameter while using it in a regular expression.</li>
855<li>Fixed a bug where <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> didn’t properly handle its locks’ statuses with the ‘memcached’ driver.</li>
856<li>Fixed a bug where <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> triggered a PHP warning when writing a newly created session with the ‘memcached’ driver.</li>
857<li>Fixed a bug (#4449) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">join()</span></code> breaks conditions containing <code class="docutils literal"><span class="pre">IS</span> <span class="pre">NULL</span></code>, <code class="docutils literal"><span class="pre">IS</span> <span class="pre">NOT</span> <span class="pre">NULL</span></code>.</li>
858<li>Fixed a bug (#4491) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> didn’t clean-up internal variables for emulated locks with the ‘redis’ driver.</li>
859<li>Fixed a bug where <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> didn’t clean-up internal variables for emulated locks with the ‘memcached’ driver.</li>
860<li>Fixed a bug where <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> transactions didn’t work with the ‘ibase’ driver.</li>
861<li>Fixed a bug (#4475) - <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> method <code class="docutils literal"><span class="pre">strip_image_tags()</span></code> preserves only the first URL character from non-quoted <em>src</em> attributes.</li>
862<li>Fixed a bug where <a class="reference internal" href="general/profiling.html"><span class="doc">Profiler Library</span></a> didn’t apply <code class="docutils literal"><span class="pre">htmlspecialchars()</span></code> to all displayed inputs.</li>
863<li>Fixed a bug (#4277) - <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache Library</span></a> triggered fatal errors if accessing the Memcache(d) and/or Redis driver and they are not available on the system.</li>
864<li>Fixed a bug where <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache Library</span></a> method <code class="docutils literal"><span class="pre">is_supported()</span></code> logged an error message when it returns <code class="docutils literal"><span class="pre">FALSE</span></code> for the APC and Wincache drivers.</li>
865</ul>
866</div>
867</div>
868<div class="section" id="version-3-0-4">
869<h2>Version 3.0.4<a class="headerlink" href="#version-3-0-4" title="Permalink to this headline"></a></h2>
870<p>Release Date: January 13, 2016</p>
871<ul class="simple">
872<li>General Changes<ul>
873<li>Updated <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> method <code class="docutils literal"><span class="pre">get_random_bytes()</span></code> to use PHP 7’s <code class="docutils literal"><span class="pre">random_bytes()</span></code> function when possible.</li>
874<li>Updated <a class="reference internal" href="libraries/security.html"><span class="doc">Encryption Library</span></a> method <code class="docutils literal"><span class="pre">create_key()</span></code> to use PHP 7’s <code class="docutils literal"><span class="pre">random_bytes()</span></code> function when possible.</li>
875</ul>
876</li>
877<li><a class="reference internal" href="database/index.html"><span class="doc">Database</span></a><ul>
878<li>Added support for <code class="docutils literal"><span class="pre">OFFSET-FETCH</span></code> with Oracle 12c for the ‘oci8’ and ‘pdo/oci’ drivers.</li>
879<li>Added support for the new <code class="docutils literal"><span class="pre">MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT</span></code> constant from <a class="reference external" href="https://secure.php.net/ChangeLog-5.php#5.6.16">PHP 5.6.16</a> for the ‘mysqli’ driver.</li>
880</ul>
881</li>
882</ul>
883<div class="section" id="bug-fixes-for-3-0-4">
884<h3>Bug fixes for 3.0.4<a class="headerlink" href="#bug-fixes-for-3-0-4" title="Permalink to this headline"></a></h3>
885<ul class="simple">
886<li>Fixed a bug (#4212) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">count_all_results()</span></code> could fail if an <code class="docutils literal"><span class="pre">ORDER</span> <span class="pre">BY</span></code> condition is used.</li>
887<li>Fixed a bug where <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form Helper</span></a> functions <a class="reference internal" href="helpers/form_helper.html#set_checkbox" title="set_checkbox"><code class="xref php php-func docutils literal"><span class="pre">set_checkbox()</span></code></a>, <a class="reference internal" href="helpers/form_helper.html#set_radio" title="set_radio"><code class="xref php php-func docutils literal"><span class="pre">set_radio()</span></code></a> didn’t “uncheck” inputs on a submitted form if the default state is “checked”.</li>
888<li>Fixed a bug (#4217) - <a class="reference internal" href="libraries/config.html"><span class="doc">Config Library</span></a> method <code class="docutils literal"><span class="pre">base_url()</span></code> didn’t use proper formatting for IPv6 when it falls back to <code class="docutils literal"><span class="pre">$_SERVER['SERVER_ADDR']</span></code>.</li>
889<li>Fixed a bug where <a class="reference internal" href="helpers/captcha_helper.html"><span class="doc">CAPTCHA Helper</span></a> entered an infinite loop while generating a random string.</li>
890<li>Fixed a bug (#4223) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> method <code class="docutils literal"><span class="pre">simple_query()</span></code> blindly executes queries without checking if the connection was initialized properly.</li>
891<li>Fixed a bug (#4244) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> could improperly use “unsafe” US-ASCII characters during Quoted-printable encoding.</li>
892<li>Fixed a bug (#4245) - <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> couldn’t properly handle <code class="docutils literal"><span class="pre">SET</span></code> and <code class="docutils literal"><span class="pre">ENUM</span></code> type fields with string values.</li>
893<li>Fixed a bug (#4283) - <a class="reference internal" href="helpers/string_helper.html"><span class="doc">String Helper</span></a> function <a class="reference internal" href="helpers/string_helper.html#alternator" title="alternator"><code class="xref php php-func docutils literal"><span class="pre">alternator()</span></code></a> couldn’t be called without arguments.</li>
894<li>Fixed a bug (#4306) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> method <code class="docutils literal"><span class="pre">version()</span></code> didn’t work properly with the ‘mssql’ driver.</li>
895<li>Fixed a bug (#4039) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> could generate multiple (redundant) warnings in case of a read failure with the ‘files’ driver, due to a bug in PHP.</li>
896<li>Fixed a bug where <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> didn’t have proper error handling on PHP 5 (due to a PHP bug).</li>
897<li>Fixed a bug (#4312) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> didn’t provide error feedback for failed validation on empty requests.</li>
898<li>Fixed a bug where <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> method <cite>version()</cite> returned banner text instead of only the version number with the ‘oci8’ and ‘pdo/oci’ drivers.</li>
899<li>Fixed a bug (#4331) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> method <code class="docutils literal"><span class="pre">error()</span></code> didn’t really work for connection errors with the ‘mysqli’ driver.</li>
900<li>Fixed a bug (#4343) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> failing with a <em>“More than one ‘from’ person”</em> message when using <em>sendmail</em>.</li>
901<li>Fixed a bug (#4350) - <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Library</span></a> method <code class="docutils literal"><span class="pre">model()</span></code> logic directly instantiated the <code class="docutils literal"><span class="pre">CI_Model</span></code> or <code class="docutils literal"><span class="pre">MY_Model</span></code> classes.</li>
902<li>Fixed a bug (#4337) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> method <code class="docutils literal"><span class="pre">query()</span></code> didn’t return a result set for queries with the <code class="docutils literal"><span class="pre">RETURNING</span></code> statement on PostgreSQL.</li>
903<li>Fixed a bug (#4362) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> doesn’t properly maintain its state after ID regeneration with the ‘redis’ and ‘memcached’ drivers on PHP 7.</li>
904<li>Fixed a bug (#4349) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> drivers ‘mysql’, ‘mysqli’, ‘pdo/mysql’ discard other <code class="docutils literal"><span class="pre">sql_mode</span></code> flags when “stricton” is enabled.</li>
905<li>Fixed a bug (#4349) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> drivers ‘mysql’, ‘mysqli’, ‘pdo/mysql’ don’t turn off <code class="docutils literal"><span class="pre">STRICT_TRANS_TABLES</span></code> on MySQL 5.7+ when “stricton” is disabled.</li>
906<li>Fixed a bug (#4374) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> with the ‘database’ driver could be affected by userspace <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> conditions.</li>
907</ul>
908</div>
909</div>
910<div class="section" id="version-3-0-3">
911<h2>Version 3.0.3<a class="headerlink" href="#version-3-0-3" title="Permalink to this headline"></a></h2>
912<p>Release Date: October 31, 2015</p>
913<ul class="simple">
914<li><strong>Security</strong><ul>
915<li>Fixed an XSS attack vector in <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> method <code class="docutils literal"><span class="pre">xss_clean()</span></code>.</li>
916<li>Changed <a class="reference internal" href="libraries/config.html"><span class="doc">Config Library</span></a> method <code class="docutils literal"><span class="pre">base_url()</span></code> to fallback to <code class="docutils literal"><span class="pre">$_SERVER['SERVER_ADDR']</span></code> when <code class="docutils literal"><span class="pre">$config['base_url']</span></code> is empty in order to avoid <em>Host</em> header injections.</li>
917<li>Changed <a class="reference internal" href="helpers/captcha_helper.html"><span class="doc">CAPTCHA Helper</span></a> to use the operating system’s PRNG when possible.</li>
918</ul>
919</li>
920<li><a class="reference internal" href="database/index.html"><span class="doc">Database</span></a><ul>
921<li>Optimized <a class="reference internal" href="database/utilities.html"><span class="doc">Database Utility</span></a> method <code class="docutils literal"><span class="pre">csv_from_result()</span></code> for speed with larger result sets.</li>
922<li>Added proper return values to <a class="reference internal" href="database/transactions.html"><span class="doc">Database Transactions</span></a> method <code class="docutils literal"><span class="pre">trans_start()</span></code>.</li>
923</ul>
924</li>
925</ul>
926<div class="section" id="bug-fixes-for-3-0-3">
927<h3>Bug fixes for 3.0.3<a class="headerlink" href="#bug-fixes-for-3-0-3" title="Permalink to this headline"></a></h3>
928<ul class="simple">
929<li>Fixed a bug (#4170) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> method <code class="docutils literal"><span class="pre">insert_id()</span></code> could return an identity from the wrong scope with the ‘sqlsrv’ driver.</li>
930<li>Fixed a bug (#4179) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> doesn’t properly maintain its state after ID regeneration with the ‘database’ driver on PHP 7.</li>
931<li>Fixed a bug (#4173) - <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> method <code class="docutils literal"><span class="pre">add_key()</span></code> didn’t allow creation of non-PRIMARY composite keys after the “bugfix” for #3968.</li>
932<li>Fixed a bug (#4171) - <a class="reference internal" href="database/transactions.html"><span class="doc">Database Transactions</span></a> didn’t work with nesting in methods <code class="docutils literal"><span class="pre">trans_begin()</span></code>, <code class="docutils literal"><span class="pre">trans_commit()</span></code>, <code class="docutils literal"><span class="pre">trans_rollback()</span></code>.</li>
933<li>Fixed a bug where <a class="reference internal" href="database/transactions.html"><span class="doc">Database Transaction</span></a> methods <code class="docutils literal"><span class="pre">trans_begin()</span></code>, <code class="docutils literal"><span class="pre">trans_commit()</span></code>, <code class="docutils literal"><span class="pre">trans_rollback()</span></code> ignored failures.</li>
934<li>Fixed a bug where all <a class="reference internal" href="database/transactions.html"><span class="doc">Database Transaction</span></a> methods returned TRUE while transactions are actually disabled.</li>
935<li>Fixed a bug where <a class="reference internal" href="general/common_functions.html"><span class="doc">common function</span></a> <a class="reference internal" href="general/common_functions.html#html_escape" title="html_escape"><code class="xref php php-func docutils literal"><span class="pre">html_escape()</span></code></a> modified keys of its array inputs.</li>
936<li>Fixed a bug (#4192) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> wouldn’t always have proper Quoted-printable encoding due to a bug in PHP’s own <code class="docutils literal"><span class="pre">mb_mime_encodeheader()</span></code> function.</li>
937</ul>
938</div>
939</div>
940<div class="section" id="version-3-0-2">
941<h2>Version 3.0.2<a class="headerlink" href="#version-3-0-2" title="Permalink to this headline"></a></h2>
942<p>Release Date: October 8, 2015</p>
943<ul class="simple">
944<li><strong>Security</strong><ul>
945<li>Fixed a number of XSS attack vectors in <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> method <code class="docutils literal"><span class="pre">xss_clean()</span></code> (thanks to Frans Rosén from <a class="reference external" href="https://detectify.com/">Detectify</a>).</li>
946</ul>
947</li>
948<li>General Changes<ul>
949<li>Updated the <em>application/config/constants.php</em> file to check if constants aren’t already defined before doing that.</li>
950<li>Changed <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Library</span></a> method <code class="docutils literal"><span class="pre">model()</span></code> to only apply <code class="docutils literal"><span class="pre">ucfirst()</span></code> and not <code class="docutils literal"><span class="pre">strtolower()</span></code> to the requested class name.</li>
951<li>Changed <a class="reference internal" href="libraries/config.html"><span class="doc">Config Library</span></a> methods <code class="docutils literal"><span class="pre">base_url()</span></code>, <code class="docutils literal"><span class="pre">site_url()</span></code> to allow protocol-relative URLs by passing an empty string as the protocol.</li>
952</ul>
953</li>
954</ul>
955<div class="section" id="bug-fixes-for-3-0-2">
956<h3>Bug fixes for 3.0.2<a class="headerlink" href="#bug-fixes-for-3-0-2" title="Permalink to this headline"></a></h3>
957<ul class="simple">
958<li>Fixed a bug (#2284) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> method <code class="docutils literal"><span class="pre">protect_identifiers()</span></code> breaks when <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> isn’t enabled.</li>
959<li>Fixed a bug (#4052) - <a class="reference internal" href="general/routing.html"><span class="doc">Routing</span></a> with anonymous functions didn’t work for routes that don’t use regular expressions.</li>
960<li>Fixed a bug (#4056) - <a class="reference internal" href="libraries/input.html"><span class="doc">Input Library</span></a> method <code class="docutils literal"><span class="pre">get_request_header()</span></code> could not return a value unless <code class="docutils literal"><span class="pre">request_headers()</span></code> was called beforehand.</li>
961<li>Fixed a bug where the <a class="reference internal" href="database/index.html"><span class="doc">Database Class</span></a> entered an endless loop if it fails to connect with the ‘sqlsrv’ driver.</li>
962<li>Fixed a bug (#4065) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> method <code class="docutils literal"><span class="pre">protect_identifiers()</span></code> treats a traling space as an alias separator if the input doesn’t contain ‘ AS ‘.</li>
963<li>Fixed a bug (#4066) - <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache Library</span></a> couldn’t fallback to a backup driver if the primary one is Memcache(d) or Redis.</li>
964<li>Fixed a bug (#4073) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> method <code class="docutils literal"><span class="pre">send()</span></code> could return TRUE in case of an actual failure when an SMTP command fails.</li>
965<li>Fixed a bug (#4086) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> didn’t apply <em>dbprefix</em> to LIKE conditions if the pattern included spaces.</li>
966<li>Fixed a bug (#4091) - <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache Library</span></a> ‘file’ driver could be tricked into accepting empty cache item IDs.</li>
967<li>Fixed a bug (#4093) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> modified string values containing ‘AND’, ‘OR’ while compiling WHERE conditions.</li>
968<li>Fixed a bug (#4096) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> didn’t apply <em>dbprefix</em> when compiling BETWEEN conditions.</li>
969<li>Fixed a bug (#4105) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> didn’t allow pipe characters inside “bracket parameters” when using a string ruleset.</li>
970<li>Fixed a bug (#4109) - <a class="reference internal" href="general/routing.html"><span class="doc">Routing</span></a> to <em>default_controller</em> didn’t work when <em>enable_query_strings</em> is set to TRUE.</li>
971<li>Fixed a bug (#4044) - <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache Library</span></a> ‘redis’ driver didn’t catch <code class="docutils literal"><span class="pre">RedisException</span></code> that could be thrown during authentication.</li>
972<li>Fixed a bug (#4120) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> method <code class="docutils literal"><span class="pre">error()</span></code> didn’t return error info when called after <code class="docutils literal"><span class="pre">query()</span></code> with the ‘mssql’ driver.</li>
973<li>Fixed a bug (#4116) - <a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination Library</span></a> set the wrong page number on the “data-ci-pagination-page” attribute in generated links.</li>
974<li>Fixed a bug where <a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination Library</span></a> added the ‘rel=”start”’ attribute to the first displayed link even if it’s not actually linking the first page.</li>
975<li>Fixed a bug (#4137) - <a class="reference internal" href="general/errors.html"><span class="doc">Error Handling</span></a> breaks for the new <code class="docutils literal"><span class="pre">Error</span></code> exceptions under PHP 7.</li>
976<li>Fixed a bug (#4126) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> method <code class="docutils literal"><span class="pre">reset_validation()</span></code> discarded validation rules from config files.</li>
977</ul>
978</div>
979</div>
980<div class="section" id="version-3-0-1">
981<h2>Version 3.0.1<a class="headerlink" href="#version-3-0-1" title="Permalink to this headline"></a></h2>
982<p>Release Date: August 7, 2015</p>
983<ul class="simple">
984<li>Core<ul>
985<li>Added DoS mitigation to <a class="reference internal" href="general/compatibility_functions.html#hash_pbkdf2" title="hash_pbkdf2"><code class="xref php php-func docutils literal"><span class="pre">hash_pbkdf2()</span></code></a> <a class="reference internal" href="general/compatibility_functions.html"><span class="doc">compatibility function</span></a>.</li>
986</ul>
987</li>
988<li>Database<ul>
989<li>Added <code class="docutils literal"><span class="pre">list_fields()</span></code> support for SQLite (‘sqlite3’ and ‘pdo_sqlite’ drivers).</li>
990<li>Added SSL connection support for the ‘mysqli’ and ‘pdo_mysql’ drivers.</li>
991</ul>
992</li>
993<li>Libraries<ul>
994<li><a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File Uploading Library</span></a> changes:<ul>
995<li>Changed method <code class="docutils literal"><span class="pre">set_error()</span></code> to accept a custom log level (defaults to ‘error’).</li>
996<li>Errors “no_file_selected”, “file_partial”, “stopped_by_extension”, “no_file_types”, “invalid_filetype”, “bad_filename” are now logged at the ‘debug’ level.</li>
997<li>Errors “file_exceeds_limit”, “file_exceeds_form_limit”, “invalid_filesize”, “invalid_dimensions” are now logged at the ‘info’ level.</li>
998</ul>
999</li>
1000<li>Added ‘is_resource’ to the available expectations in <a class="reference internal" href="libraries/unit_testing.html"><span class="doc">Unit Testing Library</span></a>.</li>
1001</ul>
1002</li>
1003<li>Helpers<ul>
1004<li>Added Unicode support to <a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL Helper</span></a> function <a class="reference internal" href="helpers/url_helper.html#url_title" title="url_title"><code class="xref php php-func docutils literal"><span class="pre">url_title()</span></code></a>.</li>
1005<li>Added support for passing the “extra” parameter as an array to all <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form Helper</span></a> functions that use it.</li>
1006</ul>
1007</li>
1008<li>Core<ul>
1009<li>Added support for defining a list of specific query parameters in <code class="docutils literal"><span class="pre">$config['cache_query_string']</span></code> for the <a class="reference internal" href="libraries/output.html"><span class="doc">Output Library</span></a>.</li>
1010<li>Added class existence and inheritance checks to <code class="docutils literal"><span class="pre">CI_Loader::model()</span></code> in order to ease debugging in case of name collisions.</li>
1011</ul>
1012</li>
1013</ul>
1014<div class="section" id="bug-fixes-for-3-0-1">
1015<h3>Bug fixes for 3.0.1<a class="headerlink" href="#bug-fixes-for-3-0-1" title="Permalink to this headline"></a></h3>
1016<ul class="simple">
1017<li>Fixed a bug (#3733) - Autoloading of libraries with aliases didn’t work, although it was advertised to.</li>
1018<li>Fixed a bug (#3744) - Redis <a class="reference internal" href="libraries/caching.html"><span class="doc">Caching</span></a> driver didn’t handle authentication failures properly.</li>
1019<li>Fixed a bug (#3761) - <a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL Helper</span></a> function <a class="reference internal" href="helpers/url_helper.html#anchor" title="anchor"><code class="xref php php-func docutils literal"><span class="pre">anchor()</span></code></a> didn’t work with array inputs.</li>
1020<li>Fixed a bug (#3773) - <code class="docutils literal"><span class="pre">db_select()</span></code> didn’t work for MySQL with the PDO <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> driver.</li>
1021<li>Fixed a bug (#3771) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> was looking for a ‘form_validation_’ prefix when trying to translate field name labels.</li>
1022<li>Fixed a bug (#3787) - <a class="reference internal" href="libraries/ftp.html"><span class="doc">FTP Library</span></a> method <code class="docutils literal"><span class="pre">delete_dir()</span></code> failed when the target has subdirectories.</li>
1023<li>Fixed a bug (#3801) - <a class="reference internal" href="libraries/output.html"><span class="doc">Output Library</span></a> method <code class="docutils literal"><span class="pre">_display_cache()</span></code> incorrectly looked for the last modified time of a directory instead of the cache file.</li>
1024<li>Fixed a bug (#3816) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> treated empty string values as non-existing ones.</li>
1025<li>Fixed a bug (#3823) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> drivers Redis and Memcached didn’t properly handle locks that are blocking the request for more than 30 seconds.</li>
1026<li>Fixed a bug (#3846) - <a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Manipulation Library</span></a> method <cite>image_mirror_gd()</cite> didn’t properly initialize its variables.</li>
1027<li>Fixed a bug (#3854) - <cite>field_data()</cite> didn’t work properly with the Oracle (OCI8) database driver.</li>
1028<li>Fixed a bug in the <a class="reference internal" href="database/utilities.html"><span class="doc">Database Utility Class</span></a> method <code class="docutils literal"><span class="pre">csv_from_result()</span></code> didn’t work with a whitespace CSV delimiter.</li>
1029<li>Fixed a bug (#3890) - <a class="reference internal" href="libraries/input.html"><span class="doc">Input Library</span></a> method <code class="docutils literal"><span class="pre">get_request_header()</span></code> treated header names as case-sensitive.</li>
1030<li>Fixed a bug (#3903) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> ignored “unnamed” closure validation rules.</li>
1031<li>Fixed a bug (#3904) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> ignored “named” callback rules when the field is empty and there’s no ‘required’ rule.</li>
1032<li>Fixed a bug (#3922) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email</span></a> and <a class="reference internal" href="libraries/xmlrpc.html"><span class="doc">XML-RPC</span></a> libraries could enter an infinite loop due to <a class="reference external" href="https://bugs.php.net/bug.php?id=39598">PHP bug #39598</a>.</li>
1033<li>Fixed a bug (#3913) - <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache Library</span></a> didn’t work with the direct <code class="docutils literal"><span class="pre">$this-&gt;cache-&gt;$driver_name-&gt;method()</span></code> syntax with Redis and Memcache(d).</li>
1034<li>Fixed a bug (#3932) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> didn’t properly compile WHERE and HAVING conditions for field names that end with “and”, “or”.</li>
1035<li>Fixed a bug in <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> where <code class="docutils literal"><span class="pre">delete()</span></code> didn’t properly work on multiple tables with a WHERE condition previously set via <code class="docutils literal"><span class="pre">where()</span></code>.</li>
1036<li>Fixed a bug (#3952) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> method <code class="docutils literal"><span class="pre">list_fields()</span></code> didn’t work with SQLite3.</li>
1037<li>Fixed a bug (#3955) - <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache Library</span></a> methods <code class="docutils literal"><span class="pre">increment()</span></code> and <code class="docutils literal"><span class="pre">decrement()</span></code> ignored the ‘key_prefix’ setting.</li>
1038<li>Fixed a bug (#3963) - <a class="reference internal" href="libraries/unit_testing.html"><span class="doc">Unit Testing Library</span></a> wrongly tried to translate filenames, line numbers and notes values in test results.</li>
1039<li>Fixed a bug (#3965) - <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File Uploading Library</span></a> ignored the “encrypt_name” setting when “overwrite” is enabled.</li>
1040<li>Fixed a bug (#3968) - <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> method <code class="docutils literal"><span class="pre">add_key()</span></code> didn’t treat array inputs as composite keys unless it’s a PRIMARY KEY.</li>
1041<li>Fixed a bug (#3715) - <a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination Library</span></a> could generate broken link when a protocol-relative base URL is used.</li>
1042<li>Fixed a bug (#3828) - <a class="reference internal" href="libraries/output.html"><span class="doc">Output Library</span></a> method <code class="docutils literal"><span class="pre">delete_cache()</span></code> couldn’t delete index page caches.</li>
1043<li>Fixed a bug (#3704) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> method <code class="docutils literal"><span class="pre">stored_procedure()</span></code> in the ‘oci8’ driver didn’t properly bind parameters.</li>
1044<li>Fixed a bug (#3778) - <a class="reference internal" href="helpers/download_helper.html"><span class="doc">Download Helper</span></a> function <a class="reference internal" href="helpers/download_helper.html#force_download" title="force_download"><code class="xref php php-func docutils literal"><span class="pre">force_download()</span></code></a> incorrectly sent a <em>Pragma</em> response header.</li>
1045<li>Fixed a bug (#3752) - <code class="docutils literal"><span class="pre">$routing['directory']</span></code> overrides were not properly handled and always resulted in a 404 “Not Found” error.</li>
1046<li>Fixed a bug (#3279) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> methods <code class="docutils literal"><span class="pre">update()</span></code> and <code class="docutils literal"><span class="pre">get_compiled_update()</span></code> did double escaping on the table name if it was provided via <code class="docutils literal"><span class="pre">from()</span></code>.</li>
1047<li>Fixed a bug (#3991) - <code class="docutils literal"><span class="pre">$config['rewrite_short_tags']</span></code> never worked due to <code class="docutils literal"><span class="pre">function_exists('eval')</span></code> always returning FALSE.</li>
1048<li>Fixed a bug where the <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File Uploading Library</span></a> library will not properly configure its maximum file size unless the input value is of type integer.</li>
1049<li>Fixed a bug (#4000) - <a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination Library</span></a> didn’t enable “rel” attributes by default if no attributes-related config options were used.</li>
1050<li>Fixed a bug (#4004) - <a class="reference internal" href="libraries/uri.html"><span class="doc">URI Class</span></a> didn’t properly parse the request URI if it contains a colon followed by a digit.</li>
1051<li>Fixed a bug in <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> where the <code class="docutils literal"><span class="pre">$escape</span></code> parameter for some methods only affected field names.</li>
1052<li>Fixed a bug (#4012) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> methods <code class="docutils literal"><span class="pre">where_in()</span></code>, <code class="docutils literal"><span class="pre">or_where_in()</span></code>, <code class="docutils literal"><span class="pre">where_not_in()</span></code>, <code class="docutils literal"><span class="pre">or_where_not_in()</span></code> didn’t take into account previously cached WHERE conditions when query cache is in use.</li>
1053<li>Fixed a bug (#4015) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> method <code class="docutils literal"><span class="pre">set_header()</span></code> didn’t support method chaining, although it was advertised.</li>
1054<li>Fixed a bug (#4027) - <a class="reference internal" href="general/routing.html"><span class="doc">Routing</span></a> with HTTP verbs only worked if the route request method was declared in all-lowercase letters.</li>
1055<li>Fixed a bug (#4026) - <a class="reference internal" href="database/transactions.html"><span class="doc">Database Transactions</span></a> always rollback if any previous <code class="docutils literal"><span class="pre">query()</span></code> call fails.</li>
1056<li>Fixed a bug (#4023) - <a class="reference internal" href="helpers/string_helper.html"><span class="doc">String Helper</span></a> function <code class="docutils literal"><span class="pre">increment_string()</span></code> didn’t escape its <code class="docutils literal"><span class="pre">$separator</span></code> parameter.</li>
1057</ul>
1058</div>
1059</div>
1060<div class="section" id="version-3-0-0">
1061<h2>Version 3.0.0<a class="headerlink" href="#version-3-0-0" title="Permalink to this headline"></a></h2>
1062<p>Release Date: March 30, 2015</p>
1063<ul class="simple">
1064<li>License<ul>
1065<li>CodeIgniter has been relicensed with the <a class="reference external" href="http://opensource.org/licenses/MIT">MIT License</a>, eliminating its old proprietary licensing.</li>
1066</ul>
1067</li>
1068<li>General Changes<ul>
1069<li>PHP 5.1.6 is no longer supported. CodeIgniter now requires PHP 5.2.4 and recommends PHP 5.4+ or newer to be used.</li>
1070<li>Changed filenaming convention (class file names now must be Ucfirst and everything else in lowercase).</li>
1071<li>Changed the default database driver to ‘mysqli’ (the old ‘mysql’ driver is DEPRECATED).</li>
1072<li><code class="docutils literal"><span class="pre">$_SERVER['CI_ENV']</span></code> can now be set to control the <code class="docutils literal"><span class="pre">ENVIRONMENT</span></code> constant.</li>
1073<li>Added an optional backtrace to php-error template.</li>
1074<li>Added Android to the list of user agents.</li>
1075<li>Added Windows 7, Windows 8, Windows 8.1, Android, Blackberry, iOS and PlayStation 3 to the list of user platforms.</li>
1076<li>Added Fennec (Firefox for mobile) to the list of mobile user agents.</li>
1077<li>Ability to log certain error types, not all under a threshold.</li>
1078<li>Added support for pem, p10, p12, p7a, p7c, p7m, p7r, p7s, crt, crl, der, kdb, rsa, cer, sst, csr Certs to mimes.php.</li>
1079<li>Added support for pgp, gpg, zsh and cdr files to mimes.php.</li>
1080<li>Added support for 3gp, 3g2, mp4, wmv, f4v, vlc Video files to mimes.php.</li>
1081<li>Added support for m4a, aac, m4u, xspf, au, ac3, flac, ogg, wma Audio files to mimes.php.</li>
1082<li>Added support for kmz and kml (Google Earth) files to mimes.php.</li>
1083<li>Added support for ics Calendar files to mimes.php.</li>
1084<li>Added support for rar, jar and 7zip archives to mimes.php.</li>
1085<li>Updated support for xml (‘application/xml’) and xsl (‘application/xml’, ‘text/xsl’) files in mimes.php.</li>
1086<li>Updated support for doc files in mimes.php.</li>
1087<li>Updated support for docx files in mimes.php.</li>
1088<li>Updated support for php files in mimes.php.</li>
1089<li>Updated support for zip files in mimes.php.</li>
1090<li>Updated support for csv files in mimes.php.</li>
1091<li>Added Romanian, Greek, Vietnamese and Cyrilic characters in <em>application/config/foreign_characters.php</em>.</li>
1092<li>Changed logger to only chmod when file is first created.</li>
1093<li>Removed previously deprecated SHA1 Library.</li>
1094<li>Removed previously deprecated use of <code class="docutils literal"><span class="pre">$autoload['core']</span></code> in <em>application/config/autoload.php</em>.
1095Only entries in <code class="docutils literal"><span class="pre">$autoload['libraries']</span></code> are auto-loaded now.</li>
1096<li>Removed previously deprecated EXT constant.</li>
1097<li>Updated all classes to be written in PHP 5 style, with visibility declarations and no <code class="docutils literal"><span class="pre">var</span></code> usage for properties.</li>
1098<li>Added an Exception handler.</li>
1099<li>Moved error templates to <em>application/views/errors/</em> and made the path configurable via <code class="docutils literal"><span class="pre">$config['error_views_path']</span></code>.</li>
1100<li>Added support non-HTML error templates for CLI applications.</li>
1101<li>Moved the Log class to <em>application/core/</em></li>
1102<li>Global config files are loaded first, then environment ones. Environment config keys overwrite base ones, allowing to only set the keys we want changed per environment.</li>
1103<li>Changed detection of <code class="docutils literal"><span class="pre">$view_folder</span></code> so that if it’s not found in the current path, it will now also be searched for under the application folder.</li>
1104<li>Path constants BASEPATH, APPPATH and VIEWPATH are now (internally) defined as absolute paths.</li>
1105<li>Updated email validation methods to use <code class="docutils literal"><span class="pre">filter_var()</span></code> instead of PCRE.</li>
1106<li>Changed environment defaults to report all errors in <em>development</em> and only fatal ones in <em>testing</em>, <em>production</em> but only display them in <em>development</em>.</li>
1107<li>Updated <em>ip_address</em> database field lengths from 16 to 45 for supporting IPv6 address on <a class="reference internal" href="libraries/trackback.html"><span class="doc">Trackback Library</span></a> and <a class="reference internal" href="helpers/captcha_helper.html"><span class="doc">Captcha Helper</span></a>.</li>
1108<li>Removed <em>cheatsheets</em> and <em>quick_reference</em> PDFs from the documentation.</li>
1109<li>Added availability checks where usage of dangerous functions like <code class="docutils literal"><span class="pre">eval()</span></code> and <code class="docutils literal"><span class="pre">exec()</span></code> is required.</li>
1110<li>Added support for changing the file extension of log files using <code class="docutils literal"><span class="pre">$config['log_file_extension']</span></code>.</li>
1111<li>Added support for turning newline standardization on/off via <code class="docutils literal"><span class="pre">$config['standardize_newlines']</span></code> and set it to FALSE by default.</li>
1112<li>Added configuration setting <code class="docutils literal"><span class="pre">$config['composer_autoload']</span></code> to enable loading of a <a class="reference external" href="https://getcomposer.org">Composer</a> auto-loader.</li>
1113<li>Removed the automatic conversion of ‘programmatic characters’ to HTML entities from the <a class="reference internal" href="libraries/uri.html"><span class="doc">URI Library</span></a>.</li>
1114<li>Changed log messages that say a class or file was loaded to “info” level instead of “debug”, so that they don’t pollute log files when <code class="docutils literal"><span class="pre">$config['log_threshold']</span></code> is set to 2 (debug).</li>
1115</ul>
1116</li>
1117<li>Helpers<ul>
1118<li><a class="reference internal" href="helpers/date_helper.html"><span class="doc">Date Helper</span></a> changes include:<ul>
1119<li>Added an optional third parameter to <a class="reference internal" href="helpers/date_helper.html#timespan" title="timespan"><code class="xref php php-func docutils literal"><span class="pre">timespan()</span></code></a> that constrains the number of time units displayed.</li>
1120<li>Added an optional parameter to <a class="reference internal" href="helpers/date_helper.html#timezone_menu" title="timezone_menu"><code class="xref php php-func docutils literal"><span class="pre">timezone_menu()</span></code></a> that allows more attributes to be added to the generated select tag.</li>
1121<li>Added function <a class="reference internal" href="helpers/date_helper.html#date_range" title="date_range"><code class="xref php php-func docutils literal"><span class="pre">date_range()</span></code></a> that generates a list of dates between a specified period.</li>
1122<li>Deprecated <code class="docutils literal"><span class="pre">standard_date()</span></code>, which now just uses the native <code class="docutils literal"><span class="pre">date()</span></code> with <a class="reference external" href="http://php.net/manual/en/class.datetime.php#datetime.constants.types">DateTime constants</a>.</li>
1123<li>Changed <a class="reference internal" href="helpers/date_helper.html#now" title="now"><code class="xref php php-func docutils literal"><span class="pre">now()</span></code></a> to work with all timezone strings supported by PHP.</li>
1124<li>Changed <a class="reference internal" href="helpers/date_helper.html#days_in_month" title="days_in_month"><code class="xref php php-func docutils literal"><span class="pre">days_in_month()</span></code></a> to use the native <code class="docutils literal"><span class="pre">cal_days_in_month()</span></code> PHP function, if available.</li>
1125</ul>
1126</li>
1127<li><a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL Helper</span></a> changes include:<ul>
1128<li>Deprecated <em>separator</em> options <strong>dash</strong> and <strong>underscore</strong> for function <a class="reference internal" href="helpers/url_helper.html#url_title" title="url_title"><code class="xref php php-func docutils literal"><span class="pre">url_title()</span></code></a> (they are only aliases for ‘-‘ and ‘_’ respectively).</li>
1129<li><a class="reference internal" href="helpers/url_helper.html#url_title" title="url_title"><code class="xref php php-func docutils literal"><span class="pre">url_title()</span></code></a> will now trim extra dashes from beginning and end.</li>
1130<li><a class="reference internal" href="helpers/url_helper.html#anchor_popup" title="anchor_popup"><code class="xref php php-func docutils literal"><span class="pre">anchor_popup()</span></code></a> will now fill the <em>href</em> attribute with the URL and its JS code will return FALSE instead.</li>
1131<li>Added JS window name support to the <a class="reference internal" href="helpers/url_helper.html#anchor_popup" title="anchor_popup"><code class="xref php php-func docutils literal"><span class="pre">anchor_popup()</span></code></a> function.</li>
1132<li>Added support for menubar attribute to the <a class="reference internal" href="helpers/url_helper.html#anchor_popup" title="anchor_popup"><code class="xref php php-func docutils literal"><span class="pre">anchor_popup()</span></code></a>.</li>
1133<li>Added support (auto-detection) for HTTP/1.1 response codes 303, 307 in <a class="reference internal" href="helpers/url_helper.html#redirect" title="redirect"><code class="xref php php-func docutils literal"><span class="pre">redirect()</span></code></a>.</li>
1134<li>Changed <a class="reference internal" href="helpers/url_helper.html#redirect" title="redirect"><code class="xref php php-func docutils literal"><span class="pre">redirect()</span></code></a> to choose the <strong>refresh</strong> method only on IIS servers, instead of all servers on Windows (when <strong>auto</strong> is used).</li>
1135<li>Changed <a class="reference internal" href="helpers/url_helper.html#anchor" title="anchor"><code class="xref php php-func docutils literal"><span class="pre">anchor()</span></code></a>, <a class="reference internal" href="helpers/url_helper.html#anchor_popup" title="anchor_popup"><code class="xref php php-func docutils literal"><span class="pre">anchor_popup()</span></code></a>, and <a class="reference internal" href="helpers/url_helper.html#redirect" title="redirect"><code class="xref php php-func docutils literal"><span class="pre">redirect()</span></code></a> to support protocol-relative URLs (e.g. <em>//ellislab.com/codeigniter</em>).</li>
1136</ul>
1137</li>
1138<li><a class="reference internal" href="helpers/html_helper.html"><span class="doc">HTML Helper</span></a> changes include:<ul>
1139<li>Added more doctypes.</li>
1140<li>Changed application and environment config files to be loaded in a cascade-like manner.</li>
1141<li>Changed <a class="reference internal" href="helpers/html_helper.html#doctype" title="doctype"><code class="xref php php-func docutils literal"><span class="pre">doctype()</span></code></a> to cache and only load once the doctypes array.</li>
1142<li>Deprecated functions <code class="docutils literal"><span class="pre">nbs()</span></code> and <code class="docutils literal"><span class="pre">br()</span></code>, which are just aliases for the native <code class="docutils literal"><span class="pre">str_repeat()</span></code> with <code class="docutils literal"><span class="pre">&amp;nbsp;</span></code> and <code class="docutils literal"><span class="pre">&lt;br</span> <span class="pre">/&gt;</span></code> respectively.</li>
1143</ul>
1144</li>
1145<li><a class="reference internal" href="helpers/inflector_helper.html"><span class="doc">Inflector Helper</span></a> changes include:<ul>
1146<li>Changed <a class="reference internal" href="helpers/inflector_helper.html#humanize" title="humanize"><code class="xref php php-func docutils literal"><span class="pre">humanize()</span></code></a> to allow passing an input separator as its second parameter.</li>
1147<li>Changed <a class="reference internal" href="helpers/inflector_helper.html#humanize" title="humanize"><code class="xref php php-func docutils literal"><span class="pre">humanize()</span></code></a> and <a class="reference internal" href="helpers/inflector_helper.html#underscore" title="underscore"><code class="xref php php-func docutils literal"><span class="pre">underscore()</span></code></a> to utilize <a class="reference external" href="http://php.net/mbstring">mbstring</a>, if available.</li>
1148<li>Changed <a class="reference internal" href="helpers/inflector_helper.html#plural" title="plural"><code class="xref php php-func docutils literal"><span class="pre">plural()</span></code></a> and <a class="reference internal" href="helpers/inflector_helper.html#singular" title="singular"><code class="xref php php-func docutils literal"><span class="pre">singular()</span></code></a> to avoid double pluralization and support more words.</li>
1149</ul>
1150</li>
1151<li><a class="reference internal" href="helpers/download_helper.html"><span class="doc">Download Helper</span></a> changes include:<ul>
1152<li>Added an optional third parameter to <a class="reference internal" href="helpers/download_helper.html#force_download" title="force_download"><code class="xref php php-func docutils literal"><span class="pre">force_download()</span></code></a> that enables/disables sending the actual file MIME type in the Content-Type header (disabled by default).</li>
1153<li>Added a work-around in <a class="reference internal" href="helpers/download_helper.html#force_download" title="force_download"><code class="xref php php-func docutils literal"><span class="pre">force_download()</span></code></a> for a bug Android &lt;= 2.1, where the filename extension needs to be in uppercase.</li>
1154<li>Added support for reading from an existing file path by passing NULL as the second parameter to <a class="reference internal" href="helpers/download_helper.html#force_download" title="force_download"><code class="xref php php-func docutils literal"><span class="pre">force_download()</span></code></a> (useful for large files and/or safely transmitting binary data).</li>
1155</ul>
1156</li>
1157<li><a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form Helper</span></a> changes include:<ul>
1158<li><a class="reference internal" href="helpers/form_helper.html#form_dropdown" title="form_dropdown"><code class="xref php php-func docutils literal"><span class="pre">form_dropdown()</span></code></a> will now also take an array for unity with other form helpers.</li>
1159<li><a class="reference internal" href="helpers/form_helper.html#form_prep" title="form_prep"><code class="xref php php-func docutils literal"><span class="pre">form_prep()</span></code></a> is now DEPRECATED and only acts as an alias for <a class="reference internal" href="general/common_functions.html"><span class="doc">common function</span></a> <a class="reference internal" href="general/common_functions.html#html_escape" title="html_escape"><code class="xref php php-func docutils literal"><span class="pre">html_escape()</span></code></a>.</li>
1160<li><a class="reference internal" href="helpers/form_helper.html#set_value" title="set_value"><code class="xref php php-func docutils literal"><span class="pre">set_value()</span></code></a> will now also accept a third argument, allowing to turn off HTML escaping of the value.</li>
1161</ul>
1162</li>
1163<li><a class="reference internal" href="helpers/security_helper.html"><span class="doc">Security Helper</span></a> changes include:<ul>
1164<li><a class="reference internal" href="helpers/security_helper.html#do_hash" title="do_hash"><code class="xref php php-func docutils literal"><span class="pre">do_hash()</span></code></a> now uses PHP’s native <code class="docutils literal"><span class="pre">hash()</span></code> function (supporting more algorithms) and is deprecated.</li>
1165<li><a class="reference internal" href="helpers/security_helper.html#strip_image_tags" title="strip_image_tags"><code class="xref php php-func docutils literal"><span class="pre">strip_image_tags()</span></code></a> is now an alias for the same method in the <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a>.</li>
1166</ul>
1167</li>
1168<li><a class="reference internal" href="helpers/smiley_helper.html"><span class="doc">Smiley Helper</span></a> changes include:<ul>
1169<li>Deprecated the whole helper as too specific for CodeIgniter.</li>
1170<li>Removed previously deprecated function <code class="docutils literal"><span class="pre">js_insert_smiley()</span></code>.</li>
1171<li>Changed application and environment config files to be loaded in a cascade-like manner.</li>
1172<li>The smileys array is now cached and loaded only once.</li>
1173</ul>
1174</li>
1175<li><a class="reference internal" href="helpers/file_helper.html"><span class="doc">File Helper</span></a> changes include:<ul>
1176<li><a class="reference internal" href="helpers/path_helper.html#set_realpath" title="set_realpath"><code class="xref php php-func docutils literal"><span class="pre">set_realpath()</span></code></a> can now also handle file paths as opposed to just directories.</li>
1177<li>Added an optional paramater to <a class="reference internal" href="helpers/file_helper.html#delete_files" title="delete_files"><code class="xref php php-func docutils literal"><span class="pre">delete_files()</span></code></a> to enable it to skip deleting files such as <em>.htaccess</em> and <em>index.html</em>.</li>
1178<li>Deprecated function <code class="docutils literal"><span class="pre">read_file()</span></code> - it’s just an alias for PHP’s native <code class="docutils literal"><span class="pre">file_get_contents()</span></code>.</li>
1179</ul>
1180</li>
1181<li><a class="reference internal" href="helpers/string_helper.html"><span class="doc">String Helper</span></a> changes include:<ul>
1182<li>Deprecated function <code class="docutils literal"><span class="pre">repeater()</span></code> - it’s just an alias for PHP’s native <code class="docutils literal"><span class="pre">str_repeat()</span></code>.</li>
1183<li>Deprecated function <code class="docutils literal"><span class="pre">trim_slashes()</span></code> - it’s just an alias for PHP’s native <code class="docutils literal"><span class="pre">trim()</span></code> (with a slash as its second argument).</li>
1184<li>Deprecated randomization type options <strong>unique</strong> and <strong>encrypt</strong> for funcion <a class="reference internal" href="helpers/string_helper.html#random_string" title="random_string"><code class="xref php php-func docutils literal"><span class="pre">random_string()</span></code></a> (they are only aliases for <strong>md5</strong> and <strong>sha1</strong> respectively).</li>
1185</ul>
1186</li>
1187<li><a class="reference internal" href="helpers/captcha_helper.html"><span class="doc">CAPTCHA Helper</span></a> changes include:<ul>
1188<li>Added <em>word_length</em> and <em>pool</em> options to allow customization of the generated word.</li>
1189<li>Added <em>colors</em> configuration to allow customization for the <em>background</em>, <em>border</em>, <em>text</em> and <em>grid</em> colors.</li>
1190<li>Added <em>filename</em> to the returned array elements.</li>
1191<li>Updated to use <cite>imagepng()</cite> in case that <cite>imagejpeg()</cite> isn’t available.</li>
1192<li>Added <strong>font_size</strong> option to allow customization of font size.</li>
1193<li>Added <strong>img_id</strong> option to set id attribute of captcha image.</li>
1194</ul>
1195</li>
1196<li><a class="reference internal" href="helpers/text_helper.html"><span class="doc">Text Helper</span></a> changes include:<ul>
1197<li>Changed the default tag for use in <a class="reference internal" href="helpers/text_helper.html#highlight_phrase" title="highlight_phrase"><code class="xref php php-func docutils literal"><span class="pre">highlight_phrase()</span></code></a> to <code class="docutils literal"><span class="pre">&lt;mark&gt;</span></code> (formerly <code class="docutils literal"><span class="pre">&lt;strong&gt;</span></code>).</li>
1198<li>Changed <a class="reference internal" href="helpers/text_helper.html#character_limiter" title="character_limiter"><code class="xref php php-func docutils literal"><span class="pre">character_limiter()</span></code></a>, <a class="reference internal" href="helpers/text_helper.html#word_wrap" title="word_wrap"><code class="xref php php-func docutils literal"><span class="pre">word_wrap()</span></code></a> and <a class="reference internal" href="helpers/text_helper.html#ellipsize" title="ellipsize"><code class="xref php php-func docutils literal"><span class="pre">ellipsize()</span></code></a> to utilize <a class="reference external" href="http://php.net/mbstring">mbstring</a> or <a class="reference external" href="http://php.net/iconv">iconv</a>, if available.</li>
1199</ul>
1200</li>
1201<li><a class="reference internal" href="helpers/directory_helper.html"><span class="doc">Directory Helper</span></a> <a class="reference internal" href="helpers/directory_helper.html#directory_map" title="directory_map"><code class="xref php php-func docutils literal"><span class="pre">directory_map()</span></code></a> will now append <code class="docutils literal"><span class="pre">DIRECTORY_SEPARATOR</span></code> to directory names in the returned array.</li>
1202<li><a class="reference internal" href="helpers/array_helper.html"><span class="doc">Array Helper</span></a> <a class="reference internal" href="helpers/array_helper.html#element" title="element"><code class="xref php php-func docutils literal"><span class="pre">element()</span></code></a> and <a class="reference internal" href="helpers/array_helper.html#elements" title="elements"><code class="xref php php-func docutils literal"><span class="pre">elements()</span></code></a> now return NULL instead of FALSE when the required elements don’t exist.</li>
1203<li><a class="reference internal" href="helpers/language_helper.html"><span class="doc">Language Helper</span></a> <a class="reference internal" href="helpers/language_helper.html#lang" title="lang"><code class="xref php php-func docutils literal"><span class="pre">lang()</span></code></a> now accepts an optional list of additional HTML attributes.</li>
1204<li>Deprecated the <a class="reference internal" href="helpers/email_helper.html"><span class="doc">Email Helper</span></a> as its <code class="docutils literal"><span class="pre">valid_email()</span></code>, <code class="docutils literal"><span class="pre">send_email()</span></code> functions are now only aliases for PHP native functions <code class="docutils literal"><span class="pre">filter_var()</span></code> and <code class="docutils literal"><span class="pre">mail()</span></code> respectively.</li>
1205</ul>
1206</li>
1207<li>Database<ul>
1208<li>DEPRECATED the ‘mysql’, ‘sqlite’, ‘mssql’ and ‘pdo/dblib’ (also known as ‘pdo/mssql’ or ‘pdo/sybase’) drivers.</li>
1209<li>Added <strong>dsn</strong> configuration setting for drivers that support DSN strings (PDO, PostgreSQL, Oracle, ODBC, CUBRID).</li>
1210<li>Added <strong>schema</strong> configuration setting (defaults to <em>public</em>) for drivers that might need it (currently used by PostgreSQL and ODBC).</li>
1211<li>Added <strong>save_queries</strong> configuration setting to <em>application/config/database.php</em> (defaults to <code class="docutils literal"><span class="pre">TRUE</span></code>).</li>
1212<li>Removed <strong>autoinit</strong> configuration setting as it doesn’t make sense to instantiate the database class but not connect to the database.</li>
1213<li>Added subdrivers support (currently only used by PDO).</li>
1214<li>Added an optional database name parameter to <code class="docutils literal"><span class="pre">db_select()</span></code>.</li>
1215<li>Removed <code class="docutils literal"><span class="pre">protect_identifiers()</span></code> and renamed internal method <code class="docutils literal"><span class="pre">_protect_identifiers()</span></code> to it instead - it was just an alias.</li>
1216<li>Renamed internal method <code class="docutils literal"><span class="pre">_escape_identifiers()</span></code> to <code class="docutils literal"><span class="pre">escape_identifiers()</span></code>.</li>
1217<li>Updated <code class="docutils literal"><span class="pre">escape_identifiers()</span></code> to accept an array of fields as well as strings.</li>
1218<li>MySQL and MySQLi drivers now require at least MySQL version 5.1.</li>
1219<li>Added a <code class="docutils literal"><span class="pre">$persistent</span></code> parameter to <code class="docutils literal"><span class="pre">db_connect()</span></code> and changed <code class="docutils literal"><span class="pre">db_pconnect()</span></code> to be an alias for <code class="docutils literal"><span class="pre">db_connect(TRUE)</span></code>.</li>
1220<li><code class="docutils literal"><span class="pre">db_set_charset()</span></code> now only requires one parameter (collation was only needed due to legacy support for MySQL versions prior to 5.1).</li>
1221<li><code class="docutils literal"><span class="pre">db_select()</span></code> will now always (if required by the driver) be called by <code class="docutils literal"><span class="pre">db_connect()</span></code> instead of only when initializing.</li>
1222<li>Replaced the <code class="docutils literal"><span class="pre">_error_message()</span></code> and <code class="docutils literal"><span class="pre">_error_number()</span></code> methods with <code class="docutils literal"><span class="pre">error()</span></code>, which returns an array containing the last database error code and message.</li>
1223<li>Improved <code class="docutils literal"><span class="pre">version()</span></code> implementation so that drivers that have a native function to get the version number don’t have to be defined in the core <code class="docutils literal"><span class="pre">DB_driver</span></code> class.</li>
1224<li>Added capability for packages to hold <em>config/database.php</em> config files.</li>
1225<li>Added MySQL client compression support.</li>
1226<li>Added encrypted connections support (for <em>mysql</em>, <em>sqlsrv</em> and PDO with <em>sqlsrv</em>).</li>
1227<li>Removed <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Class</span></a> from Database error tracing to better find the likely culprit.</li>
1228<li>Added support for SQLite3 database driver.</li>
1229<li>Added Interbase/Firebird database support via the <em>ibase</em> driver.</li>
1230<li>Added ODBC support for <code class="docutils literal"><span class="pre">create_database()</span></code>, <code class="docutils literal"><span class="pre">drop_database()</span></code> and <code class="docutils literal"><span class="pre">drop_table()</span></code> in <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a>.</li>
1231<li>Added support to binding arrays as <code class="docutils literal"><span class="pre">IN()</span></code> sets in <code class="docutils literal"><span class="pre">query()</span></code>.</li>
1232<li><a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> changes include:<ul>
1233<li>Renamed the Active Record class to Query Builder to remove confusion with the Active Record design pattern.</li>
1234<li>Added the ability to insert objects with <code class="docutils literal"><span class="pre">insert_batch()</span></code>.</li>
1235<li>Added new methods that return the SQL string of queries without executing them: <code class="docutils literal"><span class="pre">get_compiled_select()</span></code>, <code class="docutils literal"><span class="pre">get_compiled_insert()</span></code>, <code class="docutils literal"><span class="pre">get_compiled_update()</span></code>, <code class="docutils literal"><span class="pre">get_compiled_delete()</span></code>.</li>
1236<li>Added an optional parameter that allows to disable escaping (useful for custom fields) for methods <code class="docutils literal"><span class="pre">join()</span></code>, <code class="docutils literal"><span class="pre">order_by()</span></code>, <code class="docutils literal"><span class="pre">where_in()</span></code>, <code class="docutils literal"><span class="pre">or_where_in()</span></code>, <code class="docutils literal"><span class="pre">where_not_in()</span></code>, <code class="docutils literal"><span class="pre">or_where_not_in()</span></code>, <code class="docutils literal"><span class="pre">insert()</span></code>, <code class="docutils literal"><span class="pre">insert_batch()</span></code>.</li>
1237<li>Added support for <code class="docutils literal"><span class="pre">join()</span></code> with multiple conditions.</li>
1238<li>Added support for <em>USING</em> in <code class="docutils literal"><span class="pre">join()</span></code>.</li>
1239<li>Added support for <em>EXISTS</em> in <code class="docutils literal"><span class="pre">where()</span></code>.</li>
1240<li>Added seed values support for random ordering with <code class="docutils literal"><span class="pre">order_by(seed,</span> <span class="pre">'RANDOM')</span></code>.</li>
1241<li>Changed <code class="docutils literal"><span class="pre">limit()</span></code> to ignore NULL values instead of always casting to integer.</li>
1242<li>Changed <code class="docutils literal"><span class="pre">offset()</span></code> to ignore empty values instead of always casting to integer.</li>
1243<li>Methods <code class="docutils literal"><span class="pre">insert_batch()</span></code> and <code class="docutils literal"><span class="pre">update_batch()</span></code> now return an integer representing the number of rows affected by them.</li>
1244<li>Methods <code class="docutils literal"><span class="pre">where()</span></code>, <code class="docutils literal"><span class="pre">or_where()</span></code>, <code class="docutils literal"><span class="pre">having()</span></code> and <code class="docutils literal"><span class="pre">or_having()</span></code> now convert trailing <code class="docutils literal"><span class="pre">=</span></code> and <code class="docutils literal"><span class="pre">&lt;&gt;</span></code>, <code class="docutils literal"><span class="pre">!=</span></code> SQL operators to <code class="docutils literal"><span class="pre">IS</span> <span class="pre">NULL</span></code> and <code class="docutils literal"><span class="pre">IS</span> <span class="pre">NOT</span> <span class="pre">NULL</span></code> respectively when the supplied comparison value is <code class="docutils literal"><span class="pre">NULL</span></code>.</li>
1245<li>Added method chaining support to <code class="docutils literal"><span class="pre">reset_query()</span></code>, <code class="docutils literal"><span class="pre">start_cache()</span></code>, <code class="docutils literal"><span class="pre">stop_cache()</span></code> and <code class="docutils literal"><span class="pre">flush_cache()</span></code>.</li>
1246<li>Added an optional second parameter to <code class="docutils literal"><span class="pre">count_all_results()</span></code> to disable resetting of QB values.</li>
1247</ul>
1248</li>
1249<li><a class="reference internal" href="database/results.html"><span class="doc">Database Results</span></a> changes include:<ul>
1250<li>Added a constructor to the <code class="docutils literal"><span class="pre">DB_result</span></code> class and moved all driver-specific properties and logic out of the base <code class="docutils literal"><span class="pre">DB_driver</span></code> class to allow better abstraction.</li>
1251<li>Added method <code class="docutils literal"><span class="pre">unbuffered_row()</span></code> for fetching a row without prefetching the whole result (consume less memory).</li>
1252<li>Renamed former method <code class="docutils literal"><span class="pre">_data_seek()</span></code> to <code class="docutils literal"><span class="pre">data_seek()</span></code> and made it public.</li>
1253</ul>
1254</li>
1255<li>Improved support for the MySQLi driver, including:<ul>
1256<li>OOP style usage of the PHP extension is now used, instead of the procedural aliases.</li>
1257<li>Server version checking is now done via <code class="docutils literal"><span class="pre">mysqli::$server_info</span></code> instead of running an SQL query.</li>
1258<li>Added persistent connections support for PHP &gt;= 5.3.</li>
1259<li>Added support for configuring socket pipe connections.</li>
1260<li>Added support for <code class="docutils literal"><span class="pre">backup()</span></code> in <a class="reference internal" href="database/utilities.html"><span class="doc">Database Utilities</span></a>.</li>
1261<li>Changed methods <code class="docutils literal"><span class="pre">trans_begin()</span></code>, <code class="docutils literal"><span class="pre">trans_commit()</span></code> and <code class="docutils literal"><span class="pre">trans_rollback()</span></code> to use the PHP API instead of sending queries.</li>
1262</ul>
1263</li>
1264<li>Improved support of the PDO driver, including:<ul>
1265<li>Added support for <code class="docutils literal"><span class="pre">create_database()</span></code>, <code class="docutils literal"><span class="pre">drop_database()</span></code> and <code class="docutils literal"><span class="pre">drop_table()</span></code> in <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a>.</li>
1266<li>Added support for <code class="docutils literal"><span class="pre">list_fields()</span></code> in <a class="reference internal" href="database/results.html"><span class="doc">Database Results</span></a>.</li>
1267<li>Subdrivers are now isolated from each other instead of being in one large class.</li>
1268</ul>
1269</li>
1270<li>Improved support of the PostgreSQL driver, including:<ul>
1271<li><code class="docutils literal"><span class="pre">pg_version()</span></code> is now used to get the database version number, when possible.</li>
1272<li>Added <code class="docutils literal"><span class="pre">db_set_charset()</span></code> support.</li>
1273<li>Added support for <code class="docutils literal"><span class="pre">optimize_table()</span></code> in <a class="reference internal" href="database/utilities.html"><span class="doc">Database Utilities</span></a> (rebuilds table indexes).</li>
1274<li>Added boolean data type support in <code class="docutils literal"><span class="pre">escape()</span></code>.</li>
1275<li>Added <code class="docutils literal"><span class="pre">update_batch()</span></code> support.</li>
1276<li>Removed <code class="docutils literal"><span class="pre">limit()</span></code> and <code class="docutils literal"><span class="pre">order_by()</span></code> support for <em>UPDATE</em> and <em>DELETE</em> queries as PostgreSQL does not support those features.</li>
1277<li>Added a work-around for dead persistent connections to be re-created after a database restart.</li>
1278<li>Changed <code class="docutils literal"><span class="pre">db_connect()</span></code> to include the (new) <strong>schema</strong> value into Postgre’s <strong>search_path</strong> session variable.</li>
1279<li><code class="docutils literal"><span class="pre">pg_escape_literal()</span></code> is now used for escaping strings, if available.</li>
1280</ul>
1281</li>
1282<li>Improved support of the CUBRID driver, including:<ul>
1283<li>Added DSN string support.</li>
1284<li>Added persistent connections support.</li>
1285<li>Improved <code class="docutils literal"><span class="pre">list_databases()</span></code> in <a class="reference internal" href="database/utilities.html"><span class="doc">Database Utility</span></a> (until now only the currently used database was returned).</li>
1286</ul>
1287</li>
1288<li>Improved support of the MSSQL and SQLSRV drivers, including:<ul>
1289<li>Added random ordering support.</li>
1290<li>Added support for <code class="docutils literal"><span class="pre">optimize_table()</span></code> in <a class="reference internal" href="database/utilities.html"><span class="doc">Database Utility</span></a>.</li>
1291<li>Added escaping with <em>QUOTE_IDENTIFIER</em> setting detection.</li>
1292<li>Added port handling support for UNIX-based systems (MSSQL driver).</li>
1293<li>Added <em>OFFSET</em> support for SQL Server 2005 and above.</li>
1294<li>Added <code class="docutils literal"><span class="pre">db_set_charset()</span></code> support (MSSQL driver).</li>
1295<li>Added a <em>scrollable</em> property to enable configuration of the cursor to use (SQLSRV driver).</li>
1296<li>Added support and auto-detection for the <code class="docutils literal"><span class="pre">SQLSRV_CURSOR_CLIENT_BUFFERED</span></code> scrollable cursor flag (SQLSRV driver).</li>
1297<li>Changed default behavior to not use <code class="docutils literal"><span class="pre">SQLSRV_CURSOR_STATIC</span></code> due to performance issues (SQLSRV driver).</li>
1298</ul>
1299</li>
1300<li>Improved support of the Oracle (OCI8) driver, including:<ul>
1301<li>Added DSN string support (Easy Connect and TNS).</li>
1302<li>Added support for <code class="docutils literal"><span class="pre">drop_table()</span></code> in <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a>.</li>
1303<li>Added support for <code class="docutils literal"><span class="pre">list_databases()</span></code> in <a class="reference internal" href="database/utilities.html"><span class="doc">Database Utilities</span></a>.</li>
1304<li>Generally improved for speed and cleaned up all of its components.</li>
1305<li><code class="docutils literal"><span class="pre">num_rows()</span></code> is now only called explicitly by the developer and no longer re-executes statements.</li>
1306</ul>
1307</li>
1308<li>Improved support of the SQLite driver, including:<ul>
1309<li>Added support for <code class="docutils literal"><span class="pre">replace()</span></code> in <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a>.</li>
1310<li>Added support for <code class="docutils literal"><span class="pre">drop_table()</span></code> in <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a>.</li>
1311</ul>
1312</li>
1313<li><a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> changes include:<ul>
1314<li>Added an optional second parameter to <code class="docutils literal"><span class="pre">drop_table()</span></code> that allows adding the <strong>IF EXISTS</strong> condition, which is no longer the default.</li>
1315<li>Added support for passing a custom database object to the loader.</li>
1316<li>Added support for passing custom table attributes (such as <code class="docutils literal"><span class="pre">ENGINE</span></code> for MySQL) to <code class="docutils literal"><span class="pre">create_table()</span></code>.</li>
1317<li>Added support for usage of the <em>FIRST</em> clause in <code class="docutils literal"><span class="pre">add_column()</span></code> for MySQL and CUBRID.</li>
1318<li>Added partial support for field comments (MySQL, PostgreSQL, Oracle).</li>
1319<li>Deprecated <code class="docutils literal"><span class="pre">add_column()</span></code>’s third method. <em>AFTER</em> clause should now be added to the field definition array instead.</li>
1320<li>Overall improved support for all of the drivers.</li>
1321</ul>
1322</li>
1323<li><a class="reference internal" href="database/utilities.html"><span class="doc">Database Utility</span></a> changes include:<ul>
1324<li>Added support for passing a custom database object to the loader.</li>
1325<li>Modified the class to no longer extend <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a>, which has been a deprecated behavior for awhile.</li>
1326<li>Overall improved support for all of the drivers.</li>
1327<li>Added <em>foreign_key_checks</em> option to MySQL/MySQLi backup, allowing statement to disable/re-enable foreign key checks to be inserted into the backup output.</li>
1328</ul>
1329</li>
1330</ul>
1331</li>
1332<li>Libraries<ul>
1333<li>Added a new <a class="reference internal" href="libraries/encryption.html"><span class="doc">Encryption Library</span></a> to replace the old, largely insecure <a class="reference internal" href="libraries/encrypt.html"><span class="doc">Encrypt Library</span></a>.</li>
1334<li><a class="reference internal" href="libraries/encrypt.html"><span class="doc">Encrypt Library</span></a> changes include:<ul>
1335<li>Deprecated the library in favor of the new <a class="reference internal" href="libraries/encryption.html"><span class="doc">Encryption Library</span></a>.</li>
1336<li>Added support for hashing algorithms other than SHA1 and MD5.</li>
1337<li>Removed previously deprecated <code class="docutils literal"><span class="pre">sha1()</span></code> method.</li>
1338</ul>
1339</li>
1340<li><a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> changes include:<ul>
1341<li>Completely re-written the library to use self-contained drivers via <code class="docutils literal"><span class="pre">$config['sess_driver']</span></code>.</li>
1342<li>Added ‘files’, ‘database’, ‘redis’ and ‘memcached’ drivers (using ‘files’ by default).</li>
1343<li>Added <code class="docutils literal"><span class="pre">$config['sess_save_path']</span></code> setting to specify where the session data is stored, depending on the driver.</li>
1344<li>Dropped support for storing session data in cookies (which renders <code class="docutils literal"><span class="pre">$config['sess_encrypt_cookie']</span></code> useless and is therefore also removed).</li>
1345<li>Dropped official support for storing session data in databases other than MySQL and PostgreSQL.</li>
1346<li>Changed table structure for the ‘database’ driver.</li>
1347<li>Added a new <strong>tempdata</strong> feature that allows setting userdata items with expiration time (<code class="docutils literal"><span class="pre">mark_as_temp()</span></code>, <code class="docutils literal"><span class="pre">tempdata()</span></code>, <code class="docutils literal"><span class="pre">set_tempdata()</span></code>, <code class="docutils literal"><span class="pre">unset_tempdata()</span></code>).</li>
1348<li>Changed method <code class="docutils literal"><span class="pre">keep_flashdata()</span></code> to also accept an array of keys.</li>
1349<li>Changed methods <code class="docutils literal"><span class="pre">userdata()</span></code>, <code class="docutils literal"><span class="pre">flashdata()</span></code> to return an array of all userdata/flashdata when no parameter is passed.</li>
1350<li>Deprecated method <code class="docutils literal"><span class="pre">all_userdata()</span></code> - it is now just an alias for <code class="docutils literal"><span class="pre">userdata()</span></code> with no parameters.</li>
1351<li>Added method <code class="docutils literal"><span class="pre">has_userdata()</span></code> that verifies the existence of a userdata item.</li>
1352<li>Added <em>debug</em> level log messages for key events in the session validation process.</li>
1353<li>Dropped support for the <em>sess_match_useragent</em> option.</li>
1354</ul>
1355</li>
1356<li><a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File Uploading Library</span></a> changes include:<ul>
1357<li>Added method chaining support.</li>
1358<li>Added support for using array notation in file field names.</li>
1359<li>Added <strong>max_filename_increment</strong> and <strong>file_ext_tolower</strong> configuration settings.</li>
1360<li>Added <strong>min_width</strong> and <strong>min_height</strong> configuration settings for images.</li>
1361<li>Added <strong>mod_mime_fix</strong> configuration setting to disable suffixing multiple file extensions with an underscore.</li>
1362<li>Added the possibility pass <strong>allowed_types</strong> as an array.</li>
1363<li>Added an <code class="docutils literal"><span class="pre">$index</span></code> parameter to the method <code class="docutils literal"><span class="pre">data()</span></code>.</li>
1364<li>Added a <code class="docutils literal"><span class="pre">$reset</span></code> parameter to method <code class="docutils literal"><span class="pre">initialize()</span></code>.</li>
1365<li>Removed method <code class="docutils literal"><span class="pre">clean_file_name()</span></code> and its usage in favor of <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a>’s <code class="docutils literal"><span class="pre">sanitize_filename()</span></code>.</li>
1366<li>Removed method <code class="docutils literal"><span class="pre">mimes_types()</span></code>.</li>
1367<li>Changed <code class="docutils literal"><span class="pre">CI_Upload::_prep_filename()</span></code> to simply replace all (but the last) dots in the filename with underscores, instead of suffixing them.</li>
1368</ul>
1369</li>
1370<li><a class="reference internal" href="libraries/calendar.html"><span class="doc">Calendar Library</span></a> changes include:<ul>
1371<li>Added method chaining support.</li>
1372<li>Added configuration to generate days of other months instead of blank cells.</li>
1373<li>Added auto-configuration for <em>next_prev_url</em> if it is empty and <em>show_prev_next</em> is set to TRUE.</li>
1374<li>Added support for templating via an array in addition to the encoded string.</li>
1375<li>Changed method <code class="docutils literal"><span class="pre">get_total_days()</span></code> to be an alias for <a class="reference internal" href="helpers/date_helper.html"><span class="doc">Date Helper</span></a> <a class="reference internal" href="helpers/date_helper.html#days_in_month" title="days_in_month"><code class="xref php php-func docutils literal"><span class="pre">days_in_month()</span></code></a>.</li>
1376</ul>
1377</li>
1378<li><a class="reference internal" href="libraries/cart.html"><span class="doc">Cart Library</span></a> changes include:<ul>
1379<li>Deprecated the library as too specific for CodeIgniter.</li>
1380<li>Added method <code class="docutils literal"><span class="pre">remove()</span></code> to remove a cart item, updating with quantity of 0 seemed like a hack but has remained to retain compatibility.</li>
1381<li>Added method <code class="docutils literal"><span class="pre">get_item()</span></code> to enable retrieving data for a single cart item.</li>
1382<li>Added unicode support for product names.</li>
1383<li>Added support for disabling product name strictness via the <code class="docutils literal"><span class="pre">$product_name_safe</span></code> property.</li>
1384<li>Changed <code class="docutils literal"><span class="pre">insert()</span></code> method to auto-increment quantity for an item when inserted twice instead of resetting it.</li>
1385<li>Changed <code class="docutils literal"><span class="pre">update()</span></code> method to support updating all properties attached to an item and not to require ‘qty’.</li>
1386</ul>
1387</li>
1388<li><a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Manipulation Library</span></a> changes include:<ul>
1389<li>The <code class="docutils literal"><span class="pre">initialize()</span></code> method now only sets existing class properties.</li>
1390<li>Added support for 3-length hex color values for <em>wm_font_color</em> and <em>wm_shadow_color</em> properties, as well as validation for them.</li>
1391<li>Class properties <em>wm_font_color</em>, <em>wm_shadow_color</em> and <em>wm_use_drop_shadow</em> are now protected, to avoid breaking the <code class="docutils literal"><span class="pre">text_watermark()</span></code> method if they are set manually after initialization.</li>
1392<li>If property <em>maintain_ratio</em> is set to TRUE, <code class="docutils literal"><span class="pre">image_reproportion()</span></code> now doesn’t need both width and height to be specified.</li>
1393<li>Property <em>maintain_ratio</em> is now taken into account when resizing images using ImageMagick library.</li>
1394<li>Added support for maintaining transparency for PNG images when watermarking.</li>
1395<li>Added a <strong>file_permissions</strong> setting.</li>
1396</ul>
1397</li>
1398<li><a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> changes include:<ul>
1399<li>Added method <code class="docutils literal"><span class="pre">error_array()</span></code> to return all error messages as an array.</li>
1400<li>Added method <code class="docutils literal"><span class="pre">set_data()</span></code> to set an alternative data array to be validated instead of the default <code class="docutils literal"><span class="pre">$_POST</span></code>.</li>
1401<li>Added method <code class="docutils literal"><span class="pre">reset_validation()</span></code> which resets internal validation variables in case of multiple validation routines.</li>
1402<li>Added support for setting error delimiters in the config file via <code class="docutils literal"><span class="pre">$config['error_prefix']</span></code> and <code class="docutils literal"><span class="pre">$config['error_suffix']</span></code>.</li>
1403<li>Internal method <code class="docutils literal"><span class="pre">_execute()</span></code> now considers input data to be invalid if a specified rule is not found.</li>
1404<li>Removed method <code class="docutils literal"><span class="pre">is_numeric()</span></code> as it exists as a native PHP function and <code class="docutils literal"><span class="pre">_execute()</span></code> will find and use that (the <strong>is_numeric</strong> rule itself is deprecated since 1.6.1).</li>
1405<li>Native PHP functions used as rules can now accept an additional parameter, other than the data itself.</li>
1406<li>Updated method <code class="docutils literal"><span class="pre">set_rules()</span></code> to accept an array of rules as well as a string.</li>
1407<li>Fields that have empty rules set no longer run through validation (and therefore are not considered erroneous).</li>
1408<li>Added rule <strong>differs</strong> to check if the value of a field differs from the value of another field.</li>
1409<li>Added rule <strong>valid_url</strong>.</li>
1410<li>Added rule <strong>in_list</strong> to check if the value of a field is within a given list.</li>
1411<li>Added support for named parameters in error messages.</li>
1412<li><a class="reference internal" href="libraries/language.html"><span class="doc">Language</span></a> line keys must now be prefixed with <strong>form_validation_</strong>.</li>
1413<li>Added rule <strong>alpha_numeric_spaces</strong>.</li>
1414<li>Added support for custom error messages per field rule.</li>
1415<li>Added support for callable rules when they are passed as an array.</li>
1416<li>Added support for non-ASCII domains in <strong>valid_email</strong> rule, depending on the Intl extension.</li>
1417<li>Changed the debug message about an error message not being set to include the rule name it is about.</li>
1418</ul>
1419</li>
1420<li><a class="reference internal" href="libraries/caching.html"><span class="doc">Caching Library</span></a> changes include:<ul>
1421<li>Added Wincache driver.</li>
1422<li>Added Redis driver.</li>
1423<li>Added a <em>key_prefix</em> option for cache IDs.</li>
1424<li>Updated driver <code class="docutils literal"><span class="pre">is_supported()</span></code> methods to log at the “debug” level.</li>
1425<li>Added option to store raw values instead of CI-formatted ones (APC, Memcache).</li>
1426<li>Added atomic increment/decrement feature via <code class="docutils literal"><span class="pre">increment()</span></code>, <code class="docutils literal"><span class="pre">decrement()</span></code>.</li>
1427</ul>
1428</li>
1429<li><a class="reference internal" href="libraries/email.html"><span class="doc">E-mail Library</span></a> changes include:<ul>
1430<li>Added a custom filename parameter to <code class="docutils literal"><span class="pre">attach()</span></code> as <code class="docutils literal"><span class="pre">$this-&gt;email-&gt;attach($filename,</span> <span class="pre">$disposition,</span> <span class="pre">$newname)</span></code>.</li>
1431<li>Added possibility to send attachment as buffer string in <code class="docutils literal"><span class="pre">attach()</span></code> as <code class="docutils literal"><span class="pre">$this-&gt;email-&gt;attach($buffer,</span> <span class="pre">$disposition,</span> <span class="pre">$newname,</span> <span class="pre">$mime)</span></code>.</li>
1432<li>Added possibility to attach remote files by passing a URL.</li>
1433<li>Added method <code class="docutils literal"><span class="pre">attachment_cid()</span></code> to enable embedding inline attachments into HTML.</li>
1434<li>Added dsn (delivery status notification) option.</li>
1435<li>Renamed method <code class="docutils literal"><span class="pre">_set_header()</span></code> to <code class="docutils literal"><span class="pre">set_header()</span></code> and made it public to enable adding custom headers.</li>
1436<li>Successfully sent emails will automatically clear the parameters.</li>
1437<li>Added a <em>return_path</em> parameter to the <code class="docutils literal"><span class="pre">from()</span></code> method.</li>
1438<li>Removed the second parameter (character limit) from internal method <code class="docutils literal"><span class="pre">_prep_quoted_printable()</span></code> as it is never used.</li>
1439<li>Internal method <code class="docutils literal"><span class="pre">_prep_quoted_printable()</span></code> will now utilize the native <code class="docutils literal"><span class="pre">quoted_printable_encode()</span></code>, <code class="docutils literal"><span class="pre">imap_8bit()</span></code> functions (if available) when CRLF is set to “rn”.</li>
1440<li>Default charset now relies on the global <code class="docutils literal"><span class="pre">$config['charset']</span></code> setting.</li>
1441<li>Removed unused protected method <code class="docutils literal"><span class="pre">_get_ip()</span></code> (<a class="reference internal" href="libraries/input.html"><span class="doc">Input Library</span></a>’s <code class="docutils literal"><span class="pre">ip_address()</span></code> should be used anyway).</li>
1442<li>Internal method <code class="docutils literal"><span class="pre">_prep_q_encoding()</span></code> now utilizes PHP’s <em>mbstring</em> and <em>iconv</em> extensions (when available) and no longer has a second (<code class="docutils literal"><span class="pre">$from</span></code>) argument.</li>
1443<li>Added an optional parameter to <code class="docutils literal"><span class="pre">print_debugger()</span></code> to allow specifying which parts of the message should be printed (‘headers’, ‘subject’, ‘body’).</li>
1444<li>Added SMTP keepalive option to avoid opening the connection for each <code class="docutils literal"><span class="pre">send()</span></code> call. Accessible as <code class="docutils literal"><span class="pre">$smtp_keepalive</span></code>.</li>
1445<li>Public method <code class="docutils literal"><span class="pre">set_header()</span></code> now filters the input by removing all “\r” and “\n” characters.</li>
1446<li>Added support for non-ASCII domains in <code class="docutils literal"><span class="pre">valid_email()</span></code>, depending on the Intl extension.</li>
1447</ul>
1448</li>
1449<li><a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination Library</span></a> changes include:<ul>
1450<li>Deprecated usage of the “anchor_class” setting (use the new “attributes” setting instead).</li>
1451<li>Added method chaining support to <code class="docutils literal"><span class="pre">initialize()</span></code> method.</li>
1452<li>Added support for the anchor “rel” attribute.</li>
1453<li>Added support for setting custom attributes.</li>
1454<li>Added support for language translations of the <em>first_link</em>, <em>next_link</em>, <em>prev_link</em> and <em>last_link</em> values.</li>
1455<li>Added support for <code class="docutils literal"><span class="pre">$config['num_links']</span> <span class="pre">=</span> <span class="pre">0</span></code> configuration.</li>
1456<li>Added <code class="docutils literal"><span class="pre">$config['reuse_query_string']</span></code> to allow automatic repopulation of query string arguments, combined with normal URI segments.</li>
1457<li>Added <code class="docutils literal"><span class="pre">$config['use_global_url_suffix']</span></code> to allow overriding the library ‘suffix’ value with that of the global <code class="docutils literal"><span class="pre">$config['url_suffix']</span></code> setting.</li>
1458<li>Removed the default <code class="docutils literal"><span class="pre">&amp;nbsp;</span></code> from a number of the configuration variables.</li>
1459</ul>
1460</li>
1461<li><a class="reference internal" href="general/profiling.html"><span class="doc">Profiler Library</span></a> changes include:<ul>
1462<li>Database object names are now being displayed.</li>
1463<li>The sum of all queries running times in seconds is now being displayed.</li>
1464<li>Added support for displaying the HTTP DNT (“Do Not Track”) header.</li>
1465<li>Added support for displaying <code class="docutils literal"><span class="pre">$_FILES</span></code>.</li>
1466</ul>
1467</li>
1468<li><a class="reference internal" href="libraries/migration.html"><span class="doc">Migration Library</span></a> changes include:<ul>
1469<li>Added support for timestamp-based migrations (enabled by default).</li>
1470<li>Added <code class="docutils literal"><span class="pre">$config['migration_type']</span></code> to allow switching between <em>sequential</em> and <em>timestamp</em> migrations.</li>
1471</ul>
1472</li>
1473<li><a class="reference internal" href="libraries/xmlrpc.html"><span class="doc">XML-RPC Library</span></a> changes include:<ul>
1474<li>Added the ability to use a proxy.</li>
1475<li>Added Basic HTTP authentication support.</li>
1476</ul>
1477</li>
1478<li><a class="reference internal" href="libraries/user_agent.html"><span class="doc">User Agent Library</span></a> changes include:<ul>
1479<li>Added check to detect if robots are pretending to be mobile clients (helps with e.g. Google indexing mobile website versions).</li>
1480<li>Added method <code class="docutils literal"><span class="pre">parse()</span></code> to allow parsing a custom user-agent string, different from the current visitor’s.</li>
1481</ul>
1482</li>
1483<li><a class="reference internal" href="libraries/table.html"><span class="doc">HTML Table Library</span></a> changes include:<ul>
1484<li>Added method chaining support.</li>
1485<li>Added support for setting table class defaults in a config file.</li>
1486</ul>
1487</li>
1488<li><a class="reference internal" href="libraries/zip.html"><span class="doc">Zip Library</span></a> changes include:<ul>
1489<li>Method <code class="docutils literal"><span class="pre">read_file()</span></code> can now also alter the original file path/name while adding files to an archive.</li>
1490<li>Added support for changing the compression level.</li>
1491</ul>
1492</li>
1493<li><a class="reference internal" href="libraries/trackback.html"><span class="doc">Trackback Library</span></a> method <code class="docutils literal"><span class="pre">receive()</span></code> will now utilize <code class="docutils literal"><span class="pre">iconv()</span></code> if it is available but <code class="docutils literal"><span class="pre">mb_convert_encoding()</span></code> is not.</li>
1494</ul>
1495</li>
1496<li>Core<ul>
1497<li><a class="reference internal" href="general/routing.html"><span class="doc">Routing</span></a> changes include:<ul>
1498<li>Added support for multiple levels of controller directories.</li>
1499<li>Added support for per-directory <em>default_controller</em> and <em>404_override</em> classes.</li>
1500<li>Added possibility to route requests using HTTP verbs.</li>
1501<li>Added possibility to route requests using callbacks.</li>
1502<li>Added a new reserved route (<em>translate_uri_dashes</em>) to allow usage of dashes in the controller and method URI segments.</li>
1503<li>Deprecated methods <code class="docutils literal"><span class="pre">fetch_directory()</span></code>, <code class="docutils literal"><span class="pre">fetch_class()</span></code> and <code class="docutils literal"><span class="pre">fetch_method()</span></code> in favor of their respective public properties.</li>
1504<li>Removed method <code class="docutils literal"><span class="pre">_set_overrides()</span></code> and moved its logic to the class constructor.</li>
1505</ul>
1506</li>
1507<li><a class="reference internal" href="libraries/uri.html"><span class="doc">URI Library</span></a> changes include:<ul>
1508<li>Added conditional PCRE UTF-8 support to the “invalid URI characters” check and removed the <code class="docutils literal"><span class="pre">preg_quote()</span></code> call from it to allow more flexibility.</li>
1509<li>Renamed method <code class="docutils literal"><span class="pre">_filter_uri()</span></code> to <code class="docutils literal"><span class="pre">filter_uri()</span></code>.</li>
1510<li>Changed method <code class="docutils literal"><span class="pre">filter_uri()</span></code> to accept by reference and removed its return value.</li>
1511<li>Changed private methods to protected so that MY_URI can override them.</li>
1512<li>Renamed internal method <code class="docutils literal"><span class="pre">_parse_cli_args()</span></code> to <code class="docutils literal"><span class="pre">_parse_argv()</span></code>.</li>
1513<li>Renamed internal method <code class="docutils literal"><span class="pre">_detect_uri()</span></code> to <code class="docutils literal"><span class="pre">_parse_request_uri()</span></code>.</li>
1514<li>Changed <code class="docutils literal"><span class="pre">_parse_request_uri()</span></code> to accept absolute URIs for compatibility with HTTP/1.1 as per <cite>RFC2616 &lt;http://www.ietf.org/rfc/rfc2616.txt&gt;</cite>.</li>
1515<li>Added protected method <code class="docutils literal"><span class="pre">_parse_query_string()</span></code> to URI paths in the the <strong>QUERY_STRING</strong> value, like <code class="docutils literal"><span class="pre">_parse_request_uri()</span></code> does.</li>
1516<li>Changed URI string detection logic to always default to <strong>REQUEST_URI</strong> unless configured otherwise or under CLI.</li>
1517<li>Removed methods <code class="docutils literal"><span class="pre">_remove_url_suffix()</span></code>, <code class="docutils literal"><span class="pre">_explode_segments()</span></code> and moved their logic into <code class="docutils literal"><span class="pre">_set_uri_string()</span></code>.</li>
1518<li>Removed method <code class="docutils literal"><span class="pre">_fetch_uri_string()</span></code> and moved its logic into the class constructor.</li>
1519<li>Removed method <code class="docutils literal"><span class="pre">_reindex_segments()</span></code>.</li>
1520</ul>
1521</li>
1522<li><a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Library</span></a> changes include:<ul>
1523<li>Added method chaining support.</li>
1524<li>Added method <code class="docutils literal"><span class="pre">get_vars()</span></code> to the Loader to retrieve all variables loaded with <code class="docutils literal"><span class="pre">$this-&gt;load-&gt;vars()</span></code>.</li>
1525<li><code class="docutils literal"><span class="pre">_ci_autoloader()</span></code> is now a protected method.</li>
1526<li>Added autoloading of drivers with <code class="docutils literal"><span class="pre">$autoload['drivers']</span></code>.</li>
1527<li><code class="docutils literal"><span class="pre">$config['rewrite_short_tags']</span></code> now has no effect when using PHP 5.4 as <code class="docutils literal"><span class="pre">&lt;?=</span></code> will always be available.</li>
1528<li>Changed method <code class="docutils literal"><span class="pre">config()</span></code> to return whatever <code class="docutils literal"><span class="pre">CI_Config::load()</span></code> returns instead of always being void.</li>
1529<li>Added support for library and model aliasing on autoload.</li>
1530<li>Changed method <code class="docutils literal"><span class="pre">is_loaded()</span></code> to ask for the (case sensitive) library name instead of its instance name.</li>
1531<li>Removed <code class="docutils literal"><span class="pre">$_base_classes</span></code> property and unified all class data in <code class="docutils literal"><span class="pre">$_ci_classes</span></code> instead.</li>
1532<li>Added method <code class="docutils literal"><span class="pre">clear_vars()</span></code> to allow clearing the cached variables for views.</li>
1533</ul>
1534</li>
1535<li><a class="reference internal" href="libraries/input.html"><span class="doc">Input Library</span></a> changes include:<ul>
1536<li>Deprecated the <code class="docutils literal"><span class="pre">$config['global_xss_filtering']</span></code> setting.</li>
1537<li>Added <code class="docutils literal"><span class="pre">method()</span></code> to retrieve <code class="docutils literal"><span class="pre">$_SERVER['REQUEST_METHOD']</span></code>.</li>
1538<li>Added support for arrays and network addresses (e.g. 192.168.1.1/24) for use with the <em>proxy_ips</em> setting.</li>
1539<li>Added method <code class="docutils literal"><span class="pre">input_stream()</span></code> to aid in using <strong>php://input</strong> stream data such as one passed via PUT, DELETE and PATCH requests.</li>
1540<li>Changed method <code class="docutils literal"><span class="pre">valid_ip()</span></code> to use PHP’s native <code class="docutils literal"><span class="pre">filter_var()</span></code> function.</li>
1541<li>Changed internal method <code class="docutils literal"><span class="pre">_sanitize_globals()</span></code> to skip enforcing reversal of <em>register_globals</em> in PHP 5.4+, where this functionality no longer exists.</li>
1542<li>Changed methods <code class="docutils literal"><span class="pre">get()</span></code>, <code class="docutils literal"><span class="pre">post()</span></code>, <code class="docutils literal"><span class="pre">get_post()</span></code>, <code class="docutils literal"><span class="pre">cookie()</span></code>, <code class="docutils literal"><span class="pre">server()</span></code>, <code class="docutils literal"><span class="pre">user_agent()</span></code> to return NULL instead of FALSE when no value is found.</li>
1543<li>Changed default value of the <code class="docutils literal"><span class="pre">$xss_clean</span></code> parameter to NULL for all methods that utilize it, the default value is now determined by the <code class="docutils literal"><span class="pre">$config['global_xss_filtering']</span></code> setting.</li>
1544<li>Added method <code class="docutils literal"><span class="pre">post_get()</span></code> and changed <code class="docutils literal"><span class="pre">get_post()</span></code> to search in GET data first. Both methods’ names now properly match their GET/POST data search priorities.</li>
1545<li>Changed method <code class="docutils literal"><span class="pre">_fetch_from_array()</span></code> to parse array notation in field name.</li>
1546<li>Changed method <code class="docutils literal"><span class="pre">_fetch_from_array()</span></code> to allow retrieving multiple fields at once.</li>
1547<li>Added an option for <code class="docutils literal"><span class="pre">_clean_input_keys()</span></code> to return FALSE instead of terminating the whole script.</li>
1548<li>Deprecated the <code class="docutils literal"><span class="pre">is_cli_request()</span></code> method, it is now an alias for the new <a class="reference internal" href="general/common_functions.html#is_cli" title="is_cli"><code class="xref php php-func docutils literal"><span class="pre">is_cli()</span></code></a> common function.</li>
1549<li>Added an <code class="docutils literal"><span class="pre">$xss_clean</span></code> parameter to method <code class="docutils literal"><span class="pre">user_agent()</span></code> and removed the <code class="docutils literal"><span class="pre">$user_agent</span></code> property.</li>
1550<li>Added property <code class="docutils literal"><span class="pre">$raw_input_stream</span></code> to access <strong>php://input</strong> data.</li>
1551</ul>
1552</li>
1553<li><a class="reference internal" href="general/common_functions.html"><span class="doc">Common functions</span></a> changes include:<ul>
1554<li>Added function <a class="reference internal" href="general/common_functions.html#get_mimes" title="get_mimes"><code class="xref php php-func docutils literal"><span class="pre">get_mimes()</span></code></a> to return the <em>application/config/mimes.php</em> array.</li>
1555<li>Added support for HTTP code 303 (“See Other”) in <a class="reference internal" href="general/common_functions.html#set_status_header" title="set_status_header"><code class="xref php php-func docutils literal"><span class="pre">set_status_header()</span></code></a>.</li>
1556<li>Removed redundant conditional to determine HTTP server protocol in <a class="reference internal" href="general/common_functions.html#set_status_header" title="set_status_header"><code class="xref php php-func docutils literal"><span class="pre">set_status_header()</span></code></a>.</li>
1557<li>Renamed <code class="docutils literal"><span class="pre">_exception_handler()</span></code> to <code class="docutils literal"><span class="pre">_error_handler()</span></code> and replaced it with a real exception handler.</li>
1558<li>Changed <code class="docutils literal"><span class="pre">_error_handler()</span></code> to respect php.ini <em>display_errors</em> setting.</li>
1559<li>Added function <a class="reference internal" href="general/common_functions.html#is_https" title="is_https"><code class="xref php php-func docutils literal"><span class="pre">is_https()</span></code></a> to check if a secure connection is used.</li>
1560<li>Added function <a class="reference internal" href="general/common_functions.html#is_cli" title="is_cli"><code class="xref php php-func docutils literal"><span class="pre">is_cli()</span></code></a> to replace the <code class="docutils literal"><span class="pre">CI_Input::is_cli_request()</span></code> method.</li>
1561<li>Added function <a class="reference internal" href="general/common_functions.html#function_usable" title="function_usable"><code class="xref php php-func docutils literal"><span class="pre">function_usable()</span></code></a> to work around a bug in <cite>Suhosin &lt;http://www.hardened-php.net/suhosin/&gt;</cite>.</li>
1562<li>Removed the third (<cite>$php_error</cite>) argument from function <a class="reference internal" href="general/errors.html#log_message" title="log_message"><code class="xref php php-func docutils literal"><span class="pre">log_message()</span></code></a>.</li>
1563<li>Changed internal function <code class="docutils literal"><span class="pre">load_class()</span></code> to accept a constructor parameter instead of (previously unused) class name prefix.</li>
1564<li>Removed default parameter value of <a class="reference internal" href="general/common_functions.html#is_php" title="is_php"><code class="xref php php-func docutils literal"><span class="pre">is_php()</span></code></a>.</li>
1565<li>Added a second argument <code class="docutils literal"><span class="pre">$double_encode</span></code> to <a class="reference internal" href="general/common_functions.html#html_escape" title="html_escape"><code class="xref php php-func docutils literal"><span class="pre">html_escape()</span></code></a>.</li>
1566<li>Changed function <a class="reference internal" href="general/common_functions.html#config_item" title="config_item"><code class="xref php php-func docutils literal"><span class="pre">config_item()</span></code></a> to return NULL instead of FALSE when no value is found.</li>
1567<li>Changed function <a class="reference internal" href="general/common_functions.html#set_status_header" title="set_status_header"><code class="xref php php-func docutils literal"><span class="pre">set_status_header()</span></code></a> to return immediately when run under CLI.</li>
1568</ul>
1569</li>
1570<li><a class="reference internal" href="libraries/output.html"><span class="doc">Output Library</span></a> changes include:<ul>
1571<li>Added a second argument to method <code class="docutils literal"><span class="pre">set_content_type()</span></code> that allows setting the document charset as well.</li>
1572<li>Added methods <code class="docutils literal"><span class="pre">get_content_type()</span></code> and <code class="docutils literal"><span class="pre">get_header()</span></code>.</li>
1573<li>Added method <code class="docutils literal"><span class="pre">delete_cache()</span></code>.</li>
1574<li>Added configuration option <code class="docutils literal"><span class="pre">$config['cache_query_string']</span></code> to enable taking the query string into account when caching.</li>
1575<li>Changed caching behavior to compress the output before storing it, if <code class="docutils literal"><span class="pre">$config['compress_output']</span></code> is enabled.</li>
1576</ul>
1577</li>
1578<li><a class="reference internal" href="libraries/config.html"><span class="doc">Config Library</span></a> changes include:<ul>
1579<li>Changed <code class="docutils literal"><span class="pre">site_url()</span></code> method to accept an array as well.</li>
1580<li>Removed internal method <code class="docutils literal"><span class="pre">_assign_to_config()</span></code> and moved its implementation to <em>CodeIgniter.php</em> instead.</li>
1581<li><code class="docutils literal"><span class="pre">item()</span></code> now returns NULL instead of FALSE when the required config item doesn’t exist.</li>
1582<li>Added an optional second parameter to both <code class="docutils literal"><span class="pre">base_url()</span></code> and <code class="docutils literal"><span class="pre">site_url()</span></code> that allows enforcing of a protocol different than the one in the <em>base_url</em> configuration setting.</li>
1583<li>Added HTTP “Host” header character validation to prevent cache poisoning attacks when <code class="docutils literal"><span class="pre">base_url</span></code> auto-detection is used.</li>
1584</ul>
1585</li>
1586<li><a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> changes include:<ul>
1587<li>Added <code class="docutils literal"><span class="pre">$config['csrf_regeneration']</span></code>, which makes CSRF token regeneration optional.</li>
1588<li>Added <code class="docutils literal"><span class="pre">$config['csrf_exclude_uris']</span></code>, allowing for exclusion of URIs from the CSRF protection (regular expressions are supported).</li>
1589<li>Added method <code class="docutils literal"><span class="pre">strip_image_tags()</span></code>.</li>
1590<li>Added method <code class="docutils literal"><span class="pre">get_random_bytes()</span></code> and switched CSRF &amp; XSS token generation to use it.</li>
1591<li>Modified method <code class="docutils literal"><span class="pre">sanitize_filename()</span></code> to read a public <code class="docutils literal"><span class="pre">$filename_bad_chars</span></code> property for getting the invalid characters list.</li>
1592<li>Return status code of 403 instead of a 500 if CSRF protection is enabled but a token is missing from a request.</li>
1593</ul>
1594</li>
1595<li><a class="reference internal" href="libraries/language.html"><span class="doc">Language Library</span></a> changes include:<ul>
1596<li>Changed method <code class="docutils literal"><span class="pre">load()</span></code> to filter the language name with <code class="docutils literal"><span class="pre">ctype_alpha()</span></code>.</li>
1597<li>Changed method <code class="docutils literal"><span class="pre">load()</span></code> to also accept an array of language files.</li>
1598<li>Added an optional second parameter to method <code class="docutils literal"><span class="pre">line()</span></code> to disable error logging for line keys that were not found.</li>
1599<li>Language files are now loaded in a cascading style with the one in <strong>system/</strong> always loaded and overridden afterwards, if another one is found.</li>
1600</ul>
1601</li>
1602<li><a class="reference internal" href="general/hooks.html"><span class="doc">Hooks Library</span></a> changes include:<ul>
1603<li>Added support for closure hooks (or anything that <code class="docutils literal"><span class="pre">is_callable()</span></code> returns TRUE for).</li>
1604<li>Renamed method <code class="docutils literal"><span class="pre">_call_hook()</span></code> to <code class="docutils literal"><span class="pre">call_hook()</span></code>.</li>
1605<li>Class instances are now stored in order to maintain their state.</li>
1606</ul>
1607</li>
1608<li>UTF-8 Library changes include:<ul>
1609<li><code class="docutils literal"><span class="pre">UTF8_ENABLED</span></code> now requires only one of <a class="reference external" href="http://php.net/mbstring">Multibyte String</a> or <a class="reference external" href="http://php.net/iconv">iconv</a> to be available instead of both.</li>
1610<li>Changed method <code class="docutils literal"><span class="pre">clean_string()</span></code> to utilize <code class="docutils literal"><span class="pre">mb_convert_encoding()</span></code> if it is available.</li>
1611<li>Renamed method <code class="docutils literal"><span class="pre">_is_ascii()</span></code> to <code class="docutils literal"><span class="pre">is_ascii()</span></code> and made it public.</li>
1612</ul>
1613</li>
1614<li>Log Library changes include:<ul>
1615<li>Added a <code class="docutils literal"><span class="pre">$config['log_file_permissions']</span></code> setting.</li>
1616<li>Changed the library constructor to try to create the <strong>log_path</strong> directory if it doesn’t exist.</li>
1617<li>Added support for microseconds (“u” date format character) in <code class="docutils literal"><span class="pre">$config['log_date_format']</span></code>.</li>
1618</ul>
1619</li>
1620<li>Added <a class="reference internal" href="general/compatibility_functions.html"><span class="doc">compatibility layers</span></a> for:<ul>
1621<li><a class="reference external" href="http://php.net/mbstring">Multibyte String</a> (limited support).</li>
1622<li><a class="reference external" href="http://php.net/hash">Hash</a> (<code class="docutils literal"><span class="pre">hash_equals()</span></code>, <code class="docutils literal"><span class="pre">hash_pbkdf2()</span></code>).</li>
1623<li><a class="reference external" href="http://php.net/password">Password Hashing</a>.</li>
1624<li><cite>Standard Functions ``array_column()`</cite>, <code class="docutils literal"><span class="pre">array_replace()</span></code>, <code class="docutils literal"><span class="pre">array_replace_recursive()</span></code>, <code class="docutils literal"><span class="pre">hex2bin()</span></code>, <code class="docutils literal"><span class="pre">quoted_printable_encode()</span></code>.</li>
1625</ul>
1626</li>
1627<li>Removed <code class="docutils literal"><span class="pre">CI_CORE</span></code> boolean constant from <em>CodeIgniter.php</em> (no longer Reactor and Core versions).</li>
1628<li>Added support for HTTP-Only cookies with new config option <em>cookie_httponly</em> (default FALSE).</li>
1629<li><code class="docutils literal"><span class="pre">$config['time_reference']</span></code> now supports all timezone strings supported by PHP.</li>
1630<li>Fatal PHP errors are now also passed to <code class="docutils literal"><span class="pre">_error_handler()</span></code>, so they can be logged.</li>
1631</ul>
1632</li>
1633</ul>
1634<div class="section" id="bug-fixes-for-3-0">
1635<h3>Bug fixes for 3.0<a class="headerlink" href="#bug-fixes-for-3-0" title="Permalink to this headline"></a></h3>
1636<ul class="simple">
1637<li>Fixed a bug where <code class="docutils literal"><span class="pre">unlink()</span></code> raised an error if cache file did not exist when you try to delete it.</li>
1638<li>Fixed a bug (#181) - a typo in the form validation language file.</li>
1639<li>Fixed a bug (#159, #163) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> nested transactions didn’t work properly due to <code class="docutils literal"><span class="pre">$_trans_depth</span></code> not being incremented.</li>
1640<li>Fixed a bug (#737, #75) - <a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination</span></a> anchor class was not set properly when using initialize method.</li>
1641<li>Fixed a bug (#419) - <a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL Helper</span></a> <a class="reference internal" href="helpers/url_helper.html#auto_link" title="auto_link"><code class="xref php php-func docutils literal"><span class="pre">auto_link()</span></code></a> didn’t recognize URLs that come after a word boundary.</li>
1642<li>Fixed a bug (#724) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> rule <strong>is_unique</strong> didn’t check if a database connection exists.</li>
1643<li>Fixed a bug (#647) - <a class="reference internal" href="libraries/zip.html"><span class="doc">Zip Library</span></a> internal method <code class="docutils literal"><span class="pre">_get_mod_time()</span></code> didn’t suppress possible “stat failed” errors generated by <code class="docutils literal"><span class="pre">filemtime()</span></code>.</li>
1644<li>Fixed a bug (#157, #174) - <a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Manipulation Library</span></a> method <code class="docutils literal"><span class="pre">clear()</span></code> didn’t completely clear properties.</li>
1645<li>Fixed a bug where <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> method <code class="docutils literal"><span class="pre">create_table()</span></code> with PostgreSQL database could lead to fetching the whole table.</li>
1646<li>Fixed a bug (#795) - <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form Helper</span></a> <a class="reference internal" href="helpers/form_helper.html#form_open" title="form_open"><code class="xref php php-func docutils literal"><span class="pre">form_open()</span></code></a> didn’t add the default form <em>method</em> and <em>accept-charset</em> when an empty array is passed to it.</li>
1647<li>Fixed a bug (#797) - <a class="reference internal" href="helpers/date_helper.html"><span class="doc">Date Helper</span></a> <a class="reference internal" href="helpers/date_helper.html#timespan" title="timespan"><code class="xref php php-func docutils literal"><span class="pre">timespan()</span></code></a> was using incorrect seconds for year and month.</li>
1648<li>Fixed a bug in <a class="reference internal" href="libraries/cart.html"><span class="doc">Cart Library</span></a> method <code class="docutils literal"><span class="pre">contents()</span></code> where if called without a TRUE (or equal) parameter, it would fail due to a typo.</li>
1649<li>Fixed a bug (#406) - SQLSRV DB driver not returning resource on <code class="docutils literal"><span class="pre">db_pconnect()</span></code>.</li>
1650<li>Fixed a bug in <a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Manipulation Library</span></a> method <code class="docutils literal"><span class="pre">gd_loaded()</span></code> where it was possible for the script execution to end or a PHP E_WARNING message to be emitted.</li>
1651<li>Fixed a bug in the <a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination library</span></a> where when use_page_numbers=TRUE previous link and page 1 link did not have the same url.</li>
1652<li>Fixed a bug (#561) - errors in <a class="reference internal" href="libraries/xmlrpc.html"><span class="doc">XML-RPC Library</span></a> were not properly escaped.</li>
1653<li>Fixed a bug (#904) - <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Library</span></a> method <code class="docutils literal"><span class="pre">initialize()</span></code> caused a PHP Fatal error to be triggered if error level E_STRICT is used.</li>
1654<li>Fixed a hosting edge case where an empty <code class="docutils literal"><span class="pre">$_SERVER['HTTPS']</span></code> variable would evaluate to ‘on’.</li>
1655<li>Fixed a bug (#154) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> method <code class="docutils literal"><span class="pre">sess_update()</span></code> caused the session to be destroyed on pages where multiple AJAX requests were executed at once.</li>
1656<li>Fixed a possible bug in <a class="reference internal" href="libraries/input.html"><span class="doc">Input Libary</span></a> method <code class="docutils literal"><span class="pre">is_ajax_request()</span></code> where some clients might not send the X-Requested-With HTTP header value exactly as ‘XmlHttpRequest’.</li>
1657<li>Fixed a bug (#1039) - <a class="reference internal" href="database/utilities.html"><span class="doc">Database Utilities</span></a> internal method <code class="docutils literal"><span class="pre">_backup()</span></code> method failed for the ‘mysql’ driver due to a table name not being escaped.</li>
1658<li>Fixed a bug (#1070) - <code class="docutils literal"><span class="pre">CI_DB_driver::initialize()</span></code> didn’t set a character set if a database is not selected.</li>
1659<li>Fixed a bug (#177) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> method <code class="docutils literal"><span class="pre">set_value()</span></code> didn’t set the default value if POST data is NULL.</li>
1660<li>Fixed a bug (#68, #414) - :Oracle’s <code class="docutils literal"><span class="pre">escape_str()</span></code> didn’t properly escape LIKE wild characters.</li>
1661<li>Fixed a bug (#81) - ODBC’s <code class="docutils literal"><span class="pre">list_fields()</span></code> and <code class="docutils literal"><span class="pre">field_data()</span></code> methods skipped the first column due to <code class="docutils literal"><span class="pre">odbc_field_*()</span></code> functions’ index starting at 1 instead of 0.</li>
1662<li>Fixed a bug (#129) - ODBC’s <code class="docutils literal"><span class="pre">num_rows()</span></code> method returned -1 in some cases, due to not all subdrivers supporting the <code class="docutils literal"><span class="pre">odbc_num_rows()</span></code> function.</li>
1663<li>Fixed a bug (#153) - E_NOTICE being generated by <code class="docutils literal"><span class="pre">getimagesize()</span></code> in the <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File Uploading Library</span></a>.</li>
1664<li>Fixed a bug (#611) - SQLSRV’s error handling methods used to issue warnings when there’s no actual error.</li>
1665<li>Fixed a bug (#1036) - <code class="docutils literal"><span class="pre">is_write_type()</span></code> method in the <a class="reference internal" href="database/index.html"><span class="doc">Database Library</span></a> didn’t return TRUE for RENAME queries.</li>
1666<li>Fixed a bug in PDO’s <code class="docutils literal"><span class="pre">_version()</span></code> method where it used to return the client version as opposed to the server one.</li>
1667<li>Fixed a bug in PDO’s <code class="docutils literal"><span class="pre">insert_id()</span></code> method where it could’ve failed if it’s used with Postgre versions prior to 8.1.</li>
1668<li>Fixed a bug in CUBRID’s <code class="docutils literal"><span class="pre">affected_rows()</span></code> method where a connection resource was passed to <code class="docutils literal"><span class="pre">cubrid_affected_rows()</span></code> instead of a result.</li>
1669<li>Fixed a bug (#638) - <code class="docutils literal"><span class="pre">db_set_charset()</span></code> ignored its arguments and always used the configured charset instead.</li>
1670<li>Fixed a bug (#413) - Oracle’s error handling methods used to only return connection-related errors.</li>
1671<li>Fixed a bug (#1101) - <a class="reference internal" href="database/results.html"><span class="doc">Database Result</span></a> method <code class="docutils literal"><span class="pre">field_data()</span></code> for ‘mysql’, ‘mysqli’ drivers was implemented as if it was handling a DESCRIBE result instead of the actual result set.</li>
1672<li>Fixed a bug in Oracle’s <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> method <code class="docutils literal"><span class="pre">_create_table()</span></code> where it failed with AUTO_INCREMENT as it’s not supported.</li>
1673<li>Fixed a bug (#1080) - when using the SMTP protocol, <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> method <code class="docutils literal"><span class="pre">send()</span></code> was returning TRUE even if the connection/authentication against the server failed.</li>
1674<li>Fixed a bug (#306) - ODBC’s <code class="docutils literal"><span class="pre">insert_id()</span></code> method was calling non-existent function <code class="docutils literal"><span class="pre">odbc_insert_id()</span></code>, which resulted in a fatal error.</li>
1675<li>Fixed a bug in Oracle’s <a class="reference internal" href="database/results.html"><span class="doc">Database Result</span></a> implementation where the cursor ID passed to it was always NULL.</li>
1676<li>Fixed a bug (#64) - Regular expression in <em>DB_query_builder.php</em> failed to handle queries containing SQL bracket delimiters in the JOIN condition.</li>
1677<li>Fixed a bug in the <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> where a PHP E_NOTICE error was triggered by <code class="docutils literal"><span class="pre">_unserialize()</span></code> due to results from databases such as MSSQL and Oracle being space-padded on the right.</li>
1678<li>Fixed a bug (#501) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> method <code class="docutils literal"><span class="pre">set_rules()</span></code> depended on <code class="docutils literal"><span class="pre">count($_POST)</span></code> instead of actually checking if the request method ‘POST’ before aborting.</li>
1679<li>Fixed a bug (#136) - PostgreSQL and MySQL’s <code class="docutils literal"><span class="pre">escape_str()</span></code> method didn’t properly escape LIKE wild characters.</li>
1680<li>Fixed a bug in <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Library</span></a> method <code class="docutils literal"><span class="pre">library()</span></code> where some PHP versions wouldn’t execute the class constructor.</li>
1681<li>Fixed a bug (#88) - An unexisting property was used for configuration of the Memcache cache driver.</li>
1682<li>Fixed a bug (#14) - <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> method <code class="docutils literal"><span class="pre">create_database()</span></code> didn’t utilize the configured database character set.</li>
1683<li>Fixed a bug (#23, #1238) - <a class="reference internal" href="database/caching.html"><span class="doc">Database Caching</span></a> method <code class="docutils literal"><span class="pre">delete_all()</span></code> used to delete .htaccess and index.html files, which is a potential security risk.</li>
1684<li>Fixed a bug in <a class="reference internal" href="libraries/trackback.html"><span class="doc">Trackback Library</span></a> method <code class="docutils literal"><span class="pre">validate_url()</span></code> where it didn’t actually do anything, due to input not being passed by reference.</li>
1685<li>Fixed a bug (#11, #183, #863) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> method <code class="docutils literal"><span class="pre">_execute()</span></code> silently continued to the next rule, if a rule method/function is not found.</li>
1686<li>Fixed a bug (#122) - routed URI string was being reported incorrectly in sub-directories.</li>
1687<li>Fixed a bug (#1241) - <a class="reference internal" href="libraries/zip.html"><span class="doc">Zip Library</span></a> method <code class="docutils literal"><span class="pre">read_dir()</span></code> wasn’t compatible with Windows.</li>
1688<li>Fixed a bug (#306) - ODBC driver didn’t have an <code class="docutils literal"><span class="pre">_insert_batch()</span></code> method, which resulted in fatal error being triggered when <code class="docutils literal"><span class="pre">insert_batch()</span></code> is used with it.</li>
1689<li>Fixed a bug in MSSQL and SQLSrv’s <code class="docutils literal"><span class="pre">_truncate()</span></code> where the TABLE keyword was missing.</li>
1690<li>Fixed a bug in PDO’s <code class="docutils literal"><span class="pre">trans_commit()</span></code> method where it failed due to an erroneous property name.</li>
1691<li>Fixed a bug (#798) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">update()</span></code> used to ignore LIKE conditions that were set with <code class="docutils literal"><span class="pre">like()</span></code>.</li>
1692<li>Fixed a bug in Oracle’s and MSSQL’s <code class="docutils literal"><span class="pre">delete()</span></code> methods where an erroneous SQL statement was generated when used with <code class="docutils literal"><span class="pre">limit()</span></code>.</li>
1693<li>Fixed a bug in SQLSRV’s <code class="docutils literal"><span class="pre">delete()</span></code> method where <code class="docutils literal"><span class="pre">like()</span></code> and <code class="docutils literal"><span class="pre">limit()</span></code> conditions were ignored.</li>
1694<li>Fixed a bug (#1265) - Database connections were always closed, regardless of the ‘pconnect’ option value.</li>
1695<li>Fixed a bug (#128) - <a class="reference internal" href="libraries/language.html"><span class="doc">Language Library</span></a> did not correctly keep track of loaded language files.</li>
1696<li>Fixed a bug (#1349) - <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File Uploading Library</span></a> method <code class="docutils literal"><span class="pre">get_extension()</span></code> returned the original filename when it didn’t have an actual extension.</li>
1697<li>Fixed a bug (#1273) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">set_update_batch()</span></code> generated an E_NOTICE message.</li>
1698<li>Fixed a bug (#44, #110) - <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File Uploading Library</span></a> method <code class="docutils literal"><span class="pre">clean_file_name()</span></code> didn’t clear ‘!’ and ‘#’ characters.</li>
1699<li>Fixed a bug (#121) - <a class="reference internal" href="database/results.html"><span class="doc">Database Results</span></a> method <code class="docutils literal"><span class="pre">row()</span></code> returned an array when there’s no actual result to be returned.</li>
1700<li>Fixed a bug (#319) - SQLSRV’s <code class="docutils literal"><span class="pre">affected_rows()</span></code> method failed due to a scrollable cursor being created for write-type queries.</li>
1701<li>Fixed a bug (#356) - <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> driver ‘postgre’ didn’t have an <code class="docutils literal"><span class="pre">_update_batch()</span></code> method, which resulted in fatal error being triggered when <code class="docutils literal"><span class="pre">update_batch()</span></code> is used with it.</li>
1702<li>Fixed a bug (#784, #862) - <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> method <code class="docutils literal"><span class="pre">create_table()</span></code> failed on SQLSRV/MSSQL when used with ‘IF NOT EXISTS’.</li>
1703<li>Fixed a bug (#1419) - <a class="reference internal" href="general/creating_drivers.html"><span class="doc">Driver Library</span></a> had a static variable that was causing an error.</li>
1704<li>Fixed a bug (#1411) - the <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> used its own short list of MIMEs instead the one from <em>config/mimes.php</em>.</li>
1705<li>Fixed a bug where php.ini setting <em>magic_quotes_runtime</em> wasn’t turned off for PHP 5.3 (where it is indeed deprecated, but not non-existent).</li>
1706<li>Fixed a bug (#666) - <a class="reference internal" href="libraries/output.html"><span class="doc">Output Library</span></a> method <code class="docutils literal"><span class="pre">set_content_type()</span></code> didn’t set the document charset.</li>
1707<li>Fixed a bug (#784, #861) - <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> method <code class="docutils literal"><span class="pre">create_table()</span></code> used to accept constraints for MSSQL/SQLSRV integer-type columns.</li>
1708<li>Fixed a bug (#706) - SQLSRV/MSSSQL <a class="reference internal" href="database/index.html"><span class="doc">Database</span></a> drivers didn’t escape field names.</li>
1709<li>Fixed a bug (#1452) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">protect_identifiers()</span></code> didn’t properly detect identifiers with spaces in their names.</li>
1710<li>Fixed a bug where <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">protect_identifiers()</span></code> ignored its extra arguments when the value passed to it is an array.</li>
1711<li>Fixed a bug where <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> internal method <code class="docutils literal"><span class="pre">_has_operator()</span></code> didn’t detect BETWEEN.</li>
1712<li>Fixed a bug where <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">join()</span></code> failed with identifiers containing dashes.</li>
1713<li>Fixed a bug (#1264) - <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> and <a class="reference internal" href="database/utilities.html"><span class="doc">Database Utilities</span></a> didn’t update/reset the databases and tables list cache when a table or a database is created, dropped or renamed.</li>
1714<li>Fixed a bug (#7) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">join()</span></code> only escaped one set of conditions.</li>
1715<li>Fixed a bug (#1321) - <code class="docutils literal"><span class="pre">CI_Exceptions</span></code> couldn’t find the <em>errors/</em> directory in some cases.</li>
1716<li>Fixed a bug (#1202) - <a class="reference internal" href="libraries/encrypt.html"><span class="doc">Encrypt Library</span></a> <code class="docutils literal"><span class="pre">encode_from_legacy()</span></code> didn’t set back the encrypt mode on failure.</li>
1717<li>Fixed a bug (#145) - <a class="reference internal" href="database/index.html"><span class="doc">Database Class</span></a> method <code class="docutils literal"><span class="pre">compile_binds()</span></code> failed when the bind marker was present in a literal string within the query.</li>
1718<li>Fixed a bug in <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">protect_identifiers()</span></code> where if passed along with the field names, operators got escaped as well.</li>
1719<li>Fixed a bug (#10) - <a class="reference internal" href="libraries/uri.html"><span class="doc">URI Library</span></a> internal method <code class="docutils literal"><span class="pre">_detect_uri()</span></code> failed with paths containing a colon.</li>
1720<li>Fixed a bug (#1387) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">from()</span></code> didn’t escape table aliases.</li>
1721<li>Fixed a bug (#520) - <a class="reference internal" href="helpers/date_helper.html"><span class="doc">Date Helper</span></a> function :php:func:<code class="docutils literal"><span class="pre">nice_date()</span></code> failed when the optional second parameter is not passed.</li>
1722<li>Fixed a bug (#318) - <a class="reference internal" href="general/profiling.html"><span class="doc">Profiling Library</span></a> setting <em>query_toggle_count</em> was not settable as described in the manual.</li>
1723<li>Fixed a bug (#938) - <a class="reference internal" href="libraries/config.html"><span class="doc">Config Library</span></a> method <code class="docutils literal"><span class="pre">site_url()</span></code> added a question mark to the URL string when query strings are enabled even if it already existed.</li>
1724<li>Fixed a bug (#999) - <a class="reference internal" href="libraries/config.html"><span class="doc">Config Library</span></a> method <code class="docutils literal"><span class="pre">site_url()</span></code> always appended <code class="docutils literal"><span class="pre">$config['url_suffix']</span></code> to the end of the URL string, regardless of whether a query string exists in it.</li>
1725<li>Fixed a bug where <a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL Helper</span></a> function <a class="reference internal" href="helpers/url_helper.html#anchor_popup" title="anchor_popup"><code class="xref php php-func docutils literal"><span class="pre">anchor_popup()</span></code></a> ignored the attributes argument if it is not an array.</li>
1726<li>Fixed a bug (#1328) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> didn’t properly check the type of the form fields before processing them.</li>
1727<li>Fixed a bug (#79) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> didn’t properly validate array fields that use associative keys or have custom indexes.</li>
1728<li>Fixed a bug (#427) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> method <code class="docutils literal"><span class="pre">strip_image_tags()</span></code> was an alias to a non-existent method.</li>
1729<li>Fixed a bug (#1545) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">limit()</span></code> wasn’t executed properly under Oracle.</li>
1730<li>Fixed a bug (#1551) - <a class="reference internal" href="helpers/date_helper.html"><span class="doc">Date Helper</span></a> function <a class="reference internal" href="helpers/date_helper.html#standard_date" title="standard_date"><code class="xref php php-func docutils literal"><span class="pre">standard_date()</span></code></a> didn’t properly format <em>W3C</em> and <em>ATOM</em> standard dates.</li>
1731<li>Fixed a bug where <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">join()</span></code> escaped literal values as if they were fields.</li>
1732<li>Fixed a bug (#135) - PHP Error logging was impossible without the errors being displayed.</li>
1733<li>Fixed a bug (#1613) - <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form Helper</span></a> functions <a class="reference internal" href="helpers/form_helper.html#form_multiselect" title="form_multiselect"><code class="xref php php-func docutils literal"><span class="pre">form_multiselect()</span></code></a>, <a class="reference internal" href="helpers/form_helper.html#form_dropdown" title="form_dropdown"><code class="xref php php-func docutils literal"><span class="pre">form_dropdown()</span></code></a> didn’t properly handle empty array option groups.</li>
1734<li>Fixed a bug (#1605) - <a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination Library</span></a> produced incorrect <em>previous</em> and <em>next</em> link values.</li>
1735<li>Fixed a bug in SQLSRV’s <code class="docutils literal"><span class="pre">affected_rows()</span></code> method where an erroneous function name was used.</li>
1736<li>Fixed a bug (#1000) - Change syntax of <code class="docutils literal"><span class="pre">$view_file</span></code> to <code class="docutils literal"><span class="pre">$_ci_view_file</span></code> to prevent being overwritten by application.</li>
1737<li>Fixed a bug (#1757) - <a class="reference internal" href="helpers/directory_helper.html"><span class="doc">Directory Helper</span></a> function <a class="reference internal" href="helpers/directory_helper.html#directory_map" title="directory_map"><code class="xref php php-func docutils literal"><span class="pre">directory_map()</span></code></a> was skipping files and directories named ‘0’.</li>
1738<li>Fixed a bug (#1789) - <a class="reference internal" href="database/index.html"><span class="doc">Database Library</span></a> method <code class="docutils literal"><span class="pre">escape_str()</span></code> escaped quote characters in LIKE conditions twice under MySQL.</li>
1739<li>Fixed a bug (#395) - <a class="reference internal" href="libraries/unit_testing.html"><span class="doc">Unit Testing Library</span></a> method <code class="docutils literal"><span class="pre">result()</span></code> didn’t properly check array result columns when called from <code class="docutils literal"><span class="pre">report()</span></code>.</li>
1740<li>Fixed a bug (#1692) - <a class="reference internal" href="database/index.html"><span class="doc">Database Class</span></a> method <code class="docutils literal"><span class="pre">display_error()</span></code> didn’t properly trace the possible error source on Windows systems.</li>
1741<li>Fixed a bug (#1745) - <a class="reference internal" href="database/index.html"><span class="doc">Database Class</span></a> method <code class="docutils literal"><span class="pre">is_write_type()</span></code> didn’t return TRUE for LOAD queries.</li>
1742<li>Fixed a bug (#1765) - <a class="reference internal" href="database/index.html"><span class="doc">Database Class</span></a> didn’t properly detect connection errors for the ‘mysqli’ driver.</li>
1743<li>Fixed a bug (#1257) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> used to (unnecessarily) group FROM clause contents, which breaks certain queries and is invalid for some databases.</li>
1744<li>Fixed a bug (#1709) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email</span></a> headers were broken when using long email subjects and rn as CRLF.</li>
1745<li>Fixed a bug where <code class="docutils literal"><span class="pre">MB_ENABLED</span></code> constant was only declared if <code class="docutils literal"><span class="pre">UTF8_ENABLED</span></code> was set to TRUE.</li>
1746<li>Fixed a bug where the <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> accepted cookies with <em>last_activity</em> values being in the future.</li>
1747<li>Fixed a bug (#1897) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> triggered PHP E_WARNING errors when <em>mail</em> protocol used and <code class="docutils literal"><span class="pre">to()</span></code> is never called.</li>
1748<li>Fixed a bug (#1409) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> didn’t properly handle multibyte characters when applying Q-encoding to headers.</li>
1749<li>Fixed a bug where <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> ignored its <em>wordwrap</em> setting while handling alternative messages.</li>
1750<li>Fixed a bug (#1476, #1909) - <a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination Library</span></a> didn’t take into account actual routing when determining the current page.</li>
1751<li>Fixed a bug (#1766) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> didn’t always take into account the <em>dbprefix</em> setting.</li>
1752<li>Fixed a bug (#779) - <a class="reference internal" href="libraries/uri.html"><span class="doc">URI Class</span></a> didn’t always trim slashes from the <em>uri_string</em> as shown in the documentation.</li>
1753<li>Fixed a bug (#134) - <a class="reference internal" href="database/caching.html"><span class="doc">Database Caching</span></a> method <code class="docutils literal"><span class="pre">delete_cache()</span></code> didn’t work in some cases due to <em>cachedir</em> not being initialized properly.</li>
1754<li>Fixed a bug (#191) - <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Library</span></a> ignored attempts for (re)loading databases to <code class="docutils literal"><span class="pre">get_instance()-&gt;db</span></code> even when the old database connection is dead.</li>
1755<li>Fixed a bug (#1255) - <a class="reference internal" href="libraries/user_agent.html"><span class="doc">User Agent Library</span></a> method <code class="docutils literal"><span class="pre">is_referral()</span></code> only checked if <code class="docutils literal"><span class="pre">$_SERVER['HTTP_REFERER']</span></code> exists.</li>
1756<li>Fixed a bug (#1146) - <a class="reference internal" href="helpers/download_helper.html"><span class="doc">Download Helper</span></a> function <a class="reference internal" href="helpers/download_helper.html#force_download" title="force_download"><code class="xref php php-func docutils literal"><span class="pre">force_download()</span></code></a> incorrectly sent <em>Cache-Control</em> directives <em>pre-check</em> and <em>post-check</em> to Internet Explorer.</li>
1757<li>Fixed a bug (#1811) - <a class="reference internal" href="libraries/uri.html"><span class="doc">URI Library</span></a> didn’t properly cache segments for <code class="docutils literal"><span class="pre">uri_to_assoc()</span></code> and <code class="docutils literal"><span class="pre">ruri_to_assoc()</span></code>.</li>
1758<li>Fixed a bug (#1506) - <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form Helpers</span></a> set empty <em>name</em> attributes.</li>
1759<li>Fixed a bug (#59) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> method <code class="docutils literal"><span class="pre">count_all_results()</span></code> ignored the DISTINCT clause.</li>
1760<li>Fixed a bug (#1624) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> rule <strong>matches</strong> didn’t property handle array field names.</li>
1761<li>Fixed a bug (#1630) - <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form Helper</span></a> function <a class="reference internal" href="helpers/form_helper.html#set_value" title="set_value"><code class="xref php php-func docutils literal"><span class="pre">set_value()</span></code></a> didn’t escape HTML entities.</li>
1762<li>Fixed a bug (#142) - <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form Helper</span></a> function <a class="reference internal" href="helpers/form_helper.html#form_dropdown" title="form_dropdown"><code class="xref php php-func docutils literal"><span class="pre">form_dropdown()</span></code></a> didn’t escape HTML entities in option values.</li>
1763<li>Fixed a bug (#50) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> unnecessarily stripped slashed from serialized data, making it impossible to read objects in a namespace.</li>
1764<li>Fixed a bug (#658) - <a class="reference internal" href="general/routing.html"><span class="doc">Routing</span></a> wildcard <strong>:any</strong> didn’t work as advertised and matched multiple URI segments instead of all characters within a single segment.</li>
1765<li>Fixed a bug (#1938) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> removed multiple spaces inside a pre-formatted plain text message.</li>
1766<li>Fixed a bug (#122) - <a class="reference internal" href="libraries/uri.html"><span class="doc">URI Library</span></a> method <code class="docutils literal"><span class="pre">ruri_string()</span></code> didn’t include a directory if one is used.</li>
1767<li>Fixed a bug - <a class="reference internal" href="general/routing.html"><span class="doc">Routing Library</span></a> didn’t properly handle <em>default_controller</em> in a subdirectory when a method is also specified.</li>
1768<li>Fixed a bug (#953) - <a class="reference internal" href="general/hooks.html"><span class="doc">post_controller_constructor hook</span></a> wasn’t called with a <em>404_override</em>.</li>
1769<li>Fixed a bug (#1220) - <a class="reference internal" href="general/profiling.html"><span class="doc">Profiler Library</span></a> didn’t display information for database objects that are instantiated inside models.</li>
1770<li>Fixed a bug (#1978) - <a class="reference internal" href="helpers/directory_helper.html"><span class="doc">Directory Helper</span></a> function <a class="reference internal" href="helpers/directory_helper.html#directory_map" title="directory_map"><code class="xref php php-func docutils literal"><span class="pre">directory_map()</span></code></a>’s return array didn’t make a distinction between directories and file indexes when a directory with a numeric name is present.</li>
1771<li>Fixed a bug (#777) - <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Library</span></a> didn’t look for helper extensions in added package paths.</li>
1772<li>Fixed a bug (#18) - <a class="reference internal" href="libraries/caching.html"><span class="doc">APC Cache</span></a> driver didn’t (un)serialize data, resulting in failure to store objects.</li>
1773<li>Fixed a bug (#188) - <a class="reference internal" href="libraries/unit_testing.html"><span class="doc">Unit Testing Library</span></a> filled up logs with error messages for non-existing language keys.</li>
1774<li>Fixed a bug (#113) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> didn’t properly handle empty fields that were specified as an array.</li>
1775<li>Fixed a bug (#2061) - <a class="reference internal" href="general/routing.html"><span class="doc">Routing Class</span></a> didn’t properly sanitize directory, controller and function triggers with <strong>enable_query_strings</strong> set to TRUE.</li>
1776<li>Fixed a bug - SQLSRV didn’t support <code class="docutils literal"><span class="pre">escape_like_str()</span></code> or escaping an array of values.</li>
1777<li>Fixed a bug - <a class="reference internal" href="database/results.html"><span class="doc">Database Results</span></a> method <code class="docutils literal"><span class="pre">list_fields()</span></code> didn’t reset its field pointer for the ‘mysql’, ‘mysqli’ and ‘mssql’ drivers.</li>
1778<li>Fixed a bug (#2211) - <a class="reference internal" href="libraries/migration.html"><span class="doc">Migration Library</span></a> extensions couldn’t execute <code class="docutils literal"><span class="pre">CI_Migration::__construct()</span></code>.</li>
1779<li>Fixed a bug (#2255) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> didn’t apply <em>smtp_timeout</em> to socket reads and writes.</li>
1780<li>Fixed a bug (#2239) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> improperly handled the Subject when used with <em>bcc_batch_mode</em> resulting in E_WARNING messages and an empty Subject.</li>
1781<li>Fixed a bug (#2234) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> didn’t reset JOIN cache for write-type queries.</li>
1782<li>Fixed a bug (#2298) - <a class="reference internal" href="database/results.html"><span class="doc">Database Results</span></a> method <code class="docutils literal"><span class="pre">next_row()</span></code> kept returning the last row, allowing for infinite loops.</li>
1783<li>Fixed a bug (#2236, #2639) - <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form Helper</span></a> functions <a class="reference internal" href="helpers/form_helper.html#set_value" title="set_value"><code class="xref php php-func docutils literal"><span class="pre">set_value()</span></code></a>, <a class="reference internal" href="helpers/form_helper.html#set_select" title="set_select"><code class="xref php php-func docutils literal"><span class="pre">set_select()</span></code></a>, <a class="reference internal" href="helpers/form_helper.html#set_radio" title="set_radio"><code class="xref php php-func docutils literal"><span class="pre">set_radio()</span></code></a>, <a class="reference internal" href="helpers/form_helper.html#set_checkbox" title="set_checkbox"><code class="xref php php-func docutils literal"><span class="pre">set_checkbox()</span></code></a> didn’t parse array notation for keys if the rule was not present in the <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a>.</li>
1784<li>Fixed a bug (#2353) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> erroneously prefixed literal strings with <strong>dbprefix</strong>.</li>
1785<li>Fixed a bug (#78) - <a class="reference internal" href="libraries/cart.html"><span class="doc">Cart Library</span></a> didn’t allow non-English letters in product names.</li>
1786<li>Fixed a bug (#77) - <a class="reference internal" href="database/index.html"><span class="doc">Database Class</span></a> didn’t properly handle the transaction “test mode” flag.</li>
1787<li>Fixed a bug (#2380) - <a class="reference internal" href="general/routing.html"><span class="doc">URI Routing</span></a> method <code class="docutils literal"><span class="pre">fetch_method()</span></code> returned ‘index’ if the requested method name matches its controller name.</li>
1788<li>Fixed a bug (#2388) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> used to ignore attachment errors, resulting in broken emails being sent.</li>
1789<li>Fixed a bug (#2498) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> rule <strong>valid_base64</strong> only checked characters instead of actual validity.</li>
1790<li>Fixed a bug (#2425) - OCI8 <a class="reference internal" href="database/index.html"><span class="doc">database</span></a> driver method <code class="docutils literal"><span class="pre">stored_procedure()</span></code> didn’t log an error unless <strong>db_debug</strong> was set to TRUE.</li>
1791<li>Fixed a bug (#2490) - <a class="reference internal" href="database/queries.html"><span class="doc">Database Class</span></a> method <code class="docutils literal"><span class="pre">query()</span></code> returning boolean instead of a result object for PostgreSQL-specific <em>INSERT INTO … RETURNING</em> statements.</li>
1792<li>Fixed a bug (#249) - <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache Library</span></a> didn’t properly handle Memcache(d) configurations with missing options.</li>
1793<li>Fixed a bug (#180) - <a class="reference internal" href="general/common_functions.html#config_item" title="config_item"><code class="xref php php-func docutils literal"><span class="pre">config_item()</span></code></a> didn’t take into account run-time configuration changes.</li>
1794<li>Fixed a bug (#2551) - <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader Library</span></a> method <code class="docutils literal"><span class="pre">library()</span></code> didn’t properly check if a class that is being loaded already exists.</li>
1795<li>Fixed a bug (#2560) - <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form Helper</span></a> function <a class="reference internal" href="helpers/form_helper.html#form_open" title="form_open"><code class="xref php php-func docutils literal"><span class="pre">form_open()</span></code></a> set the ‘method=”post”’ attribute only if the passed attributes equaled an empty string.</li>
1796<li>Fixed a bug (#2585) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> methods <code class="docutils literal"><span class="pre">min()</span></code>, <code class="docutils literal"><span class="pre">max()</span></code>, <code class="docutils literal"><span class="pre">avg()</span></code>, <code class="docutils literal"><span class="pre">sum()</span></code> didn’t escape field names.</li>
1797<li>Fixed a bug (#2590) - <a class="reference internal" href="general/common_functions.html"><span class="doc">Common function</span></a> <a class="reference internal" href="general/errors.html#log_message" title="log_message"><code class="xref php php-func docutils literal"><span class="pre">log_message()</span></code></a> didn’t actually cache the <code class="docutils literal"><span class="pre">CI_Log</span></code> class instance.</li>
1798<li>Fixed a bug (#2609) - <a class="reference internal" href="general/common_functions.html"><span class="doc">Common function</span></a> <code class="xref php php-func docutils literal"><span class="pre">get_config()</span></code> optional argument was only effective on first function call. Also, it can now add items, in addition to updating existing items.</li>
1799<li>Fixed a bug in the ‘postgre’ <a class="reference internal" href="database/index.html"><span class="doc">database</span></a> driver where the connection ID wasn’t passed to <code class="docutils literal"><span class="pre">pg_escape_string()</span></code>.</li>
1800<li>Fixed a bug (#33) - Script execution was terminated when an invalid cookie key was encountered.</li>
1801<li>Fixed a bug (#2691) - nested <a class="reference internal" href="database/index.html"><span class="doc">database</span></a> transactions could end in a deadlock when an error is encountered with <em>db_debug</em> set to TRUE.</li>
1802<li>Fixed a bug (#2515) - <code class="docutils literal"><span class="pre">_exception_handler()</span></code> used to send the 200 “OK” HTTP status code and didn’t stop script exection even on fatal errors.</li>
1803<li>Fixed a bug - Redis <a class="reference internal" href="libraries/caching.html"><span class="doc">Caching</span></a> driver didn’t handle connection failures properly.</li>
1804<li>Fixed a bug (#2756) - <a class="reference internal" href="database/index.html"><span class="doc">Database Class</span></a> executed the MySQL-specific <cite>SET SESSION sql_mode</cite> query for all drivers when the ‘stricton’ option is set.</li>
1805<li>Fixed a bug (#2579) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> “no escape” functionality didn’t work properly with query cache.</li>
1806<li>Fixed a bug (#2237) - <a class="reference internal" href="libraries/parser.html"><span class="doc">Parser Library</span></a> failed if the same tag pair is used more than once within a template.</li>
1807<li>Fixed a bug (#2143) - <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a> didn’t check for rule groups named in a <em>controller/method</em> manner when trying to load from a config file.</li>
1808<li>Fixed a bug (#2762) - <a class="reference internal" href="general/hooks.html"><span class="doc">Hooks Class</span></a> didn’t properly check if the called class/function exists.</li>
1809<li>Fixed a bug (#148) - <a class="reference internal" href="libraries/input.html"><span class="doc">Input Library</span></a> internal method <code class="docutils literal"><span class="pre">_clean_input_data()</span></code> assumed that it data is URL-encoded, stripping certain character sequences from it.</li>
1810<li>Fixed a bug (#346) - with <code class="docutils literal"><span class="pre">$config['global_xss_filtering']</span></code> turned on, the <code class="docutils literal"><span class="pre">$_GET</span></code>, <code class="docutils literal"><span class="pre">$_POST</span></code>, <code class="docutils literal"><span class="pre">$_COOKIE</span></code> and <code class="docutils literal"><span class="pre">$_SERVER</span></code> superglobals were overwritten during initialization time, resulting in XSS filtering being either performed twice or there was no possible way to get the original data, even though options for this do exist.</li>
1811<li>Fixed an edge case (#555) - <a class="reference internal" href="libraries/user_agent.html"><span class="doc">User Agent Library</span></a> reported an incorrect version Opera 10+ due to a non-standard user-agent string.</li>
1812<li>Fixed a bug (#133) - <a class="reference internal" href="helpers/text_helper.html"><span class="doc">Text Helper</span></a> <a class="reference internal" href="helpers/text_helper.html#ascii_to_entities" title="ascii_to_entities"><code class="xref php php-func docutils literal"><span class="pre">ascii_to_entities()</span></code></a> stripped the last character if it happens to be in the extended ASCII group.</li>
1813<li>Fixed a bug (#2822) - <code class="docutils literal"><span class="pre">fwrite()</span></code> was used incorrectly throughout the whole framework, allowing incomplete writes when writing to a network stream and possibly a few other edge cases.</li>
1814<li>Fixed a bug where <a class="reference internal" href="libraries/user_agent.html"><span class="doc">User Agent Library</span></a> methods <code class="docutils literal"><span class="pre">accept_charset()</span></code> and <code class="docutils literal"><span class="pre">accept_lang()</span></code> didn’t properly parse HTTP headers that contain spaces.</li>
1815<li>Fixed a bug where <em>default_controller</em> was called instad of triggering a 404 error if the current route is in a controller directory.</li>
1816<li>Fixed a bug (#2737) - <a class="reference internal" href="libraries/xmlrpc.html"><span class="doc">XML-RPC Library</span></a> used objects as array keys, which triggered E_NOTICE messages.</li>
1817<li>Fixed a bug (#2771) - <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> method <code class="docutils literal"><span class="pre">xss_clean()</span></code> didn’t take into account HTML5 entities.</li>
1818<li>Fixed a bug (#2856) - ODBC method <code class="docutils literal"><span class="pre">affected_rows()</span></code> passed an incorrect value to <code class="docutils literal"><span class="pre">odbc_num_rows()</span></code>.</li>
1819<li>Fixed a bug (#43) <a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Manipulation Library</span></a> method <code class="docutils literal"><span class="pre">text_watermark()</span></code> didn’t properly determine watermark placement.</li>
1820<li>Fixed a bug where <a class="reference internal" href="libraries/table.html"><span class="doc">HTML Table Library</span></a> ignored its <em>auto_heading</em> setting if headings were not already set.</li>
1821<li>Fixed a bug (#2364) - <a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination Library</span></a> appended the query string (if used) multiple times when there are successive calls to <code class="docutils literal"><span class="pre">create_links()</span></code> with no <code class="docutils literal"><span class="pre">initialize()</span></code> in between them.</li>
1822<li>Partially fixed a bug (#261) - UTF-8 class method <code class="docutils literal"><span class="pre">clean_string()</span></code> generating log messages and/or not producing the desired result due to an upstream bug in iconv.</li>
1823<li>Fixed a bug where <code class="docutils literal"><span class="pre">CI_Xmlrpcs::parseRequest()</span></code> could fail if <code class="docutils literal"><span class="pre">$HTTP_RAW_POST_DATA</span></code> is not populated.</li>
1824<li>Fixed a bug in <a class="reference internal" href="libraries/zip.html"><span class="doc">Zip Library</span></a> internal method <code class="docutils literal"><span class="pre">_get_mod_time()</span></code> where it was not parsing result returned by <code class="docutils literal"><span class="pre">filemtime()</span></code>.</li>
1825<li>Fixed a bug (#3161) - <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache Library</span></a> methods <cite>increment()</cite>, <cite>decrement()</cite> didn’t auto-create non-existent items when using redis and/or file storage.</li>
1826<li>Fixed a bug (#3189) - <a class="reference internal" href="libraries/parser.html"><span class="doc">Parser Library</span></a> used double replacement on <code class="docutils literal"><span class="pre">key-&gt;value</span></code> pairs, exposing a potential template injection vulnerability.</li>
1827<li>Fixed a bug (#3573) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> violated <a class="reference external" href="https://tools.ietf.org/rfc/rfc5321.txt">RFC5321</a> by sending ‘localhost.localdomain’ as a hostname.</li>
1828<li>Fixed a bug (#3572) - <code class="docutils literal"><span class="pre">CI_Security::_remove_evil_attributes()</span></code> failed for large-sized inputs due to <em>pcre.backtrack_limit</em> and didn’t properly match HTML tags.</li>
1829</ul>
1830</div>
1831</div>
1832<div class="section" id="version-2-2-3">
1833<h2>Version 2.2.3<a class="headerlink" href="#version-2-2-3" title="Permalink to this headline"></a></h2>
1834<p>Release Date: July 14, 2015</p>
1835<ul class="simple">
1836<li>Security<ul>
1837<li>Removed a fallback to <code class="docutils literal"><span class="pre">mysql_escape_string()</span></code> in the ‘mysql’ database driver (<code class="docutils literal"><span class="pre">escape_str()</span></code> method) when there’s no active database connection.</li>
1838</ul>
1839</li>
1840</ul>
1841</div>
1842<div class="section" id="version-2-2-2">
1843<h2>Version 2.2.2<a class="headerlink" href="#version-2-2-2" title="Permalink to this headline"></a></h2>
1844<p>Release Date: April 15, 2015</p>
1845<ul class="simple">
1846<li>General Changes<ul>
1847<li>Added HTTP “Host” header character validation to prevent cache poisoning attacks when <em>base_url</em> auto-detection is used.</li>
1848<li>Added <em>FSCommand</em> and <em>seekSegmentTime</em> to the “evil attributes” list in <code class="docutils literal"><span class="pre">CI_Security::xss_clean()</span></code>.</li>
1849</ul>
1850</li>
1851</ul>
1852<div class="section" id="bug-fixes-for-2-2-2">
1853<h3>Bug fixes for 2.2.2<a class="headerlink" href="#bug-fixes-for-2-2-2" title="Permalink to this headline"></a></h3>
1854<ul class="simple">
1855<li>Fixed a bug (#3665) - <code class="docutils literal"><span class="pre">CI_Security::entity_decode()</span></code> triggered warnings under some circumstances.</li>
1856</ul>
1857</div>
1858</div>
1859<div class="section" id="version-2-2-1">
1860<h2>Version 2.2.1<a class="headerlink" href="#version-2-2-1" title="Permalink to this headline"></a></h2>
1861<p>Release Date: January 22, 2015</p>
1862<ul class="simple">
1863<li>General Changes<ul>
1864<li>Improved security in <code class="docutils literal"><span class="pre">xss_clean()</span></code>.</li>
1865<li>Updated timezones in <a class="reference internal" href="helpers/date_helper.html"><span class="doc">Date Helper</span></a>.</li>
1866</ul>
1867</li>
1868</ul>
1869<div class="section" id="bug-fixes-for-2-2-1">
1870<h3>Bug fixes for 2.2.1<a class="headerlink" href="#bug-fixes-for-2-2-1" title="Permalink to this headline"></a></h3>
1871<ul class="simple">
1872<li>Fixed a bug (#3094) - Internal method <code class="docutils literal"><span class="pre">CI_Input::_clean_input_data()</span></code> breaks encrypted session cookies.</li>
1873<li>Fixed a bug (#2268) - <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> method <code class="docutils literal"><span class="pre">xss_clean()</span></code> didn’t properly match JavaScript events.</li>
1874<li>Fixed a bug (#3309) - <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> method <code class="docutils literal"><span class="pre">xss_clean()</span></code> used an overly-invasive pattern to strip JS event handlers.</li>
1875<li>Fixed a bug (#2771) - <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> method <code class="docutils literal"><span class="pre">xss_clean()</span></code> didn’t take into account HTML5 entities.</li>
1876<li>Fixed a bug (#73) - <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> method <code class="docutils literal"><span class="pre">sanitize_filename()</span></code> could be tricked by an XSS attack.</li>
1877<li>Fixed a bug (#2681) - <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> method <code class="docutils literal"><span class="pre">entity_decode()</span></code> used the <code class="docutils literal"><span class="pre">PREG_REPLACE_EVAL</span></code> flag, which is deprecated since PHP 5.5.</li>
1878<li>Fixed a bug (#3302) - Internal function <code class="docutils literal"><span class="pre">get_config()</span></code> triggered an E_NOTICE message on PHP 5.6.</li>
1879<li>Fixed a bug (#2508) - <a class="reference internal" href="libraries/config.html"><span class="doc">Config Library</span></a> didn’t properly detect if the current request is via HTTPS.</li>
1880<li>Fixed a bug (#3314) - SQLSRV <a class="reference internal" href="database/index.html"><span class="doc">Database driver</span></a>’s method <code class="docutils literal"><span class="pre">count_all()</span></code> didn’t escape the supplied table name.</li>
1881<li>Fixed a bug (#3404) - MySQLi <a class="reference internal" href="database/index.html"><span class="doc">Database driver</span></a>’s method <code class="docutils literal"><span class="pre">escape_str()</span></code> had a wrong fallback to <code class="docutils literal"><span class="pre">mysql_escape_string()</span></code> when there was no active connection.</li>
1882<li>Fixed a bug in the <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> where session ID regeneration occurred during AJAX requests.</li>
1883</ul>
1884</div>
1885</div>
1886<div class="section" id="version-2-2-0">
1887<h2>Version 2.2.0<a class="headerlink" href="#version-2-2-0" title="Permalink to this headline"></a></h2>
1888<p>Release Date: June 2, 2014</p>
1889<ul class="simple">
1890<li>General Changes<ul>
1891<li>Security: <a class="reference internal" href="libraries/encrypt.html"><span class="doc">Encrypt Library</span></a> method <code class="docutils literal"><span class="pre">xor_encode()</span></code> has been removed. The Encrypt Class now requires the Mcrypt extension to be installed.</li>
1892<li>Security: The <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> now uses HMAC authentication instead of a simple MD5 checksum.</li>
1893</ul>
1894</li>
1895</ul>
1896<div class="section" id="bug-fixes-for-2-2-0">
1897<h3>Bug fixes for 2.2.0<a class="headerlink" href="#bug-fixes-for-2-2-0" title="Permalink to this headline"></a></h3>
1898<ul class="simple">
1899<li>Fixed an edge case (#2583) in the <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> where <cite>Suhosin &lt;http://www.hardened-php.net/suhosin/&gt;</cite> blocked messages sent via <code class="docutils literal"><span class="pre">mail()</span></code> due to trailing newspaces in headers.</li>
1900<li>Fixed a bug (#696) - make <code class="docutils literal"><span class="pre">oci_execute()</span></code> calls inside <code class="docutils literal"><span class="pre">num_rows()</span></code> non-committing, since they are only there to reset which row is next in line for oci_fetch calls and thus don’t need to be committed.</li>
1901<li>Fixed a bug (#2689) - <a class="reference internal" href="database/forge.html"><span class="doc">Database Force</span></a> methods <code class="docutils literal"><span class="pre">create_table()</span></code>, <code class="docutils literal"><span class="pre">drop_table()</span></code> and <code class="docutils literal"><span class="pre">rename_table()</span></code> produced broken SQL for tge ‘sqlsrv’ driver.</li>
1902<li>Fixed a bug (#2427) - PDO <a class="reference internal" href="database/index.html"><span class="doc">Database driver</span></a> didn’t properly check for query failures.</li>
1903<li>Fixed a bug in the <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> where authentication was not performed for encrypted cookies.</li>
1904</ul>
1905</div>
1906</div>
1907<div class="section" id="version-2-1-4">
1908<h2>Version 2.1.4<a class="headerlink" href="#version-2-1-4" title="Permalink to this headline"></a></h2>
1909<p>Release Date: July 8, 2013</p>
1910<ul class="simple">
1911<li>General Changes<ul>
1912<li>Improved security in <code class="docutils literal"><span class="pre">xss_clean()</span></code>.</li>
1913</ul>
1914</li>
1915</ul>
1916<div class="section" id="bug-fixes-for-2-1-4">
1917<h3>Bug fixes for 2.1.4<a class="headerlink" href="#bug-fixes-for-2-1-4" title="Permalink to this headline"></a></h3>
1918<ul class="simple">
1919<li>Fixed a bug (#1936) - <a class="reference internal" href="libraries/migration.html"><span class="doc">Migration Library</span></a> method <code class="docutils literal"><span class="pre">latest()</span></code> had a typo when retrieving language values.</li>
1920<li>Fixed a bug (#2021) - <a class="reference internal" href="libraries/migration.html"><span class="doc">Migration Library</span></a> configuration file was mistakenly using Windows style line feeds.</li>
1921<li>Fixed a bug (#1273) - <code class="docutils literal"><span class="pre">E_NOTICE</span></code> being generated by <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a>’s <code class="docutils literal"><span class="pre">set_update_batch()</span></code> method.</li>
1922<li>Fixed a bug (#2337) - <a class="reference internal" href="libraries/email.html"><span class="doc">Email Library</span></a> method <code class="docutils literal"><span class="pre">print_debugger()</span></code> didn’t apply <code class="docutils literal"><span class="pre">htmlspecialchars()</span></code> to headers.</li>
1923</ul>
1924</div>
1925</div>
1926<div class="section" id="version-2-1-3">
1927<h2>Version 2.1.3<a class="headerlink" href="#version-2-1-3" title="Permalink to this headline"></a></h2>
1928<p>Release Date: October 8, 2012</p>
1929<ul class="simple">
1930<li>Core<ul>
1931<li><a class="reference internal" href="general/common_functions.html"><span class="doc">Common function</span></a> <code class="docutils literal"><span class="pre">is_loaded()</span></code> now returns a reference.</li>
1932</ul>
1933</li>
1934</ul>
1935<div class="section" id="bug-fixes-for-2-1-3">
1936<h3>Bug fixes for 2.1.3<a class="headerlink" href="#bug-fixes-for-2-1-3" title="Permalink to this headline"></a></h3>
1937<ul class="simple">
1938<li>Fixed a bug (#1543) - File-based <a class="reference internal" href="libraries/caching.html"><span class="doc">Caching</span></a> method <code class="docutils literal"><span class="pre">get_metadata()</span></code> used a non-existent array key to look for the TTL value.</li>
1939<li>Fixed a bug (#1314) - <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session Library</span></a> method <code class="docutils literal"><span class="pre">sess_destroy()</span></code> didn’t destroy the userdata array.</li>
1940<li>Fixed a bug (#804) - <a class="reference internal" href="general/profiling.html"><span class="doc">Profiler library</span></a> was trying to handle objects as strings in some cases, resulting in <em>E_WARNING</em> messages being issued by <code class="docutils literal"><span class="pre">htmlspecialchars()</span></code>.</li>
1941<li>Fixed a bug (#1699) - <a class="reference internal" href="libraries/migration.html"><span class="doc">Migration Library</span></a> ignored the <code class="docutils literal"><span class="pre">$config['migration_path']</span></code> setting.</li>
1942<li>Fixed a bug (#227) - <a class="reference internal" href="libraries/input.html"><span class="doc">Input Library</span></a> allowed unconditional spoofing of HTTP clients’ IP addresses through the <em>HTTP_CLIENT_IP</em> header.</li>
1943<li>Fixed a bug (#907) - <a class="reference internal" href="libraries/input.html"><span class="doc">Input Library</span></a> ignored <em>HTTP_X_CLUSTER_CLIENT_IP</em> and <em>HTTP_X_CLIENT_IP</em> headers when checking for proxies.</li>
1944<li>Fixed a bug (#940) - <code class="docutils literal"><span class="pre">csrf_verify()</span></code> used to set the CSRF cookie while processing a POST request with no actual POST data, which resulted in validating a request that should be considered invalid.</li>
1945<li>Fixed a bug (#499) - <a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> where a CSRF cookie was created even if <code class="docutils literal"><span class="pre">$config['csrf_protection']</span></code> is set to FALSE.</li>
1946<li>Fixed a bug (#1715) - <a class="reference internal" href="libraries/input.html"><span class="doc">Input Library</span></a> triggered <code class="docutils literal"><span class="pre">csrf_verify()</span></code> on CLI requests.</li>
1947<li>Fixed a bug (#751) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> didn’t properly handle cached field escaping overrides.</li>
1948<li>Fixed a bug (#2004) - <a class="reference internal" href="database/query_builder.html"><span class="doc">Query Builder</span></a> didn’t properly merge cached calls with non-cache ones.</li>
1949</ul>
1950</div>
1951</div>
1952<div class="section" id="version-2-1-2">
1953<h2>Version 2.1.2<a class="headerlink" href="#version-2-1-2" title="Permalink to this headline"></a></h2>
1954<p>Release Date: June 29, 2012</p>
1955<ul class="simple">
1956<li>General Changes<ul>
1957<li>Improved security in <code class="docutils literal"><span class="pre">xss_clean()</span></code>.</li>
1958</ul>
1959</li>
1960</ul>
1961</div>
1962<div class="section" id="version-2-1-1">
1963<h2>Version 2.1.1<a class="headerlink" href="#version-2-1-1" title="Permalink to this headline"></a></h2>
1964<p>Release Date: June 12, 2012</p>
1965<ul class="simple">
1966<li>General Changes<ul>
1967<li>Fixed support for docx, xlsx files in mimes.php.</li>
1968</ul>
1969</li>
1970<li>Libraries<ul>
1971<li>Further improved MIME type detection in the <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File Uploading Library</span></a>.</li>
1972<li>Added support for IPv6 to the <a class="reference internal" href="libraries/input.html"><span class="doc">Input Library</span></a>.</li>
1973<li>Added support for the IP format parameter to the <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation Library</span></a>.</li>
1974</ul>
1975</li>
1976<li>Helpers<ul>
1977<li><code class="docutils literal"><span class="pre">url_title()</span></code> performance and output improved. You can now use any string as the word delimiter, but ‘dash’ and ‘underscore’ are still supported.</li>
1978</ul>
1979</li>
1980</ul>
1981<div class="section" id="bug-fixes-for-2-1-1">
1982<h3>Bug fixes for 2.1.1<a class="headerlink" href="#bug-fixes-for-2-1-1" title="Permalink to this headline"></a></h3>
1983<ul class="simple">
1984<li>Fixed a bug (#697) - A wrong array key was used in the <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File Uploading Library</span></a> to check for mime-types.</li>
1985<li>Fixed a bug - <code class="docutils literal"><span class="pre">form_open()</span></code> compared $action against <code class="docutils literal"><span class="pre">site_url()</span></code> instead of <code class="docutils literal"><span class="pre">base_url()</span></code>.</li>
1986<li>Fixed a bug - <code class="docutils literal"><span class="pre">CI_Upload::_file_mime_type()</span></code> could’ve failed if <code class="docutils literal"><span class="pre">mime_content_type()</span></code> is used for the detection and returns FALSE.</li>
1987<li>Fixed a bug (#538) - Windows paths were ignored when using the <a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Manipulation Library</span></a> to create a new file.</li>
1988<li>Fixed a bug - When database caching was enabled, $this-&gt;db-&gt;query() checked the cache before binding variables which resulted in cached queries never being found.</li>
1989<li>Fixed a bug - CSRF cookie value was allowed to be any (non-empty) string before being written to the output, making code injection a risk.</li>
1990<li>Fixed a bug (#726) - PDO put a ‘dbname’ argument in its connection string regardless of the database platform in use, which made it impossible to use SQLite.</li>
1991<li>Fixed a bug - <code class="docutils literal"><span class="pre">CI_DB_pdo_driver::num_rows()</span></code> was not returning properly value with SELECT queries, cause it was relying on <code class="docutils literal"><span class="pre">PDOStatement::rowCount()</span></code>.</li>
1992<li>Fixed a bug (#1059) - <code class="docutils literal"><span class="pre">CI_Image_lib::clear()</span></code> was not correctly clearing all necessary object properties, namely width and height.</li>
1993</ul>
1994</div>
1995</div>
1996<div class="section" id="version-2-1-0">
1997<h2>Version 2.1.0<a class="headerlink" href="#version-2-1-0" title="Permalink to this headline"></a></h2>
1998<p>Release Date: November 14, 2011</p>
1999<ul class="simple">
2000<li>General Changes<ul>
2001<li>Callback validation rules can now accept parameters like any other
2002validation rule.</li>
2003<li>Added html_escape() to <a class="reference internal" href="general/common_functions.html"><span class="doc">Common
2004functions</span></a> to escape HTML output
2005for preventing XSS.</li>
2006</ul>
2007</li>
2008<li>Helpers<ul>
2009<li>Added increment_string() to <a class="reference internal" href="helpers/string_helper.html"><span class="doc">String
2010Helper</span></a> to turn “foo” into “foo-1”
2011or “foo-1” into “foo-2”.</li>
2012<li>Altered form helper - made action on form_open_multipart helper
2013function call optional. Fixes (#65)</li>
2014<li>url_title() will now trim extra dashes from beginning and end.</li>
2015<li>Improved speed of <a class="reference internal" href="helpers/string_helper.html"><span class="doc">String Helper</span></a>’s random_string() method</li>
2016</ul>
2017</li>
2018<li>Database<ul>
2019<li>Added a <a class="reference external" href="http://www.cubrid.org/">CUBRID</a> driver to the <a class="reference internal" href="database/index.html"><span class="doc">Database
2020Driver</span></a>. Thanks to the CUBRID team for
2021supplying this patch.</li>
2022<li>Added a PDO driver to the <a class="reference internal" href="database/index.html"><span class="doc">Database Driver</span></a>.</li>
2023<li>Typecast limit and offset in the <a class="reference internal" href="database/queries.html"><span class="doc">Database
2024Driver</span></a> to integers to avoid possible
2025injection.</li>
2026<li>Added additional option ‘none’ for the optional third argument for
2027$this-&gt;db-&gt;like() in the <a class="reference internal" href="database/query_builder.html"><span class="doc">Database
2028Driver</span></a>.</li>
2029<li>Added $this-&gt;db-&gt;insert_batch() support to the OCI8 (Oracle) driver.</li>
2030<li>Added failover if the main connections in the config should fail</li>
2031</ul>
2032</li>
2033<li>Libraries<ul>
2034<li>Changed <code class="docutils literal"><span class="pre">$this-&gt;cart-&gt;insert()</span></code> in the <a class="reference internal" href="libraries/cart.html"><span class="doc">Cart
2035Library</span></a> to return the Row ID if a single
2036item was inserted successfully.</li>
2037<li>Added support to set an optional parameter in your callback rules
2038of validation using the <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation
2039Library</span></a>.</li>
2040<li>Added a <a class="reference internal" href="libraries/migration.html"><span class="doc">Migration library</span></a> to assist with applying
2041incremental updates to your database schema.</li>
2042<li>Driver children can be located in any package path.</li>
2043<li>Added max_filename_increment config setting for Upload library.</li>
2044<li>Added <code class="docutils literal"><span class="pre">is_unique</span></code> to the <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation library</span></a>.</li>
2045<li>Added $config[‘use_page_numbers’] to the <a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination library</span></a>, which enables real page numbers in the URI.</li>
2046<li>Added TLS and SSL Encryption for SMTP.</li>
2047</ul>
2048</li>
2049<li>Core<ul>
2050<li>Changed private functions in CI_URI to protected so MY_URI can
2051override them.</li>
2052<li>Removed CI_CORE boolean constant from CodeIgniter.php (no longer Reactor and Core versions).</li>
2053</ul>
2054</li>
2055</ul>
2056<div class="section" id="bug-fixes-for-2-1-0">
2057<h3>Bug fixes for 2.1.0<a class="headerlink" href="#bug-fixes-for-2-1-0" title="Permalink to this headline"></a></h3>
2058<ul class="simple">
2059<li>Fixed #378 Robots identified as regular browsers by the User Agent
2060class.</li>
2061<li>If a config class was loaded first then a library with the same name
2062is loaded, the config would be ignored.</li>
2063<li>Fixed a bug (Reactor #19) where 1) the 404_override route was being
2064ignored in some cases, and 2) auto-loaded libraries were not
2065available to the 404_override controller when a controller existed
2066but the requested method did not.</li>
2067<li>Fixed a bug (Reactor #89) where MySQL export would fail if the table
2068had hyphens or other non alphanumeric/underscore characters.</li>
2069<li>Fixed a bug (#105) that stopped query errors from being logged unless database debugging was enabled</li>
2070<li>Fixed a bug (#160) - Removed unneeded array copy in the file cache
2071driver.</li>
2072<li>Fixed a bug (#150) - field_data() now correctly returns column
2073length.</li>
2074<li>Fixed a bug (#8) - load_class() now looks for core classes in
2075APPPATH first, allowing them to be replaced.</li>
2076<li>Fixed a bug (#24) - ODBC database driver called incorrect parent in __construct().</li>
2077<li>Fixed a bug (#85) - OCI8 (Oracle) database escape_str() function did not escape correct.</li>
2078<li>Fixed a bug (#344) - Using schema found in <a class="reference internal" href="libraries/sessions.html"><span class="doc">Saving Session Data to a Database</span></a>, system would throw error “user_data does not have a default value” when deleting then creating a session.</li>
2079<li>Fixed a bug (#112) - OCI8 (Oracle) driver didn’t pass the configured database character set when connecting.</li>
2080<li>Fixed a bug (#182) - OCI8 (Oracle) driver used to re-execute the statement whenever num_rows() is called.</li>
2081<li>Fixed a bug (#82) - WHERE clause field names in the DB update_string() method were not escaped, resulting in failed queries in some cases.</li>
2082<li>Fixed a bug (#89) - Fix a variable type mismatch in DB display_error() where an array is expected, but a string could be set instead.</li>
2083<li>Fixed a bug (#467) - Suppress warnings generated from get_magic_quotes_gpc() (deprecated in PHP 5.4)</li>
2084<li>Fixed a bug (#484) - First time _csrf_set_hash() is called, hash is never set to the cookie (in Security.php).</li>
2085<li>Fixed a bug (#60) - Added _file_mime_type() method to the <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File Uploading Library</span></a> in order to fix a possible MIME-type injection.</li>
2086<li>Fixed a bug (#537) - Support for all wav type in browser.</li>
2087<li>Fixed a bug (#576) - Using ini_get() function to detect if apc is enabled or not.</li>
2088<li>Fixed invalid date time format in <a class="reference internal" href="helpers/date_helper.html"><span class="doc">Date helper</span></a> and <a class="reference internal" href="libraries/xmlrpc.html"><span class="doc">XMLRPC library</span></a>.</li>
2089<li>Fixed a bug (#200) - MySQL queries would be malformed after calling db-&gt;count_all() then db-&gt;get().</li>
2090</ul>
2091</div>
2092</div>
2093<div class="section" id="version-2-0-3">
2094<h2>Version 2.0.3<a class="headerlink" href="#version-2-0-3" title="Permalink to this headline"></a></h2>
2095<p>Release Date: August 20, 2011</p>
2096<ul>
2097<li><p class="first">Security</p>
2098<ul>
2099<li><p class="first">An improvement was made to the MySQL and MySQLi drivers to prevent
2100exposing a potential vector for SQL injection on sites using
2101multi-byte character sets in the database client connection.
2102An incompatibility in PHP versions &lt; 5.2.3 and MySQL &lt; 5.0.7 with
2103<em>mysql_set_charset()</em> creates a situation where using multi-byte
2104character sets on these environments may potentially expose a SQL
2105injection attack vector. Latin-1, UTF-8, and other “low ASCII”
2106character sets are unaffected on all environments.</p>
2107<p>If you are running or considering running a multi-byte character
2108set for your database connection, please pay close attention to
2109the server environment you are deploying on to ensure you are not
2110vulnerable.</p>
2111</li>
2112</ul>
2113</li>
2114<li><p class="first">General Changes</p>
2115<ul class="simple">
2116<li>Fixed a bug where there was a misspelling within a code comment in
2117the index.php file.</li>
2118<li>Added Session Class userdata to the output profiler. Additionally,
2119added a show/hide toggle on HTTP Headers, Session Data and Config
2120Variables.</li>
2121<li>Removed internal usage of the EXT constant.</li>
2122<li>Visual updates to the welcome_message view file and default error
2123templates. Thanks to <a class="reference external" href="https://bitbucket.org/danijelb">danijelb</a>
2124for the pull request.</li>
2125<li>Added insert_batch() function to the PostgreSQL database driver.
2126Thanks to epallerols for the patch.</li>
2127<li>Added “application/x-csv” to mimes.php.</li>
2128<li>Fixed a bug where <a class="reference internal" href="libraries/email.html"><span class="doc">Email library</span></a>
2129attachments with a “.” in the name would using invalid MIME-types.</li>
2130</ul>
2131</li>
2132<li><p class="first">Helpers</p>
2133<ul class="simple">
2134<li>Added an optional third parameter to heading() which allows adding
2135html attributes to the rendered heading tag.</li>
2136<li>form_open() now only adds a hidden (Cross-site Reference Forgery)
2137protection field when the form’s action is internal and is set to
2138the post method. (Reactor #165)</li>
2139<li>Re-worked plural() and singular() functions in the <a class="reference internal" href="helpers/inflector_helper.html"><span class="doc">Inflector
2140helper</span></a> to support considerably
2141more words.</li>
2142</ul>
2143</li>
2144<li><p class="first">Libraries</p>
2145<ul class="simple">
2146<li>Altered Session to use a longer match against the user_agent
2147string. See upgrade notes if using database sessions.</li>
2148<li>Added $this-&gt;db-&gt;set_dbprefix() to the <a class="reference internal" href="database/queries.html"><span class="doc">Database
2149Driver</span></a>.</li>
2150<li>Changed $this-&gt;cart-&gt;insert() in the <a class="reference internal" href="libraries/cart.html"><span class="doc">Cart
2151Library</span></a> to return the Row ID if a single
2152item was inserted successfully.</li>
2153<li>Added $this-&gt;load-&gt;get_var() to the <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader
2154library</span></a> to retrieve global vars set with
2155$this-&gt;load-&gt;view() and $this-&gt;load-&gt;vars().</li>
2156<li>Changed $this-&gt;db-&gt;having() to insert quotes using escape() rather
2157than escape_str().</li>
2158</ul>
2159</li>
2160</ul>
2161<div class="section" id="bug-fixes-for-2-0-3">
2162<h3>Bug fixes for 2.0.3<a class="headerlink" href="#bug-fixes-for-2-0-3" title="Permalink to this headline"></a></h3>
2163<ul class="simple">
2164<li>Added ENVIRONMENT to reserved constants. (Reactor #196)</li>
2165<li>Changed server check to ensure SCRIPT_NAME is defined. (Reactor #57)</li>
2166<li>Removed APPPATH.’third_party’ from the packages autoloader to negate
2167needless file stats if no packages exist or if the developer does not
2168load any other packages by default.</li>
2169<li>Fixed a bug (Reactor #231) where Sessions Library database table
2170example SQL did not contain an index on last_activity. See <a class="reference internal" href="installation/upgrade_203.html"><span class="doc">Upgrade
2171Notes</span></a>.</li>
2172<li>Fixed a bug (Reactor #229) where the Sessions Library example SQL in
2173the documentation contained incorrect SQL.</li>
2174<li>Fixed a bug (Core #340) where when passing in the second parameter to
2175$this-&gt;db-&gt;select(), column names in subsequent queries would not be
2176properly escaped.</li>
2177<li>Fixed issue #199 - Attributes passed as string does not include a
2178space between it and the opening tag.</li>
2179<li>Fixed a bug where the method $this-&gt;cart-&gt;total_items() from <a class="reference internal" href="libraries/cart.html"><span class="doc">Cart
2180Library</span></a> now returns the sum of the quantity
2181of all items in the cart instead of your total count.</li>
2182<li>Fixed a bug where not setting ‘null’ when adding fields in db_forge
2183for mysql and mysqli drivers would default to NULL instead of NOT
2184NULL as the docs suggest.</li>
2185<li>Fixed a bug where using $this-&gt;db-&gt;select_max(),
2186$this-&gt;db-&gt;select_min(), etc could throw notices. Thanks to w43l for
2187the patch.</li>
2188<li>Replace checks for STDIN with php_sapi_name() == ‘cli’ which on the
2189whole is more reliable. This should get parameters in crontab
2190working.</li>
2191</ul>
2192</div>
2193</div>
2194<div class="section" id="version-2-0-2">
2195<h2>Version 2.0.2<a class="headerlink" href="#version-2-0-2" title="Permalink to this headline"></a></h2>
2196<p>Release Date: April 7, 2011
2197Hg Tag: v2.0.2</p>
2198<ul class="simple">
2199<li>General changes<ul>
2200<li>The <a class="reference internal" href="libraries/security.html"><span class="doc">Security library</span></a> was moved to
2201the core and is now loaded automatically. Please remove your
2202loading calls.</li>
2203<li>The CI_SHA class is now deprecated. All supported versions of PHP
2204provide a sha1() function.</li>
2205<li>constants.php will now be loaded from the environment folder if
2206available.</li>
2207<li>Added language key error logging</li>
2208<li>Made Environment Support optional. Comment out or delete the
2209constant to stop environment checks.</li>
2210<li>Added Environment Support for Hooks.</li>
2211<li>Added CI_ Prefix to the <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache driver</span></a>.</li>
2212<li>Added <a class="reference internal" href="general/cli.html"><span class="doc">CLI usage</span></a> documentation.</li>
2213</ul>
2214</li>
2215<li>Helpers<ul>
2216<li>Removed the previously deprecated dohash() from the <a class="reference internal" href="helpers/security_helper.html"><span class="doc">Security
2217helper</span></a>; use do_hash() instead.</li>
2218<li>Changed the ‘plural’ function so that it doesn’t ruin the
2219captalization of your string. It also take into consideration
2220acronyms which are all caps.</li>
2221</ul>
2222</li>
2223<li>Database<ul>
2224<li>$this-&gt;db-&gt;count_all_results() will now return an integer
2225instead of a string.</li>
2226</ul>
2227</li>
2228</ul>
2229<div class="section" id="bug-fixes-for-2-0-2">
2230<h3>Bug fixes for 2.0.2<a class="headerlink" href="#bug-fixes-for-2-0-2" title="Permalink to this headline"></a></h3>
2231<ul class="simple">
2232<li>Fixed a bug (Reactor #145) where the Output Library had
2233parse_exec_vars set to protected.</li>
2234<li>Fixed a bug (Reactor #80) where is_really_writable would create an
2235empty file when on Windows or with safe_mode enabled.</li>
2236<li>Fixed various bugs with User Guide.</li>
2237<li>Added is_cli_request() method to documentation for <a class="reference internal" href="libraries/input.html"><span class="doc">Input
2238class</span></a>.</li>
2239<li>Added form_validation_lang entries for decimal, less_than and
2240greater_than.</li>
2241<li>Fixed issue #153 Escape Str Bug in MSSQL driver.</li>
2242<li>Fixed issue #172 Google Chrome 11 posts incorrectly when action is empty.</li>
2243</ul>
2244</div>
2245</div>
2246<div class="section" id="version-2-0-1">
2247<h2>Version 2.0.1<a class="headerlink" href="#version-2-0-1" title="Permalink to this headline"></a></h2>
2248<p>Release Date: March 15, 2011
2249Hg Tag: v2.0.1</p>
2250<ul class="simple">
2251<li>General changes<ul>
2252<li>Added $config[‘cookie_secure’] to the config file to allow
2253requiring a secure (HTTPS) in order to set cookies.</li>
2254<li>Added the constant CI_CORE to help differentiate between Core:
2255TRUE and Reactor: FALSE.</li>
2256<li>Added an ENVIRONMENT constant in index.php, which affects PHP
2257error reporting settings, and optionally, which configuration
2258files are loaded (see below). Read more on the <a class="reference internal" href="general/environments.html"><span class="doc">Handling
2259Environments</span></a> page.</li>
2260<li>Added support for
2261<a class="reference internal" href="libraries/config.html#config-environments"><span class="std std-ref">environment-specific</span></a>
2262configuration files.</li>
2263</ul>
2264</li>
2265<li>Libraries<ul>
2266<li>Added decimal, less_than and greater_than rules to the <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form
2267validation Class</span></a>.</li>
2268<li><a class="reference internal" href="libraries/input.html"><span class="doc">Input Class</span></a> methods post() and get()
2269will now return a full array if the first argument is not
2270provided.</li>
2271<li>Secure cookies can now be made with the set_cookie() helper and
2272<a class="reference internal" href="libraries/input.html"><span class="doc">Input Class</span></a> method.</li>
2273<li>Added set_content_type() to <a class="reference internal" href="libraries/output.html"><span class="doc">Output
2274Class</span></a> to set the output Content-Type
2275HTTP header based on a MIME Type or a config/mimes.php array key.</li>
2276<li><a class="reference internal" href="libraries/output.html"><span class="doc">Output Class</span></a> will now support method
2277chaining.</li>
2278</ul>
2279</li>
2280<li>Helpers<ul>
2281<li>Changed the logic for form_open() in <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form
2282helper</span></a>. If no value is passed it will
2283submit to the current URL.</li>
2284</ul>
2285</li>
2286</ul>
2287<div class="section" id="bug-fixes-for-2-0-1">
2288<h3>Bug fixes for 2.0.1<a class="headerlink" href="#bug-fixes-for-2-0-1" title="Permalink to this headline"></a></h3>
2289<ul class="simple">
2290<li>CLI requests can now be run from any folder, not just when CD’ed next
2291to index.php.</li>
2292<li>Fixed issue #41: Added audio/mp3 mime type to mp3.</li>
2293<li>Fixed a bug (Core #329) where the file caching driver referenced the
2294incorrect cache directory.</li>
2295<li>Fixed a bug (Reactor #69) where the SHA1 library was named
2296incorrectly.</li>
2297</ul>
2298</div>
2299</div>
2300<div class="section" id="version-2-0-0">
2301<span id="changelog"></span><h2>Version 2.0.0<a class="headerlink" href="#version-2-0-0" title="Permalink to this headline"></a></h2>
2302<p>Release Date: January 28, 2011
2303Hg Tag: v2.0.0</p>
2304<ul class="simple">
2305<li>General changes<ul>
2306<li>PHP 4 support is removed. CodeIgniter now requires PHP 5.1.6.</li>
2307<li>Scaffolding, having been deprecated for a number of versions, has
2308been removed.</li>
2309<li>Plugins have been removed, in favor of Helpers. The CAPTCHA plugin
2310has been converted to a Helper and
2311<a class="reference internal" href="helpers/captcha_helper.html"><span class="doc">documented</span></a>. The JavaScript
2312calendar plugin was removed due to the ready availability of great
2313JavaScript calendars, particularly with jQuery.</li>
2314<li>Added new special Library type:
2315<a class="reference internal" href="general/drivers.html"><span class="doc">Drivers</span></a>.</li>
2316<li>Added full query-string support. See the config file for details.</li>
2317<li>Moved the application folder outside of the system folder.</li>
2318<li>Moved system/cache and system/logs directories to the application
2319directory.</li>
2320<li>Added routing overrides to the main index.php file, enabling the
2321normal routing to be overridden on a per “index” file basis.</li>
2322<li>Added the ability to set config values (or override config values)
2323directly from data set in the main index.php file. This allows a
2324single application to be used with multiple front controllers,
2325each having its own config values.</li>
2326<li>Added $config[‘directory_trigger’] to the config file so that a
2327controller sub-directory can be specified when running _GET
2328strings instead of URI segments.</li>
2329<li>Added ability to set “Package” paths - specific paths where the
2330Loader and Config classes should try to look first for a requested
2331file. This allows distribution of sub-applications with their own
2332libraries, models, config files, etc. in a single “package”
2333directory. See the <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader class</span></a>
2334documentation for more details.</li>
2335<li>In-development code is now hosted at BitBucket .</li>
2336<li>Removed the deprecated Validation Class.</li>
2337<li>Added CI_ Prefix to all core classes.</li>
2338<li>Package paths can now be set in application/config/autoload.php.</li>
2339<li><a class="reference internal" href="libraries/file_uploading.html"><span class="doc">Upload library</span></a> file_name can
2340now be set without an extension, the extension will be taken from
2341the uploaded file instead of the given name.</li>
2342<li>In <a class="reference internal" href="database/forge.html"><span class="doc">Database Forge</span></a> the name can be omitted
2343from $this-&gt;dbforge-&gt;modify_column()’s 2nd param if you aren’t
2344changing the name.</li>
2345<li>$config[‘base_url’] is now empty by default and will guess what
2346it should be.</li>
2347<li>Enabled full Command Line Interface compatibility with
2348config[‘uri_protocol’] = ‘CLI’;.</li>
2349</ul>
2350</li>
2351<li>Libraries<ul>
2352<li>Added a <a class="reference internal" href="libraries/caching.html"><span class="doc">Cache driver</span></a> with APC,
2353memcached, and file-based support.</li>
2354<li>Added $prefix, $suffix and $first_url properties to <a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination
2355library</span></a>.</li>
2356<li>Added the ability to suppress first, previous, next, last, and
2357page links by setting their values to FALSE in the <a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination
2358library</span></a>.</li>
2359<li>Added <a class="reference internal" href="libraries/security.html"><span class="doc">Security library</span></a>, which now
2360contains the xss_clean function, filename_security function and
2361other security related functions.</li>
2362<li>Added CSRF (Cross-site Reference Forgery) protection to the
2363<a class="reference internal" href="libraries/security.html"><span class="doc">Security library</span></a>.</li>
2364<li>Added $parse_exec_vars property to Output library.</li>
2365<li>Added ability to enable / disable individual sections of the
2366<a class="reference internal" href="general/profiling.html"><span class="doc">Profiler</span></a></li>
2367<li>Added a wildcard option $config[‘allowed_types’] = ‘*’ to the
2368<a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File Uploading Class</span></a>.</li>
2369<li>Added an ‘object’ config variable to the XML-RPC Server library so
2370that one can specify the object to look for requested methods,
2371instead of assuming it is in the $CI superobject.</li>
2372<li>Added “is_object” into the list of unit tests capable of being
2373run.</li>
2374<li>Table library will generate an empty cell with a blank string, or
2375NULL value.</li>
2376<li>Added ability to set tag attributes for individual cells in the
2377Table library</li>
2378<li>Added a parse_string() method to the <a class="reference internal" href="libraries/parser.html"><span class="doc">Parser
2379Class</span></a>.</li>
2380<li>Added HTTP headers and Config information to the
2381<a class="reference internal" href="general/profiling.html"><span class="doc">Profiler</span></a> output.</li>
2382<li>Added Chrome and Flock to the list of detectable browsers by
2383browser() in the <a class="reference internal" href="libraries/user_agent.html"><span class="doc">User Agent Class</span></a>.</li>
2384<li>The <a class="reference internal" href="libraries/unit_testing.html"><span class="doc">Unit Test Class</span></a> now has an
2385optional “notes” field available to it, and allows for discrete
2386display of test result items using
2387$this-&gt;unit-&gt;set_test_items().</li>
2388<li>Added a $xss_clean class variable to the XMLRPC library, enabling
2389control over the use of the Security library’s xss_clean()
2390method.</li>
2391<li>Added a download() method to the <a class="reference internal" href="libraries/ftp.html"><span class="doc">FTP
2392library</span></a></li>
2393<li>Changed do_xss_clean() to return FALSE if the uploaded file
2394fails XSS checks.</li>
2395<li>Added stripslashes() and trim()ing of double quotes from $_FILES
2396type value to standardize input in Upload library.</li>
2397<li>Added a second parameter (boolean) to
2398$this-&gt;zip-&gt;read_dir(‘/path/to/directory’, FALSE) to remove the
2399preceding trail of empty folders when creating a Zip archive. This
2400example would contain a zip with “directory” and all of its
2401contents.</li>
2402<li>Added ability in the Image Library to handle PNG transparency for
2403resize operations when using the GD lib.</li>
2404<li>Modified the Session class to prevent use if no encryption key is
2405set in the config file.</li>
2406<li>Added a new config item to the Session class
2407sess_expire_on_close to allow sessions to auto-expire when the
2408browser window is closed.</li>
2409<li>Improved performance of the Encryption library on servers where
2410Mcrypt is available.</li>
2411<li>Changed the default encryption mode in the Encryption library to
2412CBC.</li>
2413<li>Added an encode_from_legacy() method to provide a way to
2414transition encrypted data from CodeIgniter 1.x to CodeIgniter 2.x.
2415Please see the <a class="reference internal" href="installation/upgrade_200.html"><span class="doc">upgrade
2416instructions</span></a> for details.</li>
2417<li>Altered Form_Validation library to allow for method chaining on
2418set_rules(), set_message() and set_error_delimiters()
2419functions.</li>
2420<li>Altered Email Library to allow for method chaining.</li>
2421<li>Added request_headers(), get_request_header() and
2422is_ajax_request() to the input class.</li>
2423<li>Altered <a class="reference internal" href="libraries/user_agent.html"><span class="doc">User agent library</span></a> so that
2424is_browser(), is_mobile() and is_robot() can optionally check
2425for a specific browser or mobile device.</li>
2426<li>Altered <a class="reference internal" href="libraries/input.html"><span class="doc">Input library</span></a> so that post() and
2427get() will return all POST and GET items (respectively) if there
2428are no parameters passed in.</li>
2429</ul>
2430</li>
2431<li>Database<ul>
2432<li><a class="reference internal" href="database/configuration.html"><span class="doc">database configuration</span></a>.</li>
2433<li>Added autoinit value to <a class="reference internal" href="database/configuration.html"><span class="doc">database
2434configuration</span></a>.</li>
2435<li>Added stricton value to <a class="reference internal" href="database/configuration.html"><span class="doc">database
2436configuration</span></a>.</li>
2437<li>Added database_exists() to the <a class="reference internal" href="database/utilities.html"><span class="doc">Database Utilities
2438Class</span></a>.</li>
2439<li>Semantic change to db-&gt;version() function to allow a list of
2440exceptions for databases with functions to return version string
2441instead of specially formed SQL queries. Currently this list only
2442includes Oracle and SQLite.</li>
2443<li>Fixed a bug where driver specific table identifier protection
2444could lead to malformed queries in the field_data() functions.</li>
2445<li>Fixed a bug where an undefined class variable was referenced in
2446database drivers.</li>
2447<li>Modified the database errors to show the filename and line number
2448of the problematic query.</li>
2449<li>Removed the following deprecated functions: orwhere, orlike,
2450groupby, orhaving, orderby, getwhere.</li>
2451<li>Removed deprecated _drop_database() and _create_database()
2452functions from the db utility drivers.</li>
2453<li>Improved dbforge create_table() function for the Postgres driver.</li>
2454</ul>
2455</li>
2456<li>Helpers<ul>
2457<li>Added convert_accented_characters() function to <a class="reference internal" href="helpers/text_helper.html"><span class="doc">text
2458helper</span></a>.</li>
2459<li>Added accept-charset to the list of inserted attributes of
2460form_open() in the <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form Helper</span></a>.</li>
2461<li>Deprecated the dohash() function in favour of do_hash() for
2462naming consistency.</li>
2463<li>Non-backwards compatible change made to get_dir_file_info() in
2464the <a class="reference internal" href="helpers/file_helper.html"><span class="doc">File Helper</span></a>. No longer recurses
2465by default so as to encourage responsible use (this function can
2466cause server performance issues when used without caution).</li>
2467<li>Modified the second parameter of directory_map() in the
2468<a class="reference internal" href="helpers/directory_helper.html"><span class="doc">Directory Helper</span></a> to accept an
2469integer to specify recursion depth.</li>
2470<li>Modified delete_files() in the <a class="reference internal" href="helpers/file_helper.html"><span class="doc">File
2471Helper</span></a> to return FALSE on failure.</li>
2472<li>Added an optional second parameter to byte_format() in the
2473<a class="reference internal" href="helpers/number_helper.html"><span class="doc">Number Helper</span></a> to allow for decimal
2474precision.</li>
2475<li>Added alpha, and sha1 string types to random_string() in the
2476<a class="reference internal" href="helpers/string_helper.html"><span class="doc">String Helper</span></a>.</li>
2477<li>Modified prep_url() so as to not prepend http:// if the supplied
2478string already has a scheme.</li>
2479<li>Modified get_file_info in the file helper, changing filectime()
2480to filemtime() for dates.</li>
2481<li>Modified smiley_js() to add optional third parameter to return
2482only the javascript with no script tags.</li>
2483<li>The img() function of the <a class="reference internal" href="helpers/html_helper.html"><span class="doc">HTML
2484helper</span></a> will now generate an empty
2485string as an alt attribute if one is not provided.</li>
2486<li>If CSRF is enabled in the application config file, form_open()
2487will automatically insert it as a hidden field.</li>
2488<li>Added sanitize_filename() into the <a class="reference internal" href="helpers/security_helper.html"><span class="doc">Security
2489helper</span></a>.</li>
2490<li>Added ellipsize() to the <a class="reference internal" href="helpers/text_helper.html"><span class="doc">Text
2491Helper</span></a></li>
2492<li>Added elements() to the <a class="reference internal" href="helpers/array_helper.html"><span class="doc">Array
2493Helper</span></a></li>
2494</ul>
2495</li>
2496<li>Other Changes<ul>
2497<li>Added an optional second parameter to show_404() to disable
2498logging.</li>
2499<li>Updated loader to automatically apply the sub-class prefix as an
2500option when loading classes. Class names can be prefixed with the
2501standard “CI_” or the same prefix as the subclass prefix, or no
2502prefix at all.</li>
2503<li>Increased randomness with is_really_writable() to avoid file
2504collisions when hundreds or thousands of requests occur at once.</li>
2505<li>Switched some DIR_WRITE_MODE constant uses to FILE_WRITE_MODE
2506where files and not directories are being operated on.</li>
2507<li>get_mime_by_extension() is now case insensitive.</li>
2508<li>Added “default” to the list <a class="reference internal" href="general/reserved_names.html"><span class="doc">Reserved
2509Names</span></a>.</li>
2510<li>Added ‘application/x-msdownload’ for .exe files and
2511‘application/x-gzip-compressed’ for .tgz files to
2512config/mimes.php.</li>
2513<li>Updated the output library to no longer compress output or send
2514content-length headers if the server runs with
2515zlib.output_compression enabled.</li>
2516<li>Eliminated a call to is_really_writable() on each request unless
2517it is really needed (Output caching)</li>
2518<li>Documented append_output() in the <a class="reference internal" href="libraries/output.html"><span class="doc">Output
2519Class</span></a>.</li>
2520<li>Documented a second argument in the decode() function for the
2521<a class="reference internal" href="libraries/encrypt.html"><span class="doc">Encrypt Class</span></a>.</li>
2522<li>Documented db-&gt;close().</li>
2523<li>Updated the router to support a default route with any number of
2524segments.</li>
2525<li>Moved _remove_invisible_characters() function from the
2526<a class="reference internal" href="libraries/security.html"><span class="doc">Security Library</span></a> to <a class="reference internal" href="general/common_functions.html"><span class="doc">common
2527functions.</span></a></li>
2528<li>Added audio/mpeg3 as a valid mime type for MP3.</li>
2529</ul>
2530</li>
2531</ul>
2532<div class="section" id="bug-fixes-for-2-0-0">
2533<h3>Bug fixes for 2.0.0<a class="headerlink" href="#bug-fixes-for-2-0-0" title="Permalink to this headline"></a></h3>
2534<ul class="simple">
2535<li>Fixed a bug where you could not change the User-Agent when sending
2536email.</li>
2537<li>Fixed a bug where the Output class would send incorrect cached output
2538for controllers implementing their own _output() method.</li>
2539<li>Fixed a bug where a failed query would not have a saved query
2540execution time causing errors in the Profiler</li>
2541<li>Fixed a bug that was writing log entries when multiple identical
2542helpers and plugins were loaded.</li>
2543<li>Fixed assorted user guide typos or examples (#10693, #8951, #7825,
2544#8660, #7883, #6771, #10656).</li>
2545<li>Fixed a language key in the profiler: “profiler_no_memory_usage”
2546to “profiler_no_memory”.</li>
2547<li>Fixed an error in the Zip library that didn’t allow downloading on
2548PHP 4 servers.</li>
2549<li>Fixed a bug in the Form Validation library where fields passed as
2550rule parameters were not being translated (#9132)</li>
2551<li>Modified inflector helper to properly pluralize words that end in
2552‘ch’ or ‘sh’</li>
2553<li>Fixed a bug in xss_clean() that was not allowing hyphens in query
2554strings of submitted URLs.</li>
2555<li>Fixed bugs in get_dir_file_info() and get_file_info() in the
2556File Helper with recursion, and file paths on Windows.</li>
2557<li>Fixed a bug where Active Record override parameter would not let you
2558disable Active Record if it was enabled in your database config file.</li>
2559<li>Fixed a bug in reduce_double_slashes() in the String Helper to
2560properly remove duplicate leading slashes (#7585)</li>
2561<li>Fixed a bug in values_parsing() of the XML-RPC library which
2562prevented NULL variables typed as ‘string’ from being handled
2563properly.</li>
2564<li>Fixed a bug were form_open_multipart() didn’t accept string
2565attribute arguments (#10930).</li>
2566<li>Fixed a bug (#10470) where get_mime_by_extension() was case
2567sensitive.</li>
2568<li>Fixed a bug where some error messages for the SQLite and Oracle
2569drivers would not display.</li>
2570<li>Fixed a bug where files created with the Zip Library would result in
2571file creation dates of 1980.</li>
2572<li>Fixed a bug in the Session library that would result in PHP error
2573when attempting to store values with objects.</li>
2574<li>Fixed a bug where extending the Controller class would result in a
2575fatal PHP error.</li>
2576<li>Fixed a PHP Strict Standards Error in the index.php file.</li>
2577<li>Fixed a bug where getimagesize() was being needlessly checked on
2578non-image files in is_allowed_type().</li>
2579<li>Fixed a bug in the Encryption library where an empty key was not
2580triggering an error.</li>
2581<li>Fixed a bug in the Email library where CC and BCC recipients were not
2582reset when using the clear() method (#109).</li>
2583<li>Fixed a bug in the URL Helper where prep_url() could cause a PHP
2584error on PHP versions &lt; 5.1.2.</li>
2585<li>Added a log message in core/output if the cache directory config
2586value was not found.</li>
2587<li>Fixed a bug where multiple libraries could not be loaded by passing
2588an array to load-&gt;library()</li>
2589<li>Fixed a bug in the html helper where too much white space was
2590rendered between the src and alt tags in the img() function.</li>
2591<li>Fixed a bug in the profilers _compile_queries() function.</li>
2592<li>Fixed a bug in the date helper where the DATE_ISO8601 variable was
2593returning an incorrectly formatted date string.</li>
2594</ul>
2595</div>
2596</div>
2597<div class="section" id="version-1-7-2">
2598<h2>Version 1.7.2<a class="headerlink" href="#version-1-7-2" title="Permalink to this headline"></a></h2>
2599<p>Release Date: September 11, 2009
2600Hg Tag: v1.7.2</p>
2601<ul class="simple">
2602<li>Libraries<ul>
2603<li>Added a new <a class="reference internal" href="libraries/cart.html"><span class="doc">Cart Class</span></a>.</li>
2604<li>Added the ability to pass $config[‘file_name’] for the <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File
2605Uploading Class</span></a> and rename the
2606uploaded file.</li>
2607<li>Changed order of listed user-agents so Safari would more
2608accurately report itself. (#6844)</li>
2609</ul>
2610</li>
2611<li>Database<ul>
2612<li>Switched from using gettype() in escape() to is_* methods, since
2613future PHP versions might change its output.</li>
2614<li>Updated all database drivers to handle arrays in escape_str()</li>
2615<li>Added escape_like_str() method for escaping strings to be used
2616in LIKE conditions</li>
2617<li>Updated Active Record to utilize the new LIKE escaping mechanism.</li>
2618<li>Added reconnect() method to DB drivers to try to keep alive /
2619reestablish a connection after a long idle.</li>
2620<li>Modified MSSQL driver to use mssql_get_last_message() for error
2621messages.</li>
2622</ul>
2623</li>
2624<li>Helpers<ul>
2625<li>Added form_multiselect() to the <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form
2626helper</span></a>.</li>
2627<li>Modified form_hidden() in the <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form
2628helper</span></a> to accept multi-dimensional
2629arrays.</li>
2630<li>Modified form_prep() in the <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form
2631helper</span></a> to keep track of prepped
2632fields to avoid multiple prep/mutation from subsequent calls which
2633can occur when using Form Validation and form helper functions to
2634output form fields.</li>
2635<li>Modified directory_map() in the <a class="reference internal" href="helpers/directory_helper.html"><span class="doc">Directory
2636helper</span></a> to allow the inclusion of
2637hidden files, and to return FALSE on failure to read directory.</li>
2638<li>Modified the <a class="reference internal" href="helpers/smiley_helper.html"><span class="doc">Smiley helper</span></a> to work
2639with multiple fields and insert the smiley at the last known
2640cursor position.</li>
2641</ul>
2642</li>
2643<li>General<ul>
2644<li>Compatible with PHP 5.3.0.</li>
2645<li>Modified <a class="reference internal" href="general/errors.html"><span class="doc">show_error()</span></a> to allow sending
2646of HTTP server response codes.</li>
2647<li>Modified <a class="reference internal" href="general/errors.html"><span class="doc">show_404()</span></a> to send 404 status
2648code, removing non-CGI compatible header() statement from
2649error_404.php template.</li>
2650<li>Added set_status_header() to the <a class="reference internal" href="general/common_functions.html"><span class="doc">Common
2651functions</span></a> to allow use when the
2652Output class is unavailable.</li>
2653<li>Added is_php() to <a class="reference internal" href="general/common_functions.html"><span class="doc">Common
2654functions</span></a> to facilitate PHP
2655version comparisons.</li>
2656<li>Added 2 CodeIgniter “cheatsheets” (thanks to DesignFellow.com for
2657this contribution).</li>
2658</ul>
2659</li>
2660</ul>
2661<div class="section" id="bug-fixes-for-1-7-2">
2662<h3>Bug fixes for 1.7.2<a class="headerlink" href="#bug-fixes-for-1-7-2" title="Permalink to this headline"></a></h3>
2663<ul class="simple">
2664<li>Fixed assorted user guide typos or examples (#6743, #7214, #7516,
2665#7287, #7852, #8224, #8324, #8349).</li>
2666<li>Fixed a bug in the Form Validation library where multiple callbacks
2667weren’t working (#6110)</li>
2668<li>doctype helper default value was missing a “1”.</li>
2669<li>Fixed a bug in the language class when outputting an error for an
2670unfound file.</li>
2671<li>Fixed a bug in the Calendar library where the shortname was output
2672for “May”.</li>
2673<li>Fixed a bug with ORIG_PATH_INFO that was allowing URIs of just a
2674slash through.</li>
2675<li>Fixed a fatal error in the Oracle and ODBC drivers (#6752)</li>
2676<li>Fixed a bug where xml_from_result() was checking for a nonexistent
2677method.</li>
2678<li>Fixed a bug where Database Forge’s add_column and modify_column
2679were not looping through when sent multiple fields.</li>
2680<li>Fixed a bug where the File Helper was using ‘/’ instead of the
2681DIRECTORY_SEPARATOR constant.</li>
2682<li>Fixed a bug to prevent PHP errors when attempting to use sendmail on
2683servers that have manually disabled the PHP popen() function.</li>
2684<li>Fixed a bug that would cause PHP errors in XML-RPC data if the PHP
2685data type did not match the specified XML-RPC type.</li>
2686<li>Fixed a bug in the XML-RPC class with parsing dateTime.iso8601 data
2687types.</li>
2688<li>Fixed a case sensitive string replacement in xss_clean()</li>
2689<li>Fixed a bug in form_textarea() where form data was not prepped
2690correctly.</li>
2691<li>Fixed a bug in form_prep() causing it to not preserve entities in
2692the user’s original input when called back into a form element</li>
2693<li>Fixed a bug in _protect_identifiers() where the swap prefix
2694($swap_pre) was not being observed.</li>
2695<li>Fixed a bug where the 400 status header sent with the ‘disallowed URI
2696characters’ was not compatible with CGI environments.</li>
2697<li>Fixed a bug in the typography class where heading tags could have
2698paragraph tags inserted when using auto_typography().</li>
2699</ul>
2700</div>
2701</div>
2702<div class="section" id="version-1-7-1">
2703<h2>Version 1.7.1<a class="headerlink" href="#version-1-7-1" title="Permalink to this headline"></a></h2>
2704<p>Release Date: February 10, 2009
2705Hg Tag: 1.7.1</p>
2706<ul class="simple">
2707<li>Libraries<ul>
2708<li>Fixed an arbitrary script execution security flaw (#6068) in the
2709Form Validation library (thanks to hkk)</li>
2710<li>Changed default current page indicator in the Pagination library
2711to use &lt;strong&gt; instead of &lt;b&gt;</li>
2712<li>A “HTTP/1.1 400 Bad Request” header is now sent when disallowed
2713characters are encountered.</li>
2714<li>Added &lt;big&gt;, &lt;small&gt;, &lt;q&gt;, and &lt;tt&gt; to the Typography parser’s
2715inline elements.</li>
2716<li>Added more accurate error reporting for the Email library when
2717using sendmail.</li>
2718<li>Removed a strict type check from the rotate() function of the
2719<a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Manipulation Class</span></a>.</li>
2720<li>Added enhanced error checking in file saving in the Image library
2721when using the GD lib.</li>
2722<li>Added an additional newline between multipart email headers and
2723the MIME message text for better compatibility with a variety of
2724MUAs.</li>
2725<li>Made modest improvements to efficiency and accuracy of
2726explode_name() in the Image lib.</li>
2727</ul>
2728</li>
2729<li>Database<ul>
2730<li>Added where_in to the list of expected arguments received by
2731delete().</li>
2732</ul>
2733</li>
2734<li>Helpers<ul>
2735<li>Added the ability to have optgroups in form_dropdown() within the
2736<a class="reference internal" href="helpers/form_helper.html"><span class="doc">form helper</span></a>.</li>
2737<li>Added a doctype() function to the <a class="reference internal" href="helpers/html_helper.html"><span class="doc">HTML
2738helper</span></a>.</li>
2739<li>Added ability to force lowercase for url_title() in the <a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL
2740helper</span></a>.</li>
2741<li>Changed the default “type” of form_button() to “button” from
2742“submit” in the <a class="reference internal" href="helpers/form_helper.html"><span class="doc">form helper</span></a>.</li>
2743<li>Changed redirect() in the URL helper to allow redirections to URLs
2744outside of the CI site.</li>
2745<li>Updated get_cookie() to try to fetch the cookie using the global
2746cookie prefix if the requested cookie name doesn’t exist.</li>
2747</ul>
2748</li>
2749<li>Other Changes<ul>
2750<li>Improved security in xss_clean() to help prevent attacks
2751targeting Internet Explorer.</li>
2752<li>Added ‘application/msexcel’ to config/mimes.php for .xls files.</li>
2753<li>Added ‘proxy_ips’ config item to whitelist reverse proxy servers
2754from which to trust the HTTP_X_FORWARDED_FOR header to to
2755determine the visitor’s IP address.</li>
2756<li>Improved accuracy of Upload::is_allowed_filetype() for images
2757(#6715)</li>
2758</ul>
2759</li>
2760</ul>
2761<div class="section" id="bug-fixes-for-1-7-1">
2762<h3>Bug fixes for 1.7.1<a class="headerlink" href="#bug-fixes-for-1-7-1" title="Permalink to this headline"></a></h3>
2763<ul class="simple">
2764<li>Database<ul>
2765<li>Fixed a bug when doing ‘random’ on order_by() (#5706).</li>
2766<li>Fixed a bug where adding a primary key through Forge could fail
2767(#5731).</li>
2768<li>Fixed a bug when using DB cache on multiple databases (#5737).</li>
2769<li>Fixed a bug where TRUNCATE was not considered a “write” query
2770(#6619).</li>
2771<li>Fixed a bug where csv_from_result() was checking for a
2772nonexistent method.</li>
2773<li>Fixed a bug _protect_identifiers() where it was improperly
2774removing all pipe symbols from items</li>
2775</ul>
2776</li>
2777<li>Fixed assorted user guide typos or examples (#5998, #6093, #6259,
2778#6339, #6432, #6521).</li>
2779<li>Fixed a bug in the MySQLi driver when no port is specified</li>
2780<li>Fixed a bug (#5702), in which the field label was not being fetched
2781properly, when “matching” one field to another.</li>
2782<li>Fixed a bug in which identifers were not being escaped properly when
2783reserved characters were used.</li>
2784<li>Fixed a bug with the regular expression used to protect submitted
2785paragraph tags in auto typography.</li>
2786<li>Fixed a bug where double dashes within tag attributes were being
2787converted to em dash entities.</li>
2788<li>Fixed a bug where double spaces within tag attributes were being
2789converted to non-breaking space entities.</li>
2790<li>Fixed some accuracy issues with curly quotes in
2791Typography::format_characters()</li>
2792<li>Changed a few docblock comments to reflect actual return values.</li>
2793<li>Fixed a bug with high ascii characters in subject and from email
2794headers.</li>
2795<li>Fixed a bug in xss_clean() where whitespace following a validated
2796character entity would not be preserved.</li>
2797<li>Fixed a bug where HTML comments and &lt;pre&gt; tags were being parsed in
2798Typography::auto_typography().</li>
2799<li>Fixed a bug with non-breaking space cleanup in
2800Typography::auto_typography().</li>
2801<li>Fixed a bug in database escaping where a compound statement (ie:
2802SUM()) wasn’t handled correctly with database prefixes.</li>
2803<li>Fixed a bug when an opening quote is preceded by a paragraph tag and
2804immediately followed by another tag.</li>
2805<li>Fixed a bug in the Text Helper affecting some locales where
2806word_censor() would not work on words beginning or ending with an
2807accented character.</li>
2808<li>Fixed a bug in the Text Helper character limiter where the provided
2809limit intersects the last word of the string.</li>
2810<li>Fixed a bug (#6342) with plural() in the Inflection helper with words
2811ending in “y”.</li>
2812<li>Fixed bug (#6517) where Routed URI segments returned by
2813URI::rsegment() method were incorrect for the default controller.</li>
2814<li>Fixed a bug (#6706) in the Security Helper where xss_clean() was
2815using a deprecated second argument.</li>
2816<li>Fixed a bug in the URL helper url_title() function where trailing
2817periods were allowed at the end of a URL.</li>
2818<li>Fixed a bug (#6669) in the Email class when CRLF’s are used for the
2819newline character with headers when used with the “mail” protocol.</li>
2820<li>Fixed a bug (#6500) where URI::A_filter_uri() was exit()ing an
2821error instead of using show_error().</li>
2822<li>Fixed a bug (#6592) in the File Helper where get_dir_file_info()
2823where recursion was not occurring properly.</li>
2824<li>Tweaked Typography::auto_typography() for some edge-cases.</li>
2825</ul>
2826</div>
2827</div>
2828<div class="section" id="version-1-7">
2829<h2>Version 1.7<a class="headerlink" href="#version-1-7" title="Permalink to this headline"></a></h2>
2830<p>Release Date: October 23, 2008
2831Hg Tag: 1.7.0</p>
2832<ul class="simple">
2833<li>Libraries<ul>
2834<li>Added a new <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation
2835Class</span></a>. It simplifies setting
2836rules and field names, supports arrays as field names, allows
2837groups of validation rules to be saved in a config file, and adds
2838some helper functions for use in view files. <strong>Please note that
2839the old Validation class is now deprecated</strong>. We will leave it in
2840the library folder for some time so that existing applications
2841that use it will not break, but you are encouraged to migrate to
2842the new version.</li>
2843<li>Updated the <a class="reference internal" href="libraries/sessions.html"><span class="doc">Sessions class</span></a> so that
2844any custom data being saved gets stored to a database rather than
2845the session cookie (assuming you are using a database to store
2846session data), permitting much more data to be saved.</li>
2847<li>Added the ability to store libraries in subdirectories within
2848either the main “libraries” or the local application “libraries”
2849folder. Please see the <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader class</span></a> for
2850more info.</li>
2851<li>Added the ability to assign library objects to your own variable
2852names when you use $this-&gt;load-&gt;library(). Please see the <a class="reference internal" href="libraries/loader.html"><span class="doc">Loader
2853class</span></a> for more info.</li>
2854<li>Added controller class/method info to <a class="reference internal" href="general/profiling.html"><span class="doc">Profiler
2855class</span></a> and support for multiple database
2856connections.</li>
2857<li>Improved the “auto typography” feature and moved it out of the
2858helper into its own <a class="reference internal" href="libraries/typography.html"><span class="doc">Typography
2859Class</span></a>.</li>
2860<li>Improved performance and accuracy of xss_clean(), including
2861reduction of false positives on image/file tests.</li>
2862<li>Improved <a class="reference internal" href="libraries/parser.html"><span class="doc">Parser class</span></a> to allow
2863multiple calls to the parse() function. The output of each is
2864appended in the output.</li>
2865<li>Added max_filename option to set a file name length limit in the
2866<a class="reference internal" href="libraries/file_uploading.html"><span class="doc">File Upload Class</span></a>.</li>
2867<li>Added set_status_header() function to <a class="reference internal" href="libraries/output.html"><span class="doc">Output
2868class</span></a>.</li>
2869<li>Modified <a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination</span></a> class to only
2870output the “First” link when the link for page one would not be
2871shown.</li>
2872<li>Added support for mb_strlen in the <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form
2873Validation</span></a> class so that
2874multi-byte languages will calculate string lengths properly.</li>
2875</ul>
2876</li>
2877<li>Database<ul>
2878<li>Improved Active Record class to allow full path column and table
2879names: hostname.database.table.column. Also improved the alias
2880handling.</li>
2881<li>Improved how table and column names are escaped and prefixed. It
2882now honors full path names when adding prefixes and escaping.</li>
2883<li>Added Active Record caching feature to “update” and “delete”
2884functions.</li>
2885<li>Added removal of non-printing control characters in escape_str()
2886of DB drivers that do not have native PHP escaping mechanisms
2887(mssql, oci8, odbc), to avoid potential SQL errors, and possible
2888sources of SQL injection.</li>
2889<li>Added port support to MySQL, MySQLi, and MS SQL database drivers.</li>
2890<li>Added driver name variable in each DB driver, based on bug report
2891#4436.</li>
2892</ul>
2893</li>
2894<li>Helpers<ul>
2895<li>Added several new “setting” functions to the <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form
2896helper</span></a> that allow POST data to be
2897retrieved and set into forms. These are intended to be used on
2898their own, or with the new <a class="reference internal" href="libraries/form_validation.html"><span class="doc">Form Validation
2899Class</span></a>.</li>
2900<li>Added current_url() and uri_segments() to <a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL
2901helper</span></a>.</li>
2902<li>Altered auto_link() in the <a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL
2903helper</span></a> so that email addresses with
2904“+” included will be linked.</li>
2905<li>Added meta() function to <a class="reference internal" href="helpers/html_helper.html"><span class="doc">HTML
2906helper</span></a>.</li>
2907<li>Improved accuracy of calculations in <a class="reference internal" href="helpers/number_helper.html"><span class="doc">Number
2908helper</span></a>.</li>
2909<li>Removed added newlines (“\n”) from most form and html helper
2910functions.</li>
2911<li>Tightened up validation in the <a class="reference internal" href="helpers/date_helper.html"><span class="doc">Date
2912helper</span></a> function human_to_unix(),
2913and eliminated the POSIX regex.</li>
2914<li>Updated <a class="reference internal" href="helpers/date_helper.html"><span class="doc">Date helper</span></a> to match the
2915world’s current time zones and offsets.</li>
2916<li>Modified url_title() in the <a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL
2917helper</span></a> to remove characters and digits
2918that are part of character entities, to allow dashes, underscores,
2919and periods regardless of the $separator, and to allow uppercase
2920characters.</li>
2921<li>Added support for arbitrary attributes in anchor_popup() of the
2922<a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL helper</span></a>.</li>
2923</ul>
2924</li>
2925<li>Other Changes<ul>
2926<li>Added <a class="reference internal" href="general/styleguide.html"><span class="doc">PHP Style Guide</span></a> to docs.</li>
2927<li>Added sanitization in xss_clean() for a deprecated HTML tag that
2928could be abused in user input in Internet Explorer.</li>
2929<li>Added a few openxml document mime types, and an additional mobile
2930agent to mimes.php and user_agents.php respectively.</li>
2931<li>Added a file lock check during caching, before trying to write to
2932the file.</li>
2933<li>Modified Cookie key cleaning to unset a few troublesome key names
2934that can be present in certain environments, preventing CI from
2935halting execution.</li>
2936<li>Changed the output of the profiler to use style attribute rather
2937than clear, and added the id “codeigniter_profiler” to the
2938container div.</li>
2939</ul>
2940</li>
2941</ul>
2942<div class="section" id="bug-fixes-for-1-7-0">
2943<h3>Bug fixes for 1.7.0<a class="headerlink" href="#bug-fixes-for-1-7-0" title="Permalink to this headline"></a></h3>
2944<ul class="simple">
2945<li>Fixed bug in xss_clean() that could remove some desirable tag
2946attributes.</li>
2947<li>Fixed assorted user guide typos or examples (#4807, #4812, #4840,
2948#4862, #4864, #4899, #4930, #5006, #5071, #5158, #5229, #5254,
2949#5351).</li>
2950<li>Fixed an edit from 1.6.3 that made the $robots array in
2951user_agents.php go poof.</li>
2952<li>Fixed a bug in the <a class="reference internal" href="libraries/email.html"><span class="doc">Email library</span></a> with
2953quoted-printable encoding improperly encoding space and tab
2954characters.</li>
2955<li>Modified XSS sanitization to no longer add semicolons after &amp;[single
2956letter], such as in M&amp;M’s, B&amp;B, etc.</li>
2957<li>Modified XSS sanitization to no longer strip XHTML image tags of
2958closing slashes.</li>
2959<li>Fixed a bug in the Session class when database sessions are used
2960where upon session update all userdata would be errantly written to
2961the session cookie.</li>
2962<li>Fixed a bug (#4536) in backups with the MySQL driver where some
2963legacy code was causing certain characters to be double escaped.</li>
2964<li>Fixed a routing bug (#4661) that occurred when the default route
2965pointed to a subfolder.</li>
2966<li>Fixed the spelling of “Dhaka” in the timezone_menu() function of the
2967<a class="reference internal" href="helpers/date_helper.html"><span class="doc">Date helper.</span></a></li>
2968<li>Fixed the spelling of “raspberry” in config/smileys.php.</li>
2969<li>Fixed incorrect parenthesis in form_open() function (#5135).</li>
2970<li>Fixed a bug that was ignoring case when comparing controller methods
2971(#4560).</li>
2972<li>Fixed a bug (#4615) that was not setting SMTP authorization settings
2973when using the initialize function.</li>
2974<li>Fixed a bug in highlight_code() in the <a class="reference internal" href="helpers/text_helper.html"><span class="doc">Text
2975helper</span></a> that would leave a stray &lt;/span&gt;
2976in certain cases.</li>
2977<li>Fixed Oracle bug (#3306) that was preventing multiple queries in one
2978action.</li>
2979<li>Fixed ODBC bug that was ignoring connection params due to its use of
2980a constructor.</li>
2981<li>Fixed a DB driver bug with num_rows() that would cause an error with
2982the Oracle driver.</li>
2983<li>Fixed MS SQL bug (#4915). Added brackets around database name in MS
2984SQL driver when selecting the database, in the event that reserved
2985characters are used in the name.</li>
2986<li>Fixed a DB caching bug (4718) in which the path was incorrect when no
2987URI segments were present.</li>
2988<li>Fixed Image_lib class bug #4562. A path was not defined for NetPBM.</li>
2989<li>Fixed Image_lib class bug #4532. When cropping an image with
2990identical height/width settings on output, a copy is made.</li>
2991<li>Fixed DB_driver bug (4900), in which a database error was not being
2992logged correctly.</li>
2993<li>Fixed DB backup bug in which field names were not being escaped.</li>
2994<li>Fixed a DB Active Record caching bug in which multiple calls to
2995cached data were not being honored.</li>
2996<li>Fixed a bug in the Session class that was disallowing slashes in the
2997serialized array.</li>
2998<li>Fixed a Form Validation bug in which the “isset” error message was
2999being trigged by the “required” rule.</li>
3000<li>Fixed a spelling error in a Loader error message.</li>
3001<li>Fixed a bug (5050) with IP validation with empty segments.</li>
3002<li>Fixed a bug in which the parser was being greedy if multiple
3003identical sets of tags were encountered.</li>
3004</ul>
3005</div>
3006</div>
3007<div class="section" id="version-1-6-3">
3008<h2>Version 1.6.3<a class="headerlink" href="#version-1-6-3" title="Permalink to this headline"></a></h2>
3009<p>Release Date: June 26, 2008
3010Hg Tag: v1.6.3</p>
3011<p>Version 1.6.3 is a security and maintenance release and is recommended
3012for all users.</p>
3013<ul class="simple">
3014<li>Database<ul>
3015<li>Modified MySQL/MySQLi Forge class to give explicit names to keys</li>
3016<li>Added ability to set multiple column non-primary keys to the
3017<a class="reference internal" href="database/forge.html"><span class="doc">Forge class</span></a></li>
3018<li>Added ability to set additional database config values in <a class="reference internal" href="database/connecting.html"><span class="doc">DSN
3019connections</span></a> via the query string.</li>
3020</ul>
3021</li>
3022<li>Libraries<ul>
3023<li>Set the mime type check in the <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">Upload
3024class</span></a> to reference the global
3025mimes variable.</li>
3026<li>Added support for query strings to the <a class="reference internal" href="libraries/pagination.html"><span class="doc">Pagination
3027class</span></a>, automatically detected or
3028explicitly declared.</li>
3029<li>Added get_post() to the <a class="reference internal" href="libraries/input.html"><span class="doc">Input class</span></a>.</li>
3030<li>Documented get() in the <a class="reference internal" href="libraries/input.html"><span class="doc">Input class</span></a>.</li>
3031<li>Added the ability to automatically output language items as form
3032labels in the <a class="reference internal" href="libraries/language.html"><span class="doc">Language class</span></a>.</li>
3033</ul>
3034</li>
3035<li>Helpers<ul>
3036<li>Added a <a class="reference internal" href="helpers/language_helper.html"><span class="doc">Language helper</span></a>.</li>
3037<li>Added a <a class="reference internal" href="helpers/number_helper.html"><span class="doc">Number helper</span></a>.</li>
3038<li><a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form helper</span></a> refactored to allow
3039form_open() and form_fieldset() to accept arrays or strings as
3040arguments.</li>
3041</ul>
3042</li>
3043<li>Other changes<ul>
3044<li>Improved security in xss_clean().</li>
3045<li>Removed an unused Router reference in _display_cache().</li>
3046<li>Added ability to <a class="reference internal" href="libraries/input.html"><span class="doc">use xss_clean() to test
3047images</span></a> for XSS, useful for upload
3048security.</li>
3049<li>Considerably expanded list of mobile user-agents in
3050config/user_agents.php.</li>
3051<li>Charset information in the userguide has been moved above title
3052for internationalization purposes (#4614).</li>
3053<li>Added “Using Associative Arrays In a Request Parameter” example to
3054the <a class="reference internal" href="libraries/xmlrpc.html"><span class="doc">XMLRPC userguide page</span></a>.</li>
3055<li>Removed maxlength and size as automatically added attributes of
3056form_input() in the <a class="reference internal" href="helpers/form_helper.html"><span class="doc">form helper</span></a>.</li>
3057<li>Documented the language file use of byte_format() in the <a class="reference internal" href="helpers/number_helper.html"><span class="doc">number
3058helper</span></a>.</li>
3059</ul>
3060</li>
3061</ul>
3062<div class="section" id="bug-fixes-for-1-6-3">
3063<h3>Bug fixes for 1.6.3<a class="headerlink" href="#bug-fixes-for-1-6-3" title="Permalink to this headline"></a></h3>
3064<ul class="simple">
3065<li>Added a language key for valid_emails in validation_lang.php.</li>
3066<li>Amended fixes for bug (#3419) with parsing DSN database connections.</li>
3067<li>Moved the _has_operator() function (#4535) into DB_driver from
3068DB_active_rec.</li>
3069<li>Fixed a syntax error in upload_lang.php.</li>
3070<li>Fixed a bug (#4542) with a regular expression in the Image library.</li>
3071<li>Fixed a bug (#4561) where orhaving() wasn’t properly passing values.</li>
3072<li>Removed some unused variables from the code (#4563).</li>
3073<li>Fixed a bug where having() was not adding an = into the statement
3074(#4568).</li>
3075<li>Fixed assorted user guide typos or examples (#4574, #4706).</li>
3076<li>Added quoted-printable headers to Email class when the multi-part
3077override is used.</li>
3078<li>Fixed a double opening &lt;p&gt; tag in the index pages of each system
3079directory.</li>
3080</ul>
3081</div>
3082</div>
3083<div class="section" id="version-1-6-2">
3084<h2>Version 1.6.2<a class="headerlink" href="#version-1-6-2" title="Permalink to this headline"></a></h2>
3085<p>Release Date: May 13, 2008
3086Hg Tag: 1.6.2</p>
3087<ul class="simple">
3088<li>Active Record<ul>
3089<li>Added the ability to prevent escaping in having() clauses.</li>
3090<li>Added rename_table() into <a class="reference internal" href="database/forge.html"><span class="doc">DBForge</span></a>.</li>
3091<li>Fixed a bug that wasn’t allowing escaping to be turned off if the
3092value of a query was NULL.</li>
3093<li>DB Forge is now assigned to any models that exist after loading
3094(#3457).</li>
3095</ul>
3096</li>
3097<li>Database<ul>
3098<li>Added <a class="reference internal" href="database/transactions.html"><span class="doc">Strict Mode</span></a> to database
3099transactions.</li>
3100<li>Escape behaviour in where() clauses has changed; values in those
3101with the “FALSE” argument are no longer escaped (ie: quoted).</li>
3102</ul>
3103</li>
3104<li>Config<ul>
3105<li>Added ‘application/vnd.ms-powerpoint’ to list of mime types.</li>
3106<li>Added ‘audio/mpg’ to list of mime types.</li>
3107<li>Added new user-modifiable file constants.php containing file mode
3108and fopen constants.</li>
3109<li>Added the ability to set CRLF settings via config in the
3110<a class="reference internal" href="libraries/email.html"><span class="doc">Email</span></a> class.</li>
3111</ul>
3112</li>
3113<li>Libraries<ul>
3114<li>Added increased security for filename handling in the Upload
3115library.</li>
3116<li>Added increased security for sessions for client-side data
3117tampering.</li>
3118<li>The MySQLi forge class is now in sync with MySQL forge.</li>
3119<li>Added the ability to set CRLF settings via config in the
3120<a class="reference internal" href="libraries/email.html"><span class="doc">Email</span></a> class.</li>
3121<li><a class="reference internal" href="libraries/unit_testing.html"><span class="doc">Unit Testing</span></a> results are now
3122colour coded, and a change was made to the default template of
3123results.</li>
3124<li>Added a valid_emails rule to the Validation class.</li>
3125<li>The <a class="reference internal" href="libraries/zip.html"><span class="doc">Zip class</span></a> now exits within download().</li>
3126<li>The <a class="reference internal" href="libraries/zip.html"><span class="doc">Zip class</span></a> has undergone a substantial
3127re-write for speed and clarity (thanks stanleyxu for the hard work
3128and code contribution in bug report #3425!)</li>
3129</ul>
3130</li>
3131<li>Helpers<ul>
3132<li>Added a Compatibility
3133Helper for using some common
3134PHP 5 functions safely in applications that might run on PHP 4
3135servers (thanks Seppo for the hard work and code contribution!)</li>
3136<li>Added form_button() in the <a class="reference internal" href="helpers/form_helper.html"><span class="doc">Form
3137helper</span></a>.</li>
3138<li>Changed the radio() and checkbox() functions to default to not
3139checked by default.</li>
3140<li>Added the ability to include an optional HTTP Response Code in the
3141redirect() function of the <a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL
3142Helper</span></a>.</li>
3143<li>Modified img() in the <a class="reference internal" href="helpers/html_helper.html"><span class="doc">HTML Helper</span></a> to
3144remove an unneeded space (#4208).</li>
3145<li>Modified anchor() in the <a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL helper</span></a>
3146to no longer add a default title= attribute (#4209).</li>
3147<li>The <a class="reference internal" href="helpers/download_helper.html"><span class="doc">Download helper</span></a> now exits
3148within force_download().</li>
3149<li>Added get_dir_file_info(), get_file_info(), and
3150get_mime_by_extension() to the <a class="reference internal" href="helpers/file_helper.html"><span class="doc">File
3151Helper</span></a>.</li>
3152<li>Added symbolic_permissions() and octal_permissions() to the
3153<a class="reference internal" href="helpers/file_helper.html"><span class="doc">File helper</span></a>.</li>
3154</ul>
3155</li>
3156<li>Plugins<ul>
3157<li>Modified captcha generation to first look for the function
3158imagecreatetruecolor, and fallback to imagecreate if it isn’t
3159available (#4226).</li>
3160</ul>
3161</li>
3162<li>Other Changes<ul>
3163<li>Added ability for <a class="reference internal" href="libraries/input.html"><span class="doc">xss_clean()</span></a> to accept
3164arrays.</li>
3165<li>Removed closing PHP tags from all PHP files to avoid accidental
3166output and potential ‘cannot modify headers’ errors.</li>
3167<li>Removed “scripts” from the auto-load search path. Scripts were
3168deprecated in Version 1.4.1 (September 21, 2006). If you still
3169need to use them for legacy reasons, they must now be manually
3170loaded in each Controller.</li>
3171<li>Added a <a class="reference internal" href="general/reserved_names.html"><span class="doc">Reserved Names</span></a> page to
3172the userguide, and migrated reserved controller names into it.</li>
3173<li>Added a <a class="reference internal" href="general/common_functions.html"><span class="doc">Common Functions</span></a> page
3174to the userguide for globally available functions.</li>
3175<li>Improved security and performance of xss_clean().</li>
3176</ul>
3177</li>
3178</ul>
3179<div class="section" id="bugfixes-for-1-6-2">
3180<h3>Bugfixes for 1.6.2<a class="headerlink" href="#bugfixes-for-1-6-2" title="Permalink to this headline"></a></h3>
3181<ul class="simple">
3182<li>Fixed a bug where SET queries were not being handled as “write”
3183queries.</li>
3184<li>Fixed a bug (#3191) with ORIG_PATH_INFO URI parsing.</li>
3185<li>Fixed a bug in DB Forge, when inserting an id field (#3456).</li>
3186<li>Fixed a bug in the table library that could cause identically
3187constructed rows to be dropped (#3459).</li>
3188<li>Fixed DB Driver and MySQLi result driver checking for resources
3189instead of objects (#3461).</li>
3190<li>Fixed an AR_caching error where it wasn’t tracking table aliases
3191(#3463).</li>
3192<li>Fixed a bug in AR compiling, where select statements with arguments
3193got incorrectly escaped (#3478).</li>
3194<li>Fixed an incorrect documentation of $this-&gt;load-&gt;language (#3520).</li>
3195<li>Fixed bugs (#3523, #4350) in get_filenames() with recursion and
3196problems with Windows when $include_path is used.</li>
3197<li>Fixed a bug (#4153) in the XML-RPC class preventing dateTime.iso8601
3198from being used.</li>
3199<li>Fixed an AR bug with or_where_not_in() (#4171).</li>
3200<li>Fixed a bug with <a class="reference internal" href="libraries/input.html"><span class="doc">xss_clean()</span></a> that would
3201add semicolons to GET URI variable strings.</li>
3202<li>Fixed a bug (#4206) in the Directory Helper where the directory
3203resource was not being closed, and minor improvements.</li>
3204<li>Fixed a bug in the FTP library where delete_dir() was not working
3205recursively (#4215).</li>
3206<li>Fixed a Validation bug when set_rules() is used with a non-array
3207field name and rule (#4220).</li>
3208<li>Fixed a bug (#4223) where DB caching would not work for returned DB
3209objects or multiple DB connections.</li>
3210<li>Fixed a bug in the Upload library that might output the same error
3211twice (#4390).</li>
3212<li>Fixed an AR bug when joining with a table alias and table prefix
3213(#4400).</li>
3214<li>Fixed a bug in the DB class testing the $params argument.</li>
3215<li>Fixed a bug in the Table library where the integer 0 in cell data
3216would be displayed as a blank cell.</li>
3217<li>Fixed a bug in link_tag() of the <a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL
3218helper</span></a> where a key was passed instead of
3219a value.</li>
3220<li>Fixed a bug in DB_result::row() that prevented it from returning
3221individual fields with MySQL NULL values.</li>
3222<li>Fixed a bug where SMTP emails were not having dot transformation
3223performed on lines that begin with a dot.</li>
3224<li>Fixed a bug in display_error() in the DB driver that was
3225instantiating new Language and Exception objects, and not using the
3226error heading.</li>
3227<li>Fixed a bug (#4413) where a URI containing slashes only e.g.
3228‘http://example.com/index.php?//’ would result in PHP errors</li>
3229<li>Fixed an array to string conversion error in the Validation library
3230(#4425)</li>
3231<li>Fixed bug (#4451, #4299, #4339) where failed transactions will not
3232rollback when debug mode is enabled.</li>
3233<li>Fixed a bug (#4506) with overlay_watermark() in the Image library
3234preventing support for PNG-24s with alpha transparency</li>
3235<li>Fixed assorted user guide typos (#3453, #4364, #4379, #4399, #4408,
3236#4412, #4448, #4488).</li>
3237</ul>
3238</div>
3239</div>
3240<div class="section" id="version-1-6-1">
3241<h2>Version 1.6.1<a class="headerlink" href="#version-1-6-1" title="Permalink to this headline"></a></h2>
3242<p>Release Date: February 12, 2008
3243Hg Tag: 1.6.1</p>
3244<ul class="simple">
3245<li>Active Record<ul>
3246<li>Added <a class="reference internal" href="database/query_builder.html#ar-caching"><span class="std std-ref">Active Record
3247Caching</span></a>.</li>
3248<li>Made Active Record fully database-prefix aware.</li>
3249</ul>
3250</li>
3251<li>Database drivers<ul>
3252<li>Added support for setting client character set and collation for
3253MySQLi.</li>
3254</ul>
3255</li>
3256<li>Core Changes<ul>
3257<li>Modified xss_clean() to be more intelligent with its handling of
3258URL encoded strings.</li>
3259<li>Added $_SERVER, $_FILES, $_ENV, and $_SESSION to sanitization
3260of globals.</li>
3261<li>Added a <a class="reference internal" href="helpers/path_helper.html"><span class="doc">Path Helper</span></a>.</li>
3262<li>Simplified _reindex_segments() in the URI class.</li>
3263<li>Escaped the ‘-‘ in the default ‘permitted_uri_chars’ config
3264item, to prevent errors if developers just try to add additional
3265characters to the end of the default expression.</li>
3266<li>Modified method calling to controllers to show a 404 when a
3267private or protected method is accessed via a URL.</li>
3268<li>Modified framework initiated 404s to log the controller and method
3269for invalid requests.</li>
3270</ul>
3271</li>
3272<li>Helpers<ul>
3273<li>Modified get_filenames() in the File Helper to return FALSE if
3274the $source_dir is not readable.</li>
3275</ul>
3276</li>
3277</ul>
3278<div class="section" id="bugfixes-for-1-6-1">
3279<h3>Bugfixes for 1.6.1<a class="headerlink" href="#bugfixes-for-1-6-1" title="Permalink to this headline"></a></h3>
3280<ul class="simple">
3281<li>Deprecated is_numeric as a validation rule. Use of numeric and
3282integer are preferred.</li>
3283<li>Fixed bug (#3379) in DBForge with SQLite for table creation.</li>
3284<li>Made Active Record fully database prefix aware (#3384).</li>
3285<li>Fixed a bug where DBForge was outputting invalid SQL in Postgres by
3286adding brackets around the tables in FROM.</li>
3287<li>Changed the behaviour of Active Record’s update() to make the WHERE
3288clause optional (#3395).</li>
3289<li>Fixed a bug (#3396) where certain POST variables would cause a PHP
3290warning.</li>
3291<li>Fixed a bug in query binding (#3402).</li>
3292<li>Changed order of SQL keywords in the Profiler $highlight array so OR
3293would not be highlighted before ORDER BY.</li>
3294<li>Fixed a bug (#3404) where the MySQLi driver was testing if
3295$this-&gt;conn_id was a resource instead of an object.</li>
3296<li>Fixed a bug (#3419) connecting to a database via a DSN string.</li>
3297<li>Fixed a bug (#3445) where the routed segment array was not re-indexed
3298to begin with 1 when the default controller is used.</li>
3299<li>Fixed assorted user guide typos.</li>
3300</ul>
3301</div>
3302</div>
3303<div class="section" id="version-1-6-0">
3304<h2>Version 1.6.0<a class="headerlink" href="#version-1-6-0" title="Permalink to this headline"></a></h2>
3305<p>Release Date: January 30, 2008</p>
3306<ul class="simple">
3307<li>DBForge<ul>
3308<li>Added <a class="reference internal" href="database/forge.html"><span class="doc">DBForge</span></a> to the database tools.</li>
3309<li>Moved create_database() and drop_database() into
3310<a class="reference internal" href="database/forge.html"><span class="doc">DBForge</span></a>.</li>
3311<li>Added add_field(), add_key(), create_table(), drop_table(),
3312add_column(), drop_column(), modify_column() into
3313<a class="reference internal" href="database/forge.html"><span class="doc">DBForge</span></a>.</li>
3314</ul>
3315</li>
3316<li>Active Record<ul>
3317<li>Added protect_identifiers() in <a class="reference internal" href="database/query_builder.html"><span class="doc">Active
3318Record</span></a>.</li>
3319<li>All AR queries are backticked if appropriate to the database.</li>
3320<li>Added where_in(), or_where_in(), where_not_in(),
3321or_where_not_in(), not_like() and or_not_like() to <a class="reference internal" href="database/query_builder.html"><span class="doc">Active
3322Record</span></a>.</li>
3323<li>Added support for limit() into update() and delete() statements in
3324<a class="reference internal" href="database/query_builder.html"><span class="doc">Active Record</span></a>.</li>
3325<li>Added empty_table() and truncate_table() to <a class="reference internal" href="database/query_builder.html"><span class="doc">Active
3326Record</span></a>.</li>
3327<li>Added the ability to pass an array of tables to the delete()
3328statement in <a class="reference internal" href="database/query_builder.html"><span class="doc">Active Record</span></a>.</li>
3329<li>Added count_all_results() function to <a class="reference internal" href="database/query_builder.html"><span class="doc">Active
3330Record</span></a>.</li>
3331<li>Added select_max(), select_min(), select_avg() and
3332select_sum() to <a class="reference internal" href="database/query_builder.html"><span class="doc">Active Record</span></a>.</li>
3333<li>Added the ability to use aliases with joins in <a class="reference internal" href="database/query_builder.html"><span class="doc">Active
3334Record</span></a>.</li>
3335<li>Added a third parameter to Active Record’s like() clause to
3336control where the wildcard goes.</li>
3337<li>Added a third parameter to set() in <a class="reference internal" href="database/query_builder.html"><span class="doc">Active
3338Record</span></a> that withholds escaping
3339data.</li>
3340<li>Changed the behaviour of variables submitted to the where() clause
3341with no values to auto set “IS NULL”</li>
3342</ul>
3343</li>
3344<li>Other Database Related<ul>
3345<li>MySQL driver now requires MySQL 4.1+</li>
3346<li>Added $this-&gt;DB-&gt;save_queries variable to DB driver, enabling
3347queries to get saved or not. Previously they were always saved.</li>
3348<li>Added $this-&gt;db-&gt;dbprefix() to manually add database prefixes.</li>
3349<li>Added ‘random’ as an order_by() option , and removed “rand()” as
3350a listed option as it was MySQL only.</li>
3351<li>Added a check for NULL fields in the MySQL database backup
3352utility.</li>
3353<li>Added “constrain_by_prefix” parameter to db-&gt;list_table()
3354function. If set to TRUE it will limit the result to only table
3355names with the current prefix.</li>
3356<li>Deprecated from Active Record; getwhere() for get_where();
3357groupby() for group_by(); havingor() for having_or(); orderby()
3358for order_by; orwhere() for or_where(); and orlike() for
3359or_like().</li>
3360<li>Modified csv_from_result() to output CSV data more in the spirit
3361of basic rules of RFC 4180.</li>
3362<li>Added ‘char_set’ and ‘dbcollat’ database configuration settings,
3363to explicitly set the client communication properly.</li>
3364<li>Removed ‘active_r’ configuration setting and replaced with a
3365global $active_record setting, which is more in harmony with the
3366global nature of the behavior (#1834).</li>
3367</ul>
3368</li>
3369<li>Core changes<ul>
3370<li>Added ability to load multiple views, whose content will be
3371appended to the output in the order loaded.</li>
3372<li>Added the ability to <a class="reference internal" href="general/autoloader.html"><span class="doc">auto-load</span></a>
3373<a class="reference internal" href="general/models.html"><span class="doc">Models</span></a>.</li>
3374<li>Reorganized the URI and Routes classes for better clarity.</li>
3375<li>Added Compat.php to allow function overrides for older versions of
3376PHP or PHP environments missing certain extensions / libraries</li>
3377<li>Added memory usage, GET, URI string data, and individual query
3378execution time to Profiler output.</li>
3379<li>Deprecated Scaffolding.</li>
3380<li>Added is_really_writable() to Common.php to provide a
3381cross-platform reliable method of testing file/folder writability.</li>
3382</ul>
3383</li>
3384<li>Libraries<ul>
3385<li>Changed the load protocol of Models to allow for extension.</li>
3386<li>Strengthened the Encryption library to help protect against man in
3387the middle attacks when MCRYPT_MODE_CBC mode is used.</li>
3388<li>Added Flashdata variables, session_id regeneration and
3389configurable session update times to the <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session
3390class.</span></a></li>
3391<li>Removed ‘last_visit’ from the Session class.</li>
3392<li>Added a language entry for valid_ip validation error.</li>
3393<li>Modified prep_for_form() in the Validation class to accept
3394arrays, adding support for POST array validation (via callbacks
3395only)</li>
3396<li>Added an “integer” rule into the Validation library.</li>
3397<li>Added valid_base64() to the Validation library.</li>
3398<li>Documented clear() in the <a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image
3399Processing</span></a> library.</li>
3400<li>Changed the behaviour of custom callbacks so that they no longer
3401trigger the “required” rule.</li>
3402<li>Modified Upload class $_FILES error messages to be more precise.</li>
3403<li>Moved the safe mode and auth checks for the Email library into the
3404constructor.</li>
3405<li>Modified variable names in _ci_load() method of Loader class to
3406avoid conflicts with view variables.</li>
3407<li>Added a few additional mime type variations for CSV.</li>
3408<li>Enabled the ‘system’ methods for the XML-RPC Server library,
3409except for ‘system.multicall’ which is still disabled.</li>
3410</ul>
3411</li>
3412<li>Helpers &amp; Plugins<ul>
3413<li>Added link_tag() to the <a class="reference internal" href="helpers/html_helper.html"><span class="doc">HTML
3414helper.</span></a></li>
3415<li>Added img() to the <a class="reference internal" href="helpers/html_helper.html"><span class="doc">HTML helper.</span></a></li>
3416<li>Added ability to <a class="reference internal" href="general/helpers.html"><span class="doc">“extend” Helpers</span></a>.</li>
3417<li>Added an <a class="reference internal" href="helpers/email_helper.html"><span class="doc">email helper</span></a> into core
3418helpers.</li>
3419<li>Added strip_quotes() function to <a class="reference internal" href="helpers/string_helper.html"><span class="doc">string
3420helper</span></a>.</li>
3421<li>Added reduce_multiples() function to <a class="reference internal" href="helpers/string_helper.html"><span class="doc">string
3422helper</span></a>.</li>
3423<li>Added quotes_to_entities() function to <a class="reference internal" href="helpers/string_helper.html"><span class="doc">string
3424helper</span></a>.</li>
3425<li>Added form_fieldset(), form_fieldset_close(), form_label(),
3426and form_reset() function to <a class="reference internal" href="helpers/form_helper.html"><span class="doc">form
3427helper</span></a>.</li>
3428<li>Added support for external urls in form_open().</li>
3429<li>Removed support for db_backup in MySQLi due to incompatible
3430functions.</li>
3431<li>Javascript Calendar plugin now uses the months and days from the
3432calendar language file, instead of hard-coded values,
3433internationalizing it.</li>
3434</ul>
3435</li>
3436<li>Documentation Changes<ul>
3437<li>Added Writing Documentation section
3438for the community to use in writing their own documentation.</li>
3439<li>Added titles to all user manual pages.</li>
3440<li>Added attributes into &lt;html&gt; of userguide for valid html.</li>
3441<li>Added <a class="reference internal" href="libraries/zip.html"><span class="doc">Zip Encoding Class</span></a>
3442to the table of contents of the userguide.</li>
3443<li>Moved part of the userguide menu javascript to an external file.</li>
3444<li>Documented distinct() in <a class="reference internal" href="database/query_builder.html"><span class="doc">Active
3445Record</span></a>.</li>
3446<li>Documented the timezones() function in the <a class="reference internal" href="helpers/date_helper.html"><span class="doc">Date
3447Helper</span></a>.</li>
3448<li>Documented unset_userdata in the <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session
3449class</span></a>.</li>
3450<li>Documented 2 config options to the <a class="reference internal" href="database/configuration.html"><span class="doc">Database
3451configuration</span></a> page.</li>
3452</ul>
3453</li>
3454</ul>
3455<div class="section" id="bug-fixes-for-version-1-6-0">
3456<h3>Bug fixes for Version 1.6.0<a class="headerlink" href="#bug-fixes-for-version-1-6-0" title="Permalink to this headline"></a></h3>
3457<ul class="simple">
3458<li>Fixed a bug (#1813) preventing using $CI-&gt;db in the same application
3459with returned database objects.</li>
3460<li>Fixed a bug (#1842) where the $this-&gt;uri-&gt;rsegments array would not
3461include the ‘index’ method if routed to the controller without an
3462implicit method.</li>
3463<li>Fixed a bug (#1872) where word_limiter() was not retaining
3464whitespace.</li>
3465<li>Fixed a bug (#1890) in csv_from_result() where content that
3466included the delimiter would break the file.</li>
3467<li>Fixed a bug (#2542)in the clean_email() method of the Email class to
3468allow for non-numeric / non-sequential array keys.</li>
3469<li>Fixed a bug (#2545) in _html_entity_decode_callback() when
3470‘global_xss_filtering’ is enabled.</li>
3471<li>Fixed a bug (#2668) in the <a class="reference internal" href="libraries/parser.html"><span class="doc">parser class</span></a>
3472where numeric data was ignored.</li>
3473<li>Fixed a bug (#2679) where the “previous” pagination link would get
3474drawn on the first page.</li>
3475<li>Fixed a bug (#2702) in _object_to_array that broke some types of
3476inserts and updates.</li>
3477<li>Fixed a bug (#2732) in the SQLite driver for PHP 4.</li>
3478<li>Fixed a bug (#2754) in Pagination to scan for non-positive
3479num_links.</li>
3480<li>Fixed a bug (#2762) in the <a class="reference internal" href="libraries/sessions.html"><span class="doc">Session
3481library</span></a> where user agent matching would
3482fail on user agents ending with a space.</li>
3483<li>Fixed a bug (#2784) $field_names[] vs $Ffield_names[] in postgres
3484and sqlite drivers.</li>
3485<li>Fixed a bug (#2810) in the typography helper causing extraneous
3486paragraph tags when string contains tags.</li>
3487<li>Fixed a bug (#2849) where arguments passed to a subfolder controller
3488method would be incorrectly shifted, dropping the 3rd segment value.</li>
3489<li>Fixed a bug (#2858) which referenced a wrong variable in the Image
3490class.</li>
3491<li>Fixed a bug (#2875)when loading plugin files as _plugin. and not
3492_pi.</li>
3493<li>Fixed a bug (#2912) in get_filenames() in the <a class="reference internal" href="helpers/file_helper.html"><span class="doc">File
3494Helper</span></a> where the array wasn’t cleared
3495after each call.</li>
3496<li>Fixed a bug (#2974) in highlight_phrase() that caused an error with
3497slashes.</li>
3498<li>Fixed a bug (#3003) in the Encryption Library to support modes other
3499than MCRYPT_MODE_ECB</li>
3500<li>Fixed a bug (#3015) in the <a class="reference internal" href="libraries/user_agent.html"><span class="doc">User Agent
3501library</span></a> where more than 2 languages
3502where not reported with languages().</li>
3503<li>Fixed a bug (#3017) in the <a class="reference internal" href="libraries/email.html"><span class="doc">Email</span></a> library
3504where some timezones were calculated incorrectly.</li>
3505<li>Fixed a bug (#3024) in which master_dim wasn’t getting reset by
3506clear() in the Image library.</li>
3507<li>Fixed a bug (#3156) in Text Helper highlight_code() causing PHP tags
3508to be handled incorrectly.</li>
3509<li>Fixed a bug (#3166) that prevented num_rows from working in Oracle.</li>
3510<li>Fixed a bug (#3175) preventing certain libraries from working
3511properly when autoloaded in PHP 4.</li>
3512<li>Fixed a bug (#3267) in the Typography Helper where unordered list was
3513listed “un.</li>
3514<li>Fixed a bug (#3268) where the Router could leave ‘/’ as the path.</li>
3515<li>Fixed a bug (#3279) where the Email class was sending the wrong
3516Content-Transfer-Encoding for some character sets.</li>
3517<li>Fixed a bug (#3284) where the rsegment array would not be set
3518properly if the requested URI contained more segments than the routed
3519URI.</li>
3520<li>Removed extraneous load of $CFG in _display_cache() of the Output
3521class (#3285).</li>
3522<li>Removed an extraneous call to loading models (#3286).</li>
3523<li>Fixed a bug (#3310) with sanitization of globals in the Input class
3524that could unset CI’s global variables.</li>
3525<li>Fixed a bug (#3314) which would cause the top level path to be
3526deleted in delete_files() of the File helper.</li>
3527<li>Fixed a bug (#3328) where the smiley helper might return an undefined
3528variable.</li>
3529<li>Fixed a bug (#3330) in the FTP class where a comparison wasn’t
3530getting made.</li>
3531<li>Removed an unused parameter from Profiler (#3332).</li>
3532<li>Fixed a bug in database driver where num_rows property wasn’t
3533getting updated.</li>
3534<li>Fixed a bug in the <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">upload
3535library</span></a> when allowed_files
3536wasn’t defined.</li>
3537<li>Fixed a bug in word_wrap() of the Text Helper that incorrectly
3538referenced an object.</li>
3539<li>Fixed a bug in Validation where valid_ip() wasn’t called properly.</li>
3540<li>Fixed a bug in Validation where individual error messages for
3541checkboxes wasn’t supported.</li>
3542<li>Fixed a bug in captcha calling an invalid PHP function.</li>
3543<li>Fixed a bug in the cookie helper “set_cookie” function. It was not
3544honoring the config settings.</li>
3545<li>Fixed a bug that was making validation callbacks required even when
3546not set as such.</li>
3547<li>Fixed a bug in the XML-RPC library so if a type is specified, a more
3548intelligent decision is made as to the default type.</li>
3549<li>Fixed an example of comma-separated emails in the email library
3550documentation.</li>
3551<li>Fixed an example in the Calendar library for Showing Next/Previous
3552Month Links.</li>
3553<li>Fixed a typo in the database language file.</li>
3554<li>Fixed a typo in the image language file “suppor” to “support”.</li>
3555<li>Fixed an example for XML RPC.</li>
3556<li>Fixed an example of accept_charset() in the <a class="reference internal" href="libraries/user_agent.html"><span class="doc">User Agent
3557Library</span></a>.</li>
3558<li>Fixed a typo in the docblock comments that had CodeIgniter spelled
3559CodeIgnitor.</li>
3560<li>Fixed a typo in the <a class="reference internal" href="helpers/string_helper.html"><span class="doc">String Helper</span></a>
3561(uniquid changed to uniqid).</li>
3562<li>Fixed typos in the email Language class
3563(email_attachment_unredable, email_filed_smtp_login), and FTP
3564Class (ftp_unable_to_remame).</li>
3565<li>Added a stripslashes() into the Upload Library.</li>
3566<li>Fixed a series of grammatical and spelling errors in the language
3567files.</li>
3568<li>Fixed assorted user guide typos.</li>
3569</ul>
3570</div>
3571</div>
3572<div class="section" id="version-1-5-4">
3573<h2>Version 1.5.4<a class="headerlink" href="#version-1-5-4" title="Permalink to this headline"></a></h2>
3574<p>Release Date: July 12, 2007</p>
3575<ul class="simple">
3576<li>Added <a class="reference internal" href="libraries/language.html"><span class="doc">custom Language files</span></a> to the
3577<a class="reference internal" href="general/autoloader.html"><span class="doc">autoload</span></a> options.</li>
3578<li>Added stripslashes() to the _clean_input_data() function in the
3579<a class="reference internal" href="libraries/input.html"><span class="doc">Input class</span></a> when magic quotes is on so
3580that data will always be un-slashed within the framework.</li>
3581<li>Added array to string into the <a class="reference internal" href="general/profiling.html"><span class="doc">profiler</span></a>.</li>
3582<li>Added some additional mime types in application/config/mimes.php.</li>
3583<li>Added filename_security() method to <a class="reference internal" href="libraries/input.html"><span class="doc">Input
3584library</span></a>.</li>
3585<li>Added some additional arguments to the <a class="reference internal" href="helpers/inflector_helper.html"><span class="doc">Inflection
3586helper</span></a> singular() to compensate
3587for words ending in “s”. Also added a force parameter to pluralize().</li>
3588<li>Added $config[‘charset’] to the config file. Default value is
3589‘UTF-8’, used in some string handling functions.</li>
3590<li>Fixed MSSQL insert_id().</li>
3591<li>Fixed a logic error in the DB trans_status() function. It was
3592incorrectly returning TRUE on failure and FALSE on success.</li>
3593<li>Fixed a bug that was allowing multiple load attempts on extended
3594classes.</li>
3595<li>Fixed a bug in the bootstrap file that was incorrectly attempting to
3596discern the full server path even when it was explicity set by the
3597user.</li>
3598<li>Fixed a bug in the escape_str() function in the MySQL driver.</li>
3599<li>Fixed a typo in the <a class="reference internal" href="libraries/calendar.html"><span class="doc">Calendar library</span></a></li>
3600<li>Fixed a typo in rpcs.php library</li>
3601<li>Fixed a bug in the <a class="reference internal" href="libraries/zip.html"><span class="doc">Zip library</span></a>, providing
3602PC Zip file compatibility with Mac OS X</li>
3603<li>Fixed a bug in router that was ignoring the scaffolding route for
3604optimization</li>
3605<li>Fixed an IP validation bug.</li>
3606<li>Fixed a bug in display of POST keys in the
3607<a class="reference internal" href="general/profiling.html"><span class="doc">Profiler</span></a> output</li>
3608<li>Fixed a bug in display of queries with characters that would be
3609interpreted as HTML in the <a class="reference internal" href="general/profiling.html"><span class="doc">Profiler</span></a>
3610output</li>
3611<li>Fixed a bug in display of Email class print debugger with characters
3612that would be interpreted as HTML in the debugging output</li>
3613<li>Fixed a bug in the Content-Transfer-Encoding of HTML emails with the
3614quoted-printable MIME type</li>
3615<li>Fixed a bug where one could unset certain PHP superglobals by setting
3616them via GET or POST data</li>
3617<li>Fixed an undefined function error in the insert_id() function of the
3618PostgreSQL driver</li>
3619<li>Fixed various doc typos.</li>
3620<li>Documented two functions from the <a class="reference internal" href="helpers/string_helper.html"><span class="doc">String
3621helper</span></a> that were missing from the
3622user guide: trim_slashes() and reduce_double_slashes().</li>
3623<li>Docs now validate to XHTML 1 transitional</li>
3624<li>Updated the XSS Filtering to take into account the IE expression()
3625ability and improved certain deletions to prevent possible exploits</li>
3626<li>Modified the Router so that when Query Strings are Enabled, the
3627controller trigger and function trigger values are sanitized for
3628filename include security.</li>
3629<li>Modified the is_image() method in the Upload library to take into
3630account Windows IE 6/7 eccentricities when dealing with MIMEs</li>
3631<li>Modified XSS Cleaning routine to be more performance friendly and
3632compatible with PHP 5.2’s new PCRE backtrack and recursion limits.</li>
3633<li>Modified the <a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL Helper</span></a> to type cast
3634the $title as a string in case a numeric value is supplied</li>
3635<li>Modified Form Helper form_dropdown() to type cast the keys and
3636values of the options array as strings, allowing numeric values to be
3637properly set as ‘selected’</li>
3638<li>Deprecated the use if is_numeric() in various places since it allows
3639periods. Due to compatibility problems with ctype_digit(), making it
3640unreliable in some installations, the following regular expression
3641was used instead: preg_match(“/[^0-9]/”, $n)</li>
3642<li>Deprecated: APPVER has been deprecated and replaced with CI_VERSION
3643for clarity.</li>
3644</ul>
3645</div>
3646<div class="section" id="version-1-5-3">
3647<h2>Version 1.5.3<a class="headerlink" href="#version-1-5-3" title="Permalink to this headline"></a></h2>
3648<p>Release Date: April 15, 2007</p>
3649<ul class="simple">
3650<li>Added array to string into the profiler</li>
3651<li>Code Igniter references updated to CodeIgniter</li>
3652<li>pMachine references updated to EllisLab</li>
3653<li>Fixed a bug in the repeater function of <a class="reference internal" href="helpers/string_helper.html"><span class="doc">string
3654helper</span></a>.</li>
3655<li>Fixed a bug in ODBC driver</li>
3656<li>Fixed a bug in result_array() that was returning an empty array when
3657no result is produced.</li>
3658<li>Fixed a bug in the redirect function of the <a class="reference internal" href="helpers/url_helper.html"><span class="doc">url
3659helper</span></a>.</li>
3660<li>Fixed an undefined variable in Loader</li>
3661<li>Fixed a version bug in the Postgres driver</li>
3662<li>Fixed a bug in the textarea function of the form helper for use with
3663strings</li>
3664<li>Fixed doc typos.</li>
3665</ul>
3666</div>
3667<div class="section" id="version-1-5-2">
3668<h2>Version 1.5.2<a class="headerlink" href="#version-1-5-2" title="Permalink to this headline"></a></h2>
3669<p>Release Date: February 13, 2007</p>
3670<ul class="simple">
3671<li>Added subversion information
3672to the <a class="reference internal" href="installation/downloads.html"><span class="doc">downloads</span></a> page.</li>
3673<li>Added support for captions in the <a class="reference internal" href="libraries/table.html"><span class="doc">Table
3674Library</span></a></li>
3675<li>Fixed a bug in the
3676<a class="reference internal" href="helpers/download_helper.html"><span class="doc">download_helper</span></a> that was causing
3677Internet Explorer to load rather than download</li>
3678<li>Fixed a bug in the Active Record Join function that was not taking
3679table prefixes into consideration.</li>
3680<li>Removed unescaped variables in error messages of Input and Router
3681classes</li>
3682<li>Fixed a bug in the Loader that was causing errors on Libraries loaded
3683twice. A debug message is now silently made in the log.</li>
3684<li>Fixed a bug in the <a class="reference internal" href="helpers/form_helper.html"><span class="doc">form helper</span></a> that
3685gave textarea a value attribute</li>
3686<li>Fixed a bug in the <a class="reference internal" href="libraries/image_lib.html"><span class="doc">Image Library</span></a> that
3687was ignoring resizing the same size image</li>
3688<li>Fixed some doc typos.</li>
3689</ul>
3690</div>
3691<div class="section" id="version-1-5-1">
3692<h2>Version 1.5.1<a class="headerlink" href="#version-1-5-1" title="Permalink to this headline"></a></h2>
3693<p>Release Date: November 23, 2006</p>
3694<ul class="simple">
3695<li>Added support for submitting arrays of libraries in the
3696$this-&gt;load-&gt;library function.</li>
3697<li>Added support for naming custom library files in lower or uppercase.</li>
3698<li>Fixed a bug related to output buffering.</li>
3699<li>Fixed a bug in the active record class that was not resetting query
3700data after a completed query.</li>
3701<li>Fixed a bug that was suppressing errors in controllers.</li>
3702<li>Fixed a problem that can cause a loop to occur when the config file
3703is missing.</li>
3704<li>Fixed a bug that occurred when multiple models were loaded with the
3705third parameter set to TRUE.</li>
3706<li>Fixed an oversight that was not unsetting globals properly in the
3707input sanitize function.</li>
3708<li>Fixed some bugs in the Oracle DB driver.</li>
3709<li>Fixed an incorrectly named variable in the MySQLi result driver.</li>
3710<li>Fixed some doc typos.</li>
3711</ul>
3712</div>
3713<div class="section" id="version-1-5-0-1">
3714<h2>Version 1.5.0.1<a class="headerlink" href="#version-1-5-0-1" title="Permalink to this headline"></a></h2>
3715<p>Release Date: October 31, 2006</p>
3716<ul class="simple">
3717<li>Fixed a problem in which duplicate attempts to load helpers and
3718classes were not being stopped.</li>
3719<li>Fixed a bug in the word_wrap() helper function.</li>
3720<li>Fixed an invalid color Hex number in the Profiler class.</li>
3721<li>Fixed a corrupted image in the user guide.</li>
3722</ul>
3723</div>
3724<div class="section" id="version-1-5-0">
3725<h2>Version 1.5.0<a class="headerlink" href="#version-1-5-0" title="Permalink to this headline"></a></h2>
3726<p>Release Date: October 30, 2006</p>
3727<ul class="simple">
3728<li>Added <a class="reference internal" href="database/utilities.html"><span class="doc">DB utility class</span></a>, permitting DB
3729backups, CVS or XML files from DB results, and various other
3730functions.</li>
3731<li>Added <a class="reference internal" href="database/caching.html"><span class="doc">Database Caching Class</span></a>.</li>
3732<li>Added <a class="reference internal" href="database/transactions.html"><span class="doc">transaction support</span></a> to the
3733database classes.</li>
3734<li>Added <a class="reference internal" href="general/profiling.html"><span class="doc">Profiler Class</span></a> which generates a
3735report of Benchmark execution times, queries, and POST data at the
3736bottom of your pages.</li>
3737<li>Added <a class="reference internal" href="libraries/user_agent.html"><span class="doc">User Agent Library</span></a> which
3738allows browsers, robots, and mobile devises to be identified.</li>
3739<li>Added <a class="reference internal" href="libraries/table.html"><span class="doc">HTML Table Class</span></a> , enabling tables
3740to be generated from arrays or database results.</li>
3741<li>Added <a class="reference internal" href="libraries/zip.html"><span class="doc">Zip Encoding Library</span></a>.</li>
3742<li>Added <a class="reference internal" href="libraries/ftp.html"><span class="doc">FTP Library</span></a>.</li>
3743<li>Added the ability to <a class="reference internal" href="general/creating_libraries.html"><span class="doc">extend
3744libraries</span></a> and <a class="reference internal" href="general/core_classes.html"><span class="doc">extend core
3745classes</span></a>, in addition to being able to
3746replace them.</li>
3747<li>Added support for storing <a class="reference internal" href="general/models.html"><span class="doc">models within
3748sub-folders</span></a>.</li>
3749<li>Added <a class="reference internal" href="helpers/download_helper.html"><span class="doc">Download Helper</span></a>.</li>
3750<li>Added <a class="reference internal" href="database/queries.html"><span class="doc">simple_query()</span></a> function to the
3751database classes</li>
3752<li>Added <a class="reference internal" href="helpers/date_helper.html"><span class="doc">standard_date()</span></a> function to
3753the Date Helper.</li>
3754<li>Added <a class="reference internal" href="database/results.html"><span class="doc">$query-&gt;free_result()</span></a> to database
3755class.</li>
3756<li>Added <a class="reference internal" href="database/metadata.html"><span class="doc">$query-&gt;list_fields()</span></a> function to
3757database class</li>
3758<li>Added <a class="reference internal" href="database/helpers.html"><span class="doc">$this-&gt;db-&gt;platform()</span></a> function</li>
3759<li>Added new <a class="reference internal" href="helpers/file_helper.html"><span class="doc">File Helper</span></a>:
3760get_filenames()</li>
3761<li>Added new helper: <a class="reference internal" href="helpers/smiley_helper.html"><span class="doc">Smiley Helper</span></a></li>
3762<li>Added support for &lt;ul&gt; and &lt;ol&gt; lists in the <a class="reference internal" href="helpers/html_helper.html"><span class="doc">HTML
3763Helper</span></a></li>
3764<li>Added the ability to rewrite <a class="reference internal" href="general/alternative_php.html"><span class="doc">short
3765tags</span></a> on-the-fly, converting them
3766to standard PHP statements, for those servers that do not support
3767short tags. This allows the cleaner syntax to be used regardless of
3768whether it’s supported by the server.</li>
3769<li>Added the ability to <a class="reference internal" href="general/managing_apps.html"><span class="doc">rename or relocate the “application”
3770folder</span></a>.</li>
3771<li>Added more thorough initialization in the upload class so that all
3772class variables are reset.</li>
3773<li>Added “is_numeric” to validation, which uses the native PHP
3774is_numeric function.</li>
3775<li>Improved the URI handler to make it more reliable when the
3776$config[‘uri_protocol’] item is set to AUTO.</li>
3777<li>Moved most of the functions in the Controller class into the Loader
3778class, allowing fewer reserved function names for controllers when
3779running under PHP 5.</li>
3780<li>Updated the DB Result class to return an empty array when
3781$query-&gt;result() doesn’t produce a result.</li>
3782<li>Updated the input-&gt;cookie() and input-&gt;post() functions in <a class="reference internal" href="libraries/input.html"><span class="doc">Input
3783Class</span></a> to permit arrays contained cookies
3784that are arrays to be run through the XSS filter.</li>
3785<li>Documented three functions from the Validation
3786class that were missing from the user
3787guide: set_select(), set_radio(), and set_checkbox().</li>
3788<li>Fixed a bug in the Email class related to SMTP Helo data.</li>
3789<li>Fixed a bug in the word wrapping helper and function in the email
3790class.</li>
3791<li>Fixed a bug in the validation class.</li>
3792<li>Fixed a bug in the typography helper that was incorrectly wrapping
3793block level elements in paragraph tags.</li>
3794<li>Fixed a problem in the form_prep() function that was double encoding
3795entities.</li>
3796<li>Fixed a bug that affects some versions of PHP when output buffering
3797is nested.</li>
3798<li>Fixed a bug that caused CI to stop working when the PHP magic
3799__get() or __set() functions were used within models or
3800controllers.</li>
3801<li>Fixed a pagination bug that was permitting negative values in the
3802URL.</li>
3803<li>Fixed an oversight in which the Loader class was not allowed to be
3804extended.</li>
3805<li>Changed _get_config() to get_config() since the function is not a
3806private one.</li>
3807<li><strong>Deprecated “init” folder</strong>. Initialization happens automatically
3808now. <a class="reference internal" href="general/creating_libraries.html"><span class="doc">Please see documentation</span></a>.</li>
3809<li><strong>Deprecated</strong> $this-&gt;db-&gt;field_names() USE
3810$this-&gt;db-&gt;list_fields()</li>
3811<li><strong>Deprecated</strong> the $config[‘log_errors’] item from the config.php
3812file. Instead, $config[‘log_threshold’] can be set to “0” to turn it
3813off.</li>
3814</ul>
3815</div>
3816<div class="section" id="version-1-4-1">
3817<h2>Version 1.4.1<a class="headerlink" href="#version-1-4-1" title="Permalink to this headline"></a></h2>
3818<p>Release Date: September 21, 2006</p>
3819<ul class="simple">
3820<li>Added a new feature that passes URI segments directly to your
3821function calls as parameters. See the
3822<a class="reference internal" href="general/controllers.html"><span class="doc">Controllers</span></a> page for more info.</li>
3823<li>Added support for a function named _output(), which when used in
3824your controllers will received the final rendered output from the
3825output class. More info in the <a class="reference internal" href="general/controllers.html"><span class="doc">Controllers</span></a>
3826page.</li>
3827<li>Added several new functions in the <a class="reference internal" href="libraries/uri.html"><span class="doc">URI
3828Class</span></a> to let you retrieve and manipulate URI
3829segments that have been re-routed using the <a class="reference internal" href="general/routing.html"><span class="doc">URI
3830Routing</span></a> feature. Previously, the URI class did not
3831permit you to access any re-routed URI segments, but now it does.</li>
3832<li>Added <a class="reference internal" href="libraries/output.html"><span class="doc">$this-&gt;output-&gt;set_header()</span></a>
3833function, which allows you to set server headers.</li>
3834<li>Updated plugins, helpers, and language classes to allow your
3835application folder to contain its own plugins, helpers, and language
3836folders. Previously they were always treated as global for your
3837entire installation. If your application folder contains any of these
3838resources they will be used <em>instead</em> the global ones.</li>
3839<li>Added <a class="reference internal" href="helpers/inflector_helper.html"><span class="doc">Inflector helper</span></a>.</li>
3840<li>Added element() function in the <a class="reference internal" href="helpers/array_helper.html"><span class="doc">array
3841helper</span></a>.</li>
3842<li>Added RAND() to active record orderby() function.</li>
3843<li>Added delete_cookie() and get_cookie() to <a class="reference internal" href="helpers/cookie_helper.html"><span class="doc">Cookie
3844helper</span></a>, even though the input class
3845has a cookie fetching function.</li>
3846<li>Added Oracle database driver (still undergoing testing so it might
3847have some bugs).</li>
3848<li>Added the ability to combine pseudo-variables and php variables in
3849the template parser class.</li>
3850<li>Added output compression option to the config file.</li>
3851<li>Removed the is_numeric test from the db-&gt;escape() function.</li>
3852<li>Fixed a MySQLi bug that was causing error messages not to contain
3853proper error data.</li>
3854<li>Fixed a bug in the email class which was causing it to ignore
3855explicitly set alternative headers.</li>
3856<li>Fixed a bug that was causing a PHP error when the Exceptions class
3857was called within the get_config() function since it was causing
3858problems.</li>
3859<li>Fixed an oversight in the cookie helper in which the config file
3860cookie settings were not being honored.</li>
3861<li>Fixed an oversight in the upload class. An item mentioned in the 1.4
3862changelog was missing.</li>
3863<li>Added some code to allow email attachments to be reset when sending
3864batches of email.</li>
3865<li>Deprecated the application/scripts folder. It will continue to work
3866for legacy users, but it is recommended that you create your own
3867<a class="reference internal" href="general/libraries.html"><span class="doc">libraries</span></a> or
3868<a class="reference internal" href="general/models.html"><span class="doc">models</span></a> instead. It was originally added
3869before CI had user libraries or models, but it’s not needed anymore.</li>
3870<li>Deprecated the $autoload[‘core’] item from the autoload.php file.
3871Instead, please now use: $autoload[‘libraries’]</li>
3872<li>Deprecated the following database functions:
3873$this-&gt;db-&gt;smart_escape_str() and $this-&gt;db-&gt;fields().</li>
3874</ul>
3875</div>
3876<div class="section" id="version-1-4-0">
3877<h2>Version 1.4.0<a class="headerlink" href="#version-1-4-0" title="Permalink to this headline"></a></h2>
3878<p>Release Date: September 17, 2006</p>
3879<ul class="simple">
3880<li>Added <a class="reference internal" href="general/hooks.html"><span class="doc">Hooks</span></a> feature, enabling you to tap
3881into and modify the inner workings of the framework without hacking
3882the core files.</li>
3883<li>Added the ability to organize controller files <a class="reference internal" href="general/controllers.html"><span class="doc">into
3884sub-folders</span></a>. Kudos to Marco for
3885suggesting this (and the next two) feature.</li>
3886<li>Added regular expressions support for <a class="reference internal" href="general/routing.html"><span class="doc">routing
3887rules</span></a>.</li>
3888<li>Added the ability to <a class="reference internal" href="general/controllers.html"><span class="doc">remap function
3889calls</span></a> within your controllers.</li>
3890<li>Added the ability to <a class="reference internal" href="general/core_classes.html"><span class="doc">replace core system
3891classes</span></a> with your own classes.</li>
3892<li>Added support for % character in URL.</li>
3893<li>Added the ability to supply full URLs using the
3894<a class="reference internal" href="helpers/url_helper.html"><span class="doc">anchor()</span></a> helper function.</li>
3895<li>Added mode parameter to <a class="reference internal" href="helpers/file_helper.html"><span class="doc">file_write()</span></a>
3896helper.</li>
3897<li>Added support for changing the port number in the <a class="reference internal" href="database/configuration.html"><span class="doc">Postgres
3898driver</span></a>.</li>
3899<li>Moved the list of “allowed URI characters” out of the Router class
3900and into the config file.</li>
3901<li>Moved the MIME type array out of the Upload class and into its own
3902file in the application/config/ folder.</li>
3903<li>Updated the Upload class to allow the upload field name to be set
3904when calling <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">do_upload()</span></a>.</li>
3905<li>Updated the <a class="reference internal" href="libraries/config.html"><span class="doc">Config Library</span></a> to be able to
3906load config files silently, and to be able to assign config files to
3907their own index (to avoid collisions if you use multiple config
3908files).</li>
3909<li>Updated the URI Protocol code to allow more options so that URLs will
3910work more reliably in different environments.</li>
3911<li>Updated the form_open() helper to allow the GET method to be used.</li>
3912<li>Updated the MySQLi execute() function with some code to help prevent
3913lost connection errors.</li>
3914<li>Updated the SQLite Driver to check for object support before
3915attempting to return results as objects. If unsupported it returns an
3916array.</li>
3917<li>Updated the Models loader function to allow multiple loads of the
3918same model.</li>
3919<li>Updated the MS SQL driver so that single quotes are escaped.</li>
3920<li>Updated the Postgres and ODBC drivers for better compatibility.</li>
3921<li>Removed a strtolower() call that was changing URL segments to lower
3922case.</li>
3923<li>Removed some references that were interfering with PHP 4.4.1
3924compatibility.</li>
3925<li>Removed backticks from Postgres class since these are not needed.</li>
3926<li>Renamed display() to _display() in the Output class to make it clear
3927that it’s a private function.</li>
3928<li>Deprecated the hash() function due to a naming conflict with a native
3929PHP function with the same name. Please use dohash() instead.</li>
3930<li>Fixed an bug that was preventing the input class from unsetting GET
3931variables.</li>
3932<li>Fixed a router bug that was making it too greedy when matching end
3933segments.</li>
3934<li>Fixed a bug that was preventing multiple discrete database calls.</li>
3935<li>Fixed a bug in which loading a language file was producing a “file
3936contains no data” message.</li>
3937<li>Fixed a session bug caused by the XSS Filtering feature inadvertently
3938changing the case of certain words.</li>
3939<li>Fixed some missing prefixes when using the database prefix feature.</li>
3940<li>Fixed a typo in the Calendar class (cal_november).</li>
3941<li>Fixed a bug in the form_checkbox() helper.</li>
3942<li>Fixed a bug that was allowing the second segment of the URI to be
3943identical to the class name.</li>
3944<li>Fixed an evaluation bug in the database initialization function.</li>
3945<li>Fixed a minor bug in one of the error messages in the language class.</li>
3946<li>Fixed a bug in the date helper timespan function.</li>
3947<li>Fixed an undefined variable in the DB Driver class.</li>
3948<li>Fixed a bug in which dollar signs used as binding replacement values
3949in the DB class would be treated as RegEx back-references.</li>
3950<li>Fixed a bug in the set_hash() function which was preventing MD5 from
3951being used.</li>
3952<li>Fixed a couple bugs in the Unit Testing class.</li>
3953<li>Fixed an incorrectly named variable in the Validation class.</li>
3954<li>Fixed an incorrectly named variable in the URI class.</li>
3955<li>Fixed a bug in the config class that was preventing the base URL from
3956being called properly.</li>
3957<li>Fixed a bug in the validation class that was not permitting callbacks
3958if the form field was empty.</li>
3959<li>Fixed a problem that was preventing scaffolding from working properly
3960with MySQLi.</li>
3961<li>Fixed some MS SQL bugs.</li>
3962<li>Fixed some doc typos.</li>
3963</ul>
3964</div>
3965<div class="section" id="version-1-3-3">
3966<h2>Version 1.3.3<a class="headerlink" href="#version-1-3-3" title="Permalink to this headline"></a></h2>
3967<p>Release Date: June 1, 2006</p>
3968<ul class="simple">
3969<li>Models do <strong>not</strong> connect automatically to the database as of this
3970version. <a class="reference internal" href="general/models.html"><span class="doc">More info here</span></a>.</li>
3971<li>Updated the Sessions class to utilize the active record class when
3972running session related queries. Previously the queries assumed MySQL
3973syntax.</li>
3974<li>Updated alternator() function to re-initialize when called with no
3975arguments, allowing multiple calls.</li>
3976<li>Fixed a bug in the active record “having” function.</li>
3977<li>Fixed a problem in the validation class which was making checkboxes
3978be ignored when required.</li>
3979<li>Fixed a bug in the word_limiter() helper function. It was cutting
3980off the fist word.</li>
3981<li>Fixed a bug in the xss_clean function due to a PHP bug that affects
3982some versions of html_entity_decode.</li>
3983<li>Fixed a validation bug that was preventing rules from being set twice
3984in one controller.</li>
3985<li>Fixed a calendar bug that was not letting it use dynamically loaded
3986languages.</li>
3987<li>Fixed a bug in the active record class when using WHERE clauses with
3988LIKE</li>
3989<li>Fixed a bug in the hash() security helper.</li>
3990<li>Fixed some typos.</li>
3991</ul>
3992</div>
3993<div class="section" id="version-1-3-2">
3994<h2>Version 1.3.2<a class="headerlink" href="#version-1-3-2" title="Permalink to this headline"></a></h2>
3995<p>Release Date: April 17, 2006</p>
3996<ul class="simple">
3997<li>Changed the behavior of the validation class such that if a
3998“required” rule is NOT explicitly stated for a field then all other
3999tests get ignored.</li>
4000<li>Fixed a bug in the Controller class that was causing it to look in
4001the local “init” folder instead of the main system one.</li>
4002<li>Fixed a bug in the init_pagination file. The $config item was not
4003being set correctly.</li>
4004<li>Fixed a bug in the auto typography helper that was causing
4005inconsistent behavior.</li>
4006<li>Fixed a couple bugs in the Model class.</li>
4007<li>Fixed some documentation typos and errata.</li>
4008</ul>
4009</div>
4010<div class="section" id="version-1-3-1">
4011<h2>Version 1.3.1<a class="headerlink" href="#version-1-3-1" title="Permalink to this headline"></a></h2>
4012<p>Release Date: April 11, 2006</p>
4013<ul class="simple">
4014<li>Added a <a class="reference internal" href="libraries/unit_testing.html"><span class="doc">Unit Testing Library</span></a>.</li>
4015<li>Added the ability to pass objects to the <strong>insert()</strong> and
4016<strong>update()</strong> database functions. This feature enables you to (among
4017other things) use your <a class="reference internal" href="general/models.html"><span class="doc">Model class</span></a>
4018variables to run queries with. See the Models page for details.</li>
4019<li>Added the ability to pass objects to the <a class="reference internal" href="general/views.html"><span class="doc">view loading
4020function</span></a>: $this-&gt;load-&gt;view(‘my_view’,
4021$object);</li>
4022<li>Added getwhere function to <a class="reference internal" href="database/query_builder.html"><span class="doc">Active Record
4023class</span></a>.</li>
4024<li>Added count_all function to <a class="reference internal" href="database/query_builder.html"><span class="doc">Active Record
4025class</span></a>.</li>
4026<li>Added language file for scaffolding and fixed a scaffolding bug that
4027occurs when there are no rows in the specified table.</li>
4028<li>Added <a class="reference internal" href="database/queries.html"><span class="doc">$this-&gt;db-&gt;last_query()</span></a>, which
4029allows you to view your last query that was run.</li>
4030<li>Added a new mime type to the upload class for better compatibility.</li>
4031<li>Changed how cache files are read to prevent PHP errors if the cache
4032file contains an XML tag, which PHP wants to interpret as a short
4033tag.</li>
4034<li>Fixed a bug in a couple of the active record functions (where and
4035orderby).</li>
4036<li>Fixed a bug in the image library when realpath() returns false.</li>
4037<li>Fixed a bug in the Models that was preventing libraries from being
4038used within them.</li>
4039<li>Fixed a bug in the “exact_length” function of the validation class.</li>
4040<li>Fixed some typos in the user guide</li>
4041</ul>
4042</div>
4043<div class="section" id="version-1-3">
4044<h2>Version 1.3<a class="headerlink" href="#version-1-3" title="Permalink to this headline"></a></h2>
4045<p>Release Date: April 3, 2006</p>
4046<ul class="simple">
4047<li>Added support for <a class="reference internal" href="general/models.html"><span class="doc">Models</span></a>.</li>
4048<li>Redesigned the database libraries to support additional RDBMs
4049(Postgres, MySQLi, etc.).</li>
4050<li>Redesigned the <a class="reference internal" href="database/query_builder.html"><span class="doc">Active Record class</span></a>
4051to enable more varied types of queries with simpler syntax, and
4052advanced features like JOINs.</li>
4053<li>Added a feature to the database class that lets you run <a class="reference internal" href="database/call_function.html"><span class="doc">custom
4054function calls</span></a>.</li>
4055<li>Added support for <a class="reference internal" href="general/controllers.html"><span class="doc">private functions</span></a> in your
4056controllers. Any controller function name that starts with an
4057underscore will not be served by a URI request.</li>
4058<li>Added the ability to pass your own initialization parameters to your
4059<a class="reference internal" href="general/creating_libraries.html"><span class="doc">custom core libraries</span></a> when using
4060$this-&gt;load-&gt;library()</li>
4061<li>Added support for running standard <a class="reference internal" href="general/urls.html"><span class="doc">query string URLs</span></a>.
4062These can be optionally enabled in your config file.</li>
4063<li>Added the ability to <a class="reference internal" href="general/urls.html"><span class="doc">specify a “suffix”</span></a>, which will be
4064appended to your URLs. For example, you could add .html to your URLs,
4065making them appear static. This feature is enabled in your config
4066file.</li>
4067<li>Added a new error template for use with native PHP errors.</li>
4068<li>Added “alternator” function in the <a class="reference internal" href="helpers/string_helper.html"><span class="doc">string
4069helpers</span></a>.</li>
4070<li>Removed slashing from the input class. After much debate we decided
4071to kill this feature.</li>
4072<li>Change the commenting style in the scripts to the PEAR standard so
4073that IDEs and tools like phpDocumenter can harvest the comments.</li>
4074<li>Added better class and function name-spacing to avoid collisions with
4075user developed classes. All CodeIgniter classes are now prefixed with
4076CI_ and all controller methods are prefixed with _ci to avoid
4077controller collisions. A list of reserved function names can be
4078<a class="reference internal" href="general/controllers.html"><span class="doc">found here</span></a>.</li>
4079<li>Redesigned how the “CI” super object is referenced, depending on
4080whether PHP 4 or 5 is being run, since PHP 5 allows a more graceful
4081way to manage objects that utilizes a bit less resources.</li>
4082<li>Deprecated: $this-&gt;db-&gt;use_table() has been deprecated. Please read
4083the <a class="reference internal" href="database/query_builder.html"><span class="doc">Active Record</span></a> page for
4084information.</li>
4085<li>Deprecated: $this-&gt;db-&gt;smart_escape_str() has been deprecated.
4086Please use this instead: $this-&gt;db-&gt;escape()</li>
4087<li>Fixed a bug in the exception handler which was preventing some PHP
4088errors from showing up.</li>
4089<li>Fixed a typo in the URI class. $this-&gt;total_segment() should be
4090plural: $this-&gt;total_segments()</li>
4091<li>Fixed some typos in the default calendar template</li>
4092<li>Fixed some typos in the user guide</li>
4093</ul>
4094</div>
4095<div class="section" id="version-1-2">
4096<h2>Version 1.2<a class="headerlink" href="#version-1-2" title="Permalink to this headline"></a></h2>
4097<p>Release Date: March 21, 2006</p>
4098<ul class="simple">
4099<li>Redesigned some internal aspects of the framework to resolve scoping
4100problems that surfaced during the beta tests. The problem was most
4101notable when instantiating classes in your constructors, particularly
4102if those classes in turn did work in their constructors.</li>
4103<li>Added a global function named
4104<a class="reference internal" href="general/ancillary_classes.html"><span class="doc">get_instance()</span></a> allowing the main
4105CodeIgniter object to be accessible throughout your own classes.</li>
4106<li>Added new <a class="reference internal" href="helpers/file_helper.html"><span class="doc">File Helper</span></a>:
4107delete_files()</li>
4108<li>Added new <a class="reference internal" href="helpers/url_helper.html"><span class="doc">URL Helpers</span></a>: base_url(),
4109index_page()</li>
4110<li>Added the ability to create your own <a class="reference internal" href="general/creating_libraries.html"><span class="doc">core
4111libraries</span></a> and store them in your local
4112application directory.</li>
4113<li>Added an overwrite option to the <a class="reference internal" href="libraries/file_uploading.html"><span class="doc">Upload
4114class</span></a>, enabling files to be
4115overwritten rather than having the file name appended.</li>
4116<li>Added Javascript Calendar plugin.</li>
4117<li>Added search feature to user guide. Note: This is done using Google,
4118which at the time of this writing has not crawled all the pages of
4119the docs.</li>
4120<li>Updated the parser class so that it allows tag pars within other tag
4121pairs.</li>
4122<li>Fixed a bug in the DB “where” function.</li>
4123<li>Fixed a bug that was preventing custom config files to be
4124auto-loaded.</li>
4125<li>Fixed a bug in the mysql class bind feature that prevented question
4126marks in the replacement data.</li>
4127<li>Fixed some bugs in the xss_clean function</li>
4128</ul>
4129</div>
4130<div class="section" id="version-beta-1-1">
4131<h2>Version Beta 1.1<a class="headerlink" href="#version-beta-1-1" title="Permalink to this headline"></a></h2>
4132<p>Release Date: March 10, 2006</p>
4133<ul class="simple">
4134<li>Added a <a class="reference internal" href="libraries/calendar.html"><span class="doc">Calendaring class</span></a>.</li>
4135<li>Added support for running <a class="reference internal" href="general/managing_apps.html"><span class="doc">multiple
4136applications</span></a> that share a common CodeIgniter
4137backend.</li>
4138<li>Moved the “uri protocol” variable from the index.php file into the
4139config.php file</li>
4140<li>Fixed a problem that was preventing certain function calls from
4141working within constructors.</li>
4142<li>Fixed a problem that was preventing the $this-&gt;load-&gt;library function
4143from working in constructors.</li>
4144<li>Fixed a bug that occurred when the session class was loaded using the
4145auto-load routine.</li>
4146<li>Fixed a bug that can happen with PHP versions that do not support the
4147E_STRICT constant</li>
4148<li>Fixed a data type error in the form_radio function (form helper)</li>
4149<li>Fixed a bug that was preventing the xss_clean function from being
4150called from the validation class.</li>
4151<li>Fixed the cookie related config names, which were incorrectly
4152specified as $conf rather than $config</li>
4153<li>Fixed a pagination problem in the scaffolding.</li>
4154<li>Fixed a bug in the mysql class “where” function.</li>
4155<li>Fixed a regex problem in some code that trimmed duplicate slashes.</li>
4156<li>Fixed a bug in the br() function in the HTML helper</li>
4157<li>Fixed a syntax mistake in the form_dropdown function in the Form
4158Helper.</li>
4159<li>Removed the “style” attributes form the form helpers.</li>
4160<li>Updated the documentation. Added “next/previous” links to each page
4161and fixed various typos.</li>
4162</ul>
4163</div>
4164<div class="section" id="version-beta-1-0">
4165<h2>Version Beta 1.0<a class="headerlink" href="#version-beta-1-0" title="Permalink to this headline"></a></h2>
4166<p>Release Date: February 28, 2006</p>
4167<p>First publicly released version.</p>
4168</div>
4169</div>
4170
4171
4172 </div>
4173 <footer>
4174
4175 <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
4176
4177 <a href="license.html" class="btn btn-neutral float-right" title="The MIT License (MIT)">Next <span class="fa fa-arrow-circle-right"></span></a>
4178
4179
4180 <a href="helpers/xml_helper.html" class="btn btn-neutral" title="XML Helper"><span class="fa fa-arrow-circle-left"></span> Previous</a>
4181
4182 </div>
4183
4184
4185 <hr/>
4186
4187 <div role="contentinfo">
4188 <p>
4189 &copy; Copyright 2014 - 2019, British Columbia Institute of Technology.
4190 Last updated on Jan 16, 2019.
4191 </p>
4192 </div>
4193
4194 Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
4195
4196</footer>
4197 </div>
4198 </div>
4199
4200 </section>
4201
4202 </div>
4203
4204
4205
4206
4207
4208 <script type="text/javascript">
4209 var DOCUMENTATION_OPTIONS = {
4210 URL_ROOT:'./',
4211 VERSION:'3.1.10',
4212 COLLAPSE_INDEX:false,
4213 FILE_SUFFIX:'.html',
4214 HAS_SOURCE: false
4215 };
4216 </script>
4217 <script type="text/javascript" src="_static/jquery.js"></script>
4218 <script type="text/javascript" src="_static/underscore.js"></script>
4219 <script type="text/javascript" src="_static/doctools.js"></script>
4220
4221
4222
4223
4224
4225 <script type="text/javascript" src="_static/js/theme.js"></script>
4226
4227
4228
4229
4230 <script type="text/javascript">
4231 jQuery(function () {
4232 SphinxRtdTheme.StickyNav.enable();
4233 });
4234 </script>
4235
4236
4237</body>
4238</html>