Merge branch '2.6' into 2.7

This commit is contained in:
mark_story 2015-07-11 21:25:26 -04:00
commit 47378427e3
10 changed files with 15 additions and 15 deletions

View file

@ -91,7 +91,7 @@ class ServerShell extends AppShell {
$this->_documentRoot = $this->params['document_root']; $this->_documentRoot = $this->params['document_root'];
} }
// for windows // for Windows
if (substr($this->_documentRoot, -1, 1) === DIRECTORY_SEPARATOR) { if (substr($this->_documentRoot, -1, 1) === DIRECTORY_SEPARATOR) {
$this->_documentRoot = substr($this->_documentRoot, 0, strlen($this->_documentRoot) - 1); $this->_documentRoot = substr($this->_documentRoot, 0, strlen($this->_documentRoot) - 1);
} }

View file

@ -154,7 +154,7 @@ class ConsoleOutput {
* Construct the output object. * Construct the output object.
* *
* Checks for a pretty console environment. Ansicon allows pretty consoles * Checks for a pretty console environment. Ansicon allows pretty consoles
* on windows, and is supported. * on Windows, and is supported.
* *
* @param string $stream The identifier of the stream to write output to. * @param string $stream The identifier of the stream to write output to.
*/ */

View file

@ -403,7 +403,7 @@ class DboSource extends DataSource {
*/ */
public function rawQuery($sql, $params = array()) { public function rawQuery($sql, $params = array()) {
$this->took = $this->numRows = false; $this->took = $this->numRows = false;
return $this->execute($sql, $params); return $this->execute($sql, array(), $params);
} }
/** /**

View file

@ -668,7 +668,7 @@ class ShellTest extends CakeTestCase {
* @return void * @return void
*/ */
public function testCreateFileNoPermissions() { public function testCreateFileNoPermissions() {
$this->skipIf(DIRECTORY_SEPARATOR === '\\', 'Cant perform operations using permissions on windows.'); $this->skipIf(DIRECTORY_SEPARATOR === '\\', 'Cant perform operations using permissions on Windows.');
$path = TMP . 'shell_test'; $path = TMP . 'shell_test';
$file = $path . DS . 'no_perms'; $file = $path . DS . 'no_perms';

View file

@ -1075,12 +1075,12 @@ class CakeTimeTest extends CakeTestCase {
} }
/** /**
* test convert %e on windows. * test convert %e on Windows.
* *
* @return void * @return void
*/ */
public function testConvertPercentE() { public function testConvertPercentE() {
$this->skipIf(DIRECTORY_SEPARATOR !== '\\', 'Cannot run windows tests on non-windows OS.'); $this->skipIf(DIRECTORY_SEPARATOR !== '\\', 'Cannot run Windows tests on non-Windows OS.');
$time = strtotime('Thu Jan 14 11:43:39 2010'); $time = strtotime('Thu Jan 14 11:43:39 2010');
$result = $this->Time->convertSpecifiers('%e', $time); $result = $this->Time->convertSpecifiers('%e', $time);

View file

@ -192,7 +192,7 @@ class FolderTest extends CakeTestCase {
* @return void * @return void
*/ */
public function testRecursiveCreateFailure() { public function testRecursiveCreateFailure() {
$this->skipIf(DIRECTORY_SEPARATOR === '\\', 'Cant perform operations using permissions on windows.'); $this->skipIf(DIRECTORY_SEPARATOR === '\\', 'Cant perform operations using permissions on Windows.');
$path = TMP . 'tests' . DS . 'one'; $path = TMP . 'tests' . DS . 'one';
mkdir($path); mkdir($path);

View file

@ -123,12 +123,12 @@ class CakeTime {
/** /**
* Converts a string representing the format for the function strftime and returns a * Converts a string representing the format for the function strftime and returns a
* windows safe and i18n aware format. * Windows safe and i18n aware format.
* *
* @param string $format Format with specifiers for strftime function. * @param string $format Format with specifiers for strftime function.
* Accepts the special specifier %S which mimics the modifier S for date() * Accepts the special specifier %S which mimics the modifier S for date()
* @param string $time UNIX timestamp * @param string $time UNIX timestamp
* @return string windows safe and date() function compatible format for strftime * @return string Windows safe and date() function compatible format for strftime
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#TimeHelper::convertSpecifiers * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#TimeHelper::convertSpecifiers
*/ */
public static function convertSpecifiers($format, $time = null) { public static function convertSpecifiers($format, $time = null) {
@ -141,7 +141,7 @@ class CakeTime {
/** /**
* Auxiliary function to translate a matched specifier element from a regular expression into * Auxiliary function to translate a matched specifier element from a regular expression into
* a windows safe and i18n aware specifier * a Windows safe and i18n aware specifier
* *
* @param array $specifier match from regular expression * @param array $specifier match from regular expression
* @return string converted element * @return string converted element

View file

@ -64,7 +64,7 @@ class Folder {
public $sort = false; public $sort = false;
/** /**
* Mode to be used on create. Does nothing on windows platforms. * Mode to be used on create. Does nothing on Windows platforms.
* *
* @var int * @var int
* http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#Folder::$mode * http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#Folder::$mode
@ -263,7 +263,7 @@ class Folder {
* Returns true if given $path is a Windows path. * Returns true if given $path is a Windows path.
* *
* @param string $path Path to check * @param string $path Path to check
* @return bool true if windows path, false otherwise * @return bool true if Windows path, false otherwise
* @link http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#Folder::isWindowsPath * @link http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#Folder::isWindowsPath
*/ */
public static function isWindowsPath($path) { public static function isWindowsPath($path) {

View file

@ -468,7 +468,7 @@ class Validation {
* Validates for an email address. * Validates for an email address.
* *
* Only uses getmxrr() checking for deep validation if PHP 5.3.0+ is used, or * Only uses getmxrr() checking for deep validation if PHP 5.3.0+ is used, or
* any PHP version on a non-windows distribution * any PHP version on a non-Windows distribution
* *
* @param string $check Value to check * @param string $check Value to check
* @param bool $deep Perform a deeper validation (if true), by also checking availability of host * @param bool $deep Perform a deeper validation (if true), by also checking availability of host

View file

@ -126,12 +126,12 @@ class TimeHelper extends AppHelper {
/** /**
* Converts a string representing the format for the function strftime and returns a * Converts a string representing the format for the function strftime and returns a
* windows safe and i18n aware format. * Windows safe and i18n aware format.
* *
* @param string $format Format with specifiers for strftime function. * @param string $format Format with specifiers for strftime function.
* Accepts the special specifier %S which mimics the modifier S for date() * Accepts the special specifier %S which mimics the modifier S for date()
* @param string $time UNIX timestamp * @param string $time UNIX timestamp
* @return string windows safe and date() function compatible format for strftime * @return string Windows safe and date() function compatible format for strftime
* @see CakeTime::convertSpecifiers() * @see CakeTime::convertSpecifiers()
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#formatting * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#formatting
*/ */