Skip to content

Commit e3821f9

Browse files
committed
Release v4.3.3
1 parent e91e4fa commit e3821f9

File tree

21 files changed

+127
-37
lines changed

21 files changed

+127
-37
lines changed

app/Common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
* loaded early on, and may also contain additional functions
1212
* that you'd like to use throughout your entire application
1313
*
14-
* @see: https://codeigniter4.github.io/CodeIgniter4/
14+
* @see: https://codeigniter.com/user_guide/extending/common.html
1515
*/

app/Config/Encryption.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,13 @@ class Encryption extends BaseConfig
8080
* Set to 'authentication' for CI3 Encryption compatibility.
8181
*/
8282
public string $authKeyInfo = '';
83+
84+
/**
85+
* Cipher to use.
86+
* This setting is only used by OpenSSLHandler.
87+
*
88+
* Set to 'AES-128-CBC' to decrypt encrypted data that encrypted
89+
* by CI3 Encryption default configuration.
90+
*/
91+
public string $cipher = 'AES-256-CTR';
8392
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"psr/log": "^1.1"
1414
},
1515
"require-dev": {
16-
"kint-php/kint": "^5.0.3",
16+
"kint-php/kint": "^5.0.4",
1717
"codeigniter/coding-standard": "^1.5",
1818
"fakerphp/faker": "^1.9",
1919
"friendsofphp/php-cs-fixer": "3.13.0",

system/API/ResponseTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ protected function respond($data = null, ?int $status = null, string $message =
9292
if ($data === null && $status === null) {
9393
$status = 404;
9494
$output = null;
95+
$this->format($data);
9596
} elseif ($data === null && is_numeric($status)) {
9697
$output = null;
98+
$this->format($data);
9799
} else {
98100
$status = empty($status) ? 200 : $status;
99101
$output = $this->format($data);

system/Cache/Handlers/FileHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ protected function getDirFileInfo(string $sourceDir, bool $topLevelOnly = true,
346346
while (false !== ($file = readdir($fp))) {
347347
if (is_dir($sourceDir . $file) && $file[0] !== '.' && $topLevelOnly === false) {
348348
$this->getDirFileInfo($sourceDir . $file . DIRECTORY_SEPARATOR, $topLevelOnly, true);
349-
} elseif ($file[0] !== '.') {
349+
} elseif (! is_dir($sourceDir . $file) && $file[0] !== '.') {
350350
$_filedata[$file] = $this->getFileInfo($sourceDir . $file);
351351
$_filedata[$file]['relative_path'] = $relativePath;
352352
}

system/Cache/Handlers/RedisHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,11 @@ public function getCacheInfo()
233233
*/
234234
public function getMetaData(string $key)
235235
{
236-
$key = static::validateKey($key, $this->prefix);
237236
$value = $this->get($key);
238237

239238
if ($value !== null) {
240239
$time = Time::now()->getTimestamp();
241-
$ttl = $this->redis->ttl($key);
240+
$ttl = $this->redis->ttl(static::validateKey($key, $this->prefix));
242241

243242
return [
244243
'expire' => $ttl > 0 ? $time + $ttl : null,

system/CodeIgniter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class CodeIgniter
4747
/**
4848
* The current version of CodeIgniter Framework
4949
*/
50-
public const CI_VERSION = '4.3.2';
50+
public const CI_VERSION = '4.3.3';
5151

5252
/**
5353
* App startup time.

system/Commands/Database/MigrateRollback.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class MigrateRollback extends BaseCommand
5757
* @var array
5858
*/
5959
protected $options = [
60-
'-b' => 'Specify a batch to roll back to; e.g. "3" to return to batch #3 or "-2" to roll back twice',
60+
'-b' => 'Specify a batch to roll back to; e.g. "3" to return to batch #3',
6161
'-g' => 'Set database group',
6262
'-f' => 'Force command - this option allows you to bypass the confirmation question when running this command in a production environment',
6363
];

system/Commands/Utilities/Routes/ControllerFinder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function find(): array
4444
$nsArray = explode('\\', trim($this->namespace, '\\'));
4545
$count = count($nsArray);
4646
$ns = '';
47+
$files = [];
4748

4849
for ($i = 0; $i < $count; $i++) {
4950
$ns .= '\\' . array_shift($nsArray);

system/Database/BaseBuilder.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,9 +2021,9 @@ private function setAlias(string $alias): BaseBuilder
20212021
/**
20222022
* Sets update fields for upsert, update
20232023
*
2024-
* @param string|string[] $set
2025-
* @param bool $addToDefault adds update fields to the default ones
2026-
* @param array|null $ignore ignores items in set
2024+
* @param RawSql[]|string|string[] $set
2025+
* @param bool $addToDefault adds update fields to the default ones
2026+
* @param array|null $ignore ignores items in set
20272027
*
20282028
* @return $this
20292029
*/
@@ -3082,6 +3082,10 @@ protected function compileWhereHaving(string $qbKey): string
30823082
continue;
30833083
}
30843084

3085+
if ($qbkey instanceof RawSql) {
3086+
continue;
3087+
}
3088+
30853089
if ($qbkey['condition'] instanceof RawSql) {
30863090
$qbkey = $qbkey['condition'];
30873091

0 commit comments

Comments
 (0)