Skip to content

Commit

Permalink
Merge branch '2.6' into 3.0
Browse files Browse the repository at this point in the history
Conflicts:
	.travis.yml
	README.md
	app/webroot/index.php
	app/webroot/test.php
	lib/Cake/Console/Command/SchemaShell.php
	lib/Cake/Console/Command/Task/ControllerTask.php
	lib/Cake/Console/Templates/skel/webroot/index.php
	lib/Cake/Console/Templates/skel/webroot/test.php
	lib/Cake/Controller/Component/CookieComponent.php
	lib/Cake/Log/CakeLog.php
	lib/Cake/Model/CakeSchema.php
	lib/Cake/Model/Datasource/CakeSession.php
	lib/Cake/Model/Datasource/DboSource.php
	lib/Cake/Model/Model.php
	lib/Cake/Test/Case/Model/CakeSchemaTest.php
	lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php
	lib/Cake/Test/Case/Model/ModelWriteTest.php
	lib/Cake/View/Helper/CacheHelper.php
	lib/Cake/View/Helper/TimeHelper.php
	lib/Cake/basics.php
	src/Network/Response.php
	src/Validation/Validation.php
  • Loading branch information
ADmad committed Aug 15, 2014
2 parents 60adfc1 + 9d53a1e commit 89544d6
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 13 deletions.
17 changes: 11 additions & 6 deletions README.md
@@ -1,6 +1,9 @@
# CakePHP framework

[![CakePHP](http://cakephp.org/img/cake-logo.png)](http://www.cakephp.org)
[![Bake Status](https://secure.travis-ci.org/cakephp/cakephp.png?branch=3.0)](http://travis-ci.org/cakephp/cakephp)
[![Latest Stable Version](https://poser.pugx.org/cakephp/cakephp/v/stable.svg)](https://packagist.org/packages/cakephp/cakephp)
[![License](https://poser.pugx.org/cakephp/cakephp/license.svg)](https://packagist.org/packages/cakephp/cakephp)

CakePHP is a rapid development framework for PHP which uses commonly known
design patterns like Active Record, Association Data Mapping, Front Controller
Expand Down Expand Up @@ -37,8 +40,8 @@ tests for cakephp by doing the following:

See CONTRIBUTING.md for more information.

Some Handy Links
----------------

## Some Handy Links

[CakePHP](http://www.cakephp.org) - The rapid development PHP framework

Expand All @@ -58,8 +61,8 @@ Some Handy Links

[Cake Software Foundation](http://cakefoundation.org) - Promoting development related to CakePHP

Get Support!
------------

## Get Support!

[#cakephp](http://webchat.freenode.net/?channels=#cakephp) on irc.freenode.net - Come chat with us, we have cake

Expand All @@ -69,6 +72,8 @@ Get Support!

[Roadmaps](https://github.com/cakephp/cakephp/wiki#roadmaps) - Want to contribute? Get involved!

[![Bake Status](https://secure.travis-ci.org/cakephp/cakephp.png?branch=3.0)](http://travis-ci.org/cakephp/cakephp)
## Contributing

[CONTRIBUTING.md](CONTRIBUTING.md) - Quick pointers for contributing to the CakePHP project

![Cake Power](https://raw.github.com/cakephp/cakephp/master/lib/Cake/Console/Templates/skel/webroot/img/cake.power.gif)
[CookBook "Contributing" Section (2.x)](http://book.cakephp.org/2.0/en/contributing.html) [(3.0)](http://book.cakephp.org/3.0/en/contributing.html) - Version-specific details about contributing to the project
9 changes: 8 additions & 1 deletion src/Console/Command/Task/ExtractTask.php
Expand Up @@ -359,6 +359,13 @@ protected function _extractTokens() {
$this->_parse('__d', array('domain', 'singular'));
$this->_parse('__dn', array('domain', 'singular', 'plural'));
$this->_parse('__x', array('context', 'singular'));
$this->_parse('__xn', array('context', 'singular', 'plural'));
$this->_parse('__dx', array('domain', 'context', 'singular'));
$this->_parse('__dxc', array('domain', 'context', 'singular', 'category'));
$this->_parse('__dxn', array('domain', 'context', 'singular', 'plural'));
$this->_parse('__dxcn', array('domain', 'context', 'singular', 'plural', 'count', 'category'));
$this->_parse('__xc', array('context', 'singular', 'category'));

}
}

Expand All @@ -382,7 +389,7 @@ protected function _parse($functionName, $map) {
}

list($type, $string, $line) = $countToken;
if (($type == T_STRING) && ($string == $functionName) && ($firstParenthesis === '(')) {
if (($type == T_STRING) && ($string === $functionName) && ($firstParenthesis === '(')) {
$position = $count;
$depth = 0;

Expand Down
1 change: 1 addition & 0 deletions src/Network/Response.php
Expand Up @@ -601,6 +601,7 @@ public function location($url = null) {
return isset($headers['Location']) ? $headers['Location'] : null;
}
$this->header('Location', $url);
return null;
}

/**
Expand Down
10 changes: 5 additions & 5 deletions src/Utility/String.php
Expand Up @@ -131,21 +131,21 @@ public static function tokenize($data, $separator = ',', $leftBound = '(', $righ
}
if ($tmpOffset !== -1) {
$buffer .= substr($data, $offset, ($tmpOffset - $offset));
if (!$depth && $data{$tmpOffset} == $separator) {
if (!$depth && $data{$tmpOffset} === $separator) {
$results[] = $buffer;
$buffer = '';
} else {
$buffer .= $data{$tmpOffset};
}
if ($leftBound != $rightBound) {
if ($data{$tmpOffset} == $leftBound) {
if ($leftBound !== $rightBound) {
if ($data{$tmpOffset} === $leftBound) {
$depth++;
}
if ($data{$tmpOffset} == $rightBound) {
if ($data{$tmpOffset} === $rightBound) {
$depth--;
}
} else {
if ($data{$tmpOffset} == $leftBound) {
if ($data{$tmpOffset} === $leftBound) {
if (!$open) {
$depth++;
$open = true;
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Network/Email/EmailTest.php
Expand Up @@ -2171,7 +2171,7 @@ protected function _checkContentTransferEncoding($message, $charset) {
$result['html'] = false;
$length = count($message);
for ($i = 0; $i < $length; ++$i) {
if ($message[$i] == $boundary) {
if ($message[$i] === $boundary) {
$flag = false;
$type = '';
while (!preg_match('/^$/', $message[$i])) {
Expand Down

0 comments on commit 89544d6

Please sign in to comment.