diff --git a/artisan b/artisan index 6034de07..66a0cc09 100644 --- a/artisan +++ b/artisan @@ -3,7 +3,7 @@ * Laravel - A PHP Framework For Web Artisans * * @package Laravel - * @version 3.1.3 + * @version 3.1.4 * @author Taylor Otwell * @link http://laravel.com */ diff --git a/changes.md b/changes.md index 351cd89e..5a4ae496 100644 --- a/changes.md +++ b/changes.md @@ -4,6 +4,8 @@ ## Contents - [Laravel 3.2](#3.2) - [Upgrading From 3.1](#upgrade-3.2) +- [Laravel 3.1.4](#3.1.4) +- [Upgrading From 3.1.3](#upgrade-3.1.4) - [Laravel 3.1.3](#3.1.3) - [Upgrading From 3.1.2](#uprade-3.1.3) - [Laravel 3.1.2](#3.1.2) @@ -13,7 +15,6 @@ ## Contents - [Laravel 3.1](#3.1) - [Upgrading From 3.0](#upgrade-3.1) -<<<<<<< HEAD ## Laravel 3.2 @@ -29,6 +30,17 @@ ## Upgrading From 3.1 - Replace the **laravel** folder. - Add new **vendors** folder. + +## Laravel 3.1.4 + +- Fixes Response header casing bug. +- Fixes SQL "where in" (...) short-cut bug. + + +## Upgrading From 3.1.3 + +- Replace the **laravel** folder. + ## Laravel 3.1.3 diff --git a/laravel/database/query/grammars/grammar.php b/laravel/database/query/grammars/grammar.php index b0c06824..50d2b207 100644 --- a/laravel/database/query/grammars/grammar.php +++ b/laravel/database/query/grammars/grammar.php @@ -397,22 +397,24 @@ public function delete(Query $query) * @param array $bindings * @return string */ - public function shortcut($sql, $bindings) + public function shortcut($sql, &$bindings) { // Laravel provides an easy short-cut notation for writing raw WHERE IN // statements. If (...) is in the query, it will be replaced with the - // correct number of parameters based on the bindings. + // correct number of parameters based on the query bindings. if (strpos($sql, '(...)') !== false) { for ($i = 0; $i < count($bindings); $i++) { - // If the binding is an array, we can just assume it's used to - // fill a "where in" condition, so we will just replace the - // next place-holder in the query with the constraint. + // If the binding is an array, we can just assume it's used to fill a + // where in condition, so we'll just replace the next place-holder + // in the query with the constraint and splice the bindings. if (is_array($bindings[$i])) { $parameters = $this->parameterize($bindings[$i]); + array_splice($bindings, $i, 1, $bindings[$i]); + $sql = preg_replace('~\(\.\.\.\)~', "({$parameters})", $sql, 1); } } diff --git a/laravel/response.php b/laravel/response.php index da3ba84f..c9841403 100644 --- a/laravel/response.php +++ b/laravel/response.php @@ -89,7 +89,7 @@ public function __construct($content, $status = 200, $headers = array()) { $this->status = $status; $this->content = $content; - $this->headers = $headers; + $this->headers = array_change_key_case($headers); } /** diff --git a/paths.php b/paths.php index 729a2697..152a4f79 100644 --- a/paths.php +++ b/paths.php @@ -3,7 +3,7 @@ * Laravel - A PHP Framework For Web Artisans * * @package Laravel - * @version 3.1.3 + * @version 3.1.4 * @author Taylor Otwell * @link http://laravel.com */ diff --git a/public/index.php b/public/index.php index 9f78eb6e..561d13a3 100644 --- a/public/index.php +++ b/public/index.php @@ -3,7 +3,7 @@ * Laravel - A PHP Framework For Web Artisans * * @package Laravel - * @version 3.1.3 + * @version 3.1.4 * @author Taylor Otwell * @link http://laravel.com */