Merge remote-tracking branch 'upstream/develop' into unit-tests
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 976a5a5..027ed20 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -1111,7 +1111,7 @@
}
else
{
- $CI->$classvar = new $name;
+ $CI->$classvar = new $name();
}
}
diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst
index b4bf0cf..4703190 100644
--- a/user_guide_src/source/changelog.rst
+++ b/user_guide_src/source/changelog.rst
@@ -172,6 +172,7 @@
- Fixed a bug (#501) - set_rules() to check if the request method is not 'POST' before aborting, instead of depending on count($_POST) in the :doc:`Form Validation Library <libraries/form_validation>`.
- Fixed a bug (#940) - csrf_verify() 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.
- Fixed a bug in PostgreSQL's escape_str() where it didn't properly escape LIKE wild characters.
+- Fixed a bug in the library loader where some PHP versions wouldn't execute the class constructor.
Version 2.1.1
=============