Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T13297 datetime fraction #14654

Merged
merged 31 commits into from
Dec 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
fe2962c
Corrected shield link to issues [skip ci]
ekmst Dec 23, 2019
2a1d3fa
update resources v4
Arhell Dec 23, 2019
ec312ef
[#13856] - Added link tests
niden Dec 23, 2019
364be7a
[#13856] - Added exceptions for JWT
niden Dec 23, 2019
a633323
[#13856] -
niden Dec 23, 2019
76b7eea
[#13856] - Added Signers - None/HMAC
niden Dec 23, 2019
ba601e7
[#13856] - Added validator class
niden Dec 23, 2019
3be7f79
[#13856] - Added Builder class
niden Dec 23, 2019
2bbcf9e
[#13856] - Added Token and Parser
niden Dec 23, 2019
54dcc35
[#13856] - Minor corrections
niden Dec 23, 2019
caaeb4e
[#13856] - Corrected Signature class
niden Dec 23, 2019
a432f07
[#13856] - Added Base64 helper and minor correction to audience (buil…
niden Dec 23, 2019
1df3e05
[#13856] - Added Base64 helper
niden Dec 23, 2019
e62c1f3
[#13856] - Added tests for JWT
niden Dec 23, 2019
fc232ca
[#13856] - PHPCS
niden Dec 23, 2019
5148b4b
[#13856] - Removed tests out of place
niden Dec 23, 2019
74e41e7
[#13856] - Correcting tests
niden Dec 23, 2019
ad79f2b
[#13856] - Corrected validating signature method
niden Dec 23, 2019
d34c820
[#13856] - PHPCS
niden Dec 23, 2019
5963d25
[#13856] - Minor changes (restructured getters) based on review
niden Dec 23, 2019
6e96713
[#13856] - Corrected variable name
niden Dec 23, 2019
c1648ce
[#13856] - Another correction
niden Dec 23, 2019
b88345f
[#13297] - Added new migration and table
niden Dec 24, 2019
6fafb34
[#13297] - Added test with fractal fields
niden Dec 24, 2019
a416e6e
[#13297] - Added size to datetime/time and timestamp fields
niden Dec 24, 2019
665a620
[#13297] - Corrected the logic for the dialect
niden Dec 24, 2019
5ba0a7e
[#13297] - Updated changelog
niden Dec 24, 2019
6833df0
[#13297] - Added new section for 4.1
niden Dec 24, 2019
b6018c4
[#13297] - Updated the changelog
niden Dec 24, 2019
6179295
[#13297] - Changelog update again
niden Dec 24, 2019
b64265f
[#13297] - Updated changelog again
niden Dec 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG-4.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [4.1.0](https://github.com/phalcon/cphalcon/releases/tag/v4.1.0) (xxx-xx-xx)
## Added
- Added JWT (JSON Web Tokens) support under `Phalcon\Http\JWT`. Offers support for:
- Token
- Parser
- Builder
- Validator
- Signers (None, HMAC)
- Base64 encode/decodeUrl helper class
[#13856](https://github.com/phalcon/cphalcon/issues/13856)

## Changed

## Fixed
- Fixed `Phalcon\Db\Dialect\Mysql::getColumnDefinition` to recognize `size` for `DATETIME`, `TIME` and `TIMESTAMP` columns [#13297](https://github.com/phalcon/cphalcon/issues/13297)

1,632 changes: 9 additions & 1,623 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

[![4.0 Issues](https://img.shields.io/github/issues-raw/phalcon/cphalcon/4.0?color=orange&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ld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ksQgIhE5CCYmKC4NrTExlgqhbLULDJ1pZWmhnbYz4wBe9SUv3+W9vOR9DzXU1gEmSbh67zpYqspoVZLoJABeAiBBAgn2IIkCiJIIlKyb8y7DpcZOIBIpsSce3Wl9OzgG/s2gfkdM3JQkNCbrNfAfEPqe1oAqXTngcfx88bn/1VEmFFyLkamzctaknFj+T6OhrZHJv3w6TBu1F75OfHwzZO1X2O3TsSjwtZRCOSVruhAgINABkcw9YM+X79tpKVGT21beTpv0FDv3y+x656CWF5cgS6/JMOblnttN8vaYJKwIsoHb+A21+aWAuzraoMJc5Eqy0QrBkFaibSyWe0EQ+OYGx/gUaHValDBpDCNzM8POECuuMwHorDwJiBEZ4BM8RDaTeU7nzHBY2j0VouLgda9AaNYL8dUNaO8949/JwSVcNBLjI3EYuHILcF1pHTRVN4GB1m67JXZKBOl4UbbRaCksRqYaCyIrD0GGLotuMJfVL6z7TDwA01PVvIkZhgGO5cA974bx9xObId3u8w2eP+LfYqu0RDpWCwrkm18Jp0tkQndY3xJkgue7alofEySB4fXoKDzqe4jXFj1qTbH5NkK4u7m4WlmYaUAL4/Znk31DNT8mp08UENpjgRHb3b1WSZGmQJFGglKvxpaOlhvupzZrc1ktcLqN7Q+2T4LXv5CuUinzF2fdq+sPngjsWnBw31hvvQjyngDotOSS3eniHR7B0NuNbb45QsSSFacghSlyjWNY4JigHKLa/yPJBzmIyAQVJUUDvnljgfG+Vq8vo7ZUFlpBX4t5QlZMYR+SiIPJSAf7JXfCEQj7w0BSCsgQVV6WW72jlqiCvJwCPO1azI7x8SVamQnEX4Moivv3jwADAA9sObdCbqMjAAAAAElFTkSuQmCC)](https://github.com/phalcon/cphalcon/issues?q=is%3Aissue+is%3Aopen+label%3A4.0)
[![4.0 Pull Requests](https://img.shields.io/github/issues-pr/phalcon/cphalcon?color=brightgreen&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAGXRFWHRTb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/pulls?q=is%3Apr+is%3Aopen+label%3A4.0)
[![4.1 Issues](https://img.shields.io/github/issues-raw/phalcon/cphalcon/4.1?color=yellow&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjc3RTA0NTM1MEE1ODExRUFBNENEOUNDREQ1RDJGQ0FBIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjc3RTA0NTM2MEE1ODExRUFBNENEOUNDREQ1RDJGQ0FBIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ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UDvnljgfG+Vq8vo7ZUFlpBX4t5QlZMYR+SiIPJSAf7JXfCEQj7w0BSCsgQVV6WW72jlqiCvJwCPO1azI7x8SVamQnEX4Moivv3jwADAA9sObdCbqMjAAAAAElFTkSuQmCC)](https://github.com/phalcon/cphalcon/issues?q=is%3Aissue+is%3Aopen+label%3A4.0)
[![4.1 Issues](https://img.shields.io/github/issues-raw/phalcon/cphalcon/4.1?color=yellow&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjc3RTA0NTM1MEE1OD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YaUAL4/Znk31DNT8mp08UENpjgRHb3b1WSZGmQJFGglKvxpaOlhvupzZrc1ktcLqN7Q+2T4LXv5CuUinzF2fdq+sPngjsWnBw31hvvQjyngDotOSS3eniHR7B0NuNbb45QsSSFacghSlyjWNY4JigHKLa/yPJBzmIyAQVJUUDvnljgfG+Vq8vo7ZUFlpBX4t5QlZMYR+SiIPJSAf7JXfCEQj7w0BSCsgQVV6WW72jlqiCvJwCPO1azI7x8SVamQnEX4Moivv3jwADAA9sObdCbqMjAAAAAElFTkSuQmCC)](https://github.com/phalcon/cphalcon/issues?q=is%3Aissue+is%3Aopen+label%3A4.1)


Phalcon is an open source web framework delivered as a C extension for the PHP language providing high performance and lower resource consumption.
Expand Down
12 changes: 12 additions & 0 deletions phalcon/Db/Dialect/Mysql.zep
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,10 @@ class Mysql extends Dialect
let columnSql .= "DATETIME";
}

if column->getSize() > 0 {
let columnSql .= this->getColumnSize(column);
}

break;

case Column::TYPE_DECIMAL:
Expand Down Expand Up @@ -556,13 +560,21 @@ class Mysql extends Dialect
let columnSql .= "TIME";
}

if column->getSize() > 0 {
let columnSql .= this->getColumnSize(column);
}

break;

case Column::TYPE_TIMESTAMP:
if empty columnSql {
let columnSql .= "TIMESTAMP";
}

if column->getSize() > 0 {
let columnSql .= this->getColumnSize(column);
}

break;

case Column::TYPE_TINYBLOB:
Expand Down
56 changes: 56 additions & 0 deletions phalcon/Helper/Base64.zep
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@

/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <[email protected]>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/


namespace Phalcon\Helper;

/**
* Phalcon\Helper\Base64
*
* This class offers quick string base64 functions
*/
class Base64
{
/**
* Encode a json string in Base64 Url format.
*
* @param string $input
*
* @return string
*/
final public static function encodeUrl(string! input) -> string
{
return str_replace("=", "", strtr(base64_encode($input), "+/", "-_"));
}

/**
* Decode a Base64 Url string to a json string
*
* @param string $input
*
* @return string
*/
final public static function decodeUrl(string! input) -> string
{
var data, remainder;

let remainder = strlen(input) % 4;
if remainder {
let input .= str_repeat("=", 4 - remainder);
}

let data = base64_decode(strtr(input, "-_", "+/"));
if (false === data) {
let data = "";
}

return data;
}
}
Loading