Skip to content

Commit 56e8acd

Browse files
committed
Release 3.7.0
1 parent f19f8a8 commit 56e8acd

12 files changed

Lines changed: 906 additions & 610 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@ history, the old changelog, and committed file changes. Older Zemit-era entries
1515
are summarized where the commit history is too granular to be useful as
1616
release notes.
1717

18+
## 3.7.0 - 2026-06-23
19+
20+
### Changed
21+
22+
- Adapted PhalconKit debug output to Phalcon 5.16's renderer pipeline with a
23+
PhalconKit-owned inline renderer, embedded base64 logo, and wrapped table
24+
styling, removing remote debug CSS, JavaScript, and logo asset loading from
25+
exception pages.
26+
- Refined PhalconKit debug backtrace frames so file and line metadata stay
27+
visible while source context expands separately, with focused-line and
28+
full-file source controls.
29+
1830
## 3.6.0 - 2026-06-23
1931

2032
### Changed

public/debug-test.php

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* This file is part of the Phalcon Kit.
7+
*
8+
* (c) Phalcon Kit Team
9+
*
10+
* For the full copyright and license information, please view the LICENSE.txt
11+
* file that was distributed with this source code.
12+
*/
13+
14+
use PhalconKit\Support\Debug;
15+
16+
require dirname(__DIR__) . '/vendor/autoload.php';
17+
18+
$remoteAddr = $_SERVER['REMOTE_ADDR'] ?? '127.0.0.1';
19+
20+
if (!in_array($remoteAddr, ['127.0.0.1', '::1'], true)) {
21+
http_response_code(403);
22+
header('Content-Type: text/plain; charset=UTF-8');
23+
echo "This debug test page is available from localhost only.\n";
24+
25+
return;
26+
}
27+
28+
function phalconKitDebugTestLeaf(): never
29+
{
30+
throw new InvalidArgumentException('Synthetic previous exception for the PhalconKit debug page.');
31+
}
32+
33+
function phalconKitDebugTestEntry(): never
34+
{
35+
try {
36+
phalconKitDebugTestLeaf();
37+
}
38+
catch (Throwable $throwable) {
39+
throw new RuntimeException('Synthetic PhalconKit debug output test exception.', 0, $throwable);
40+
}
41+
}
42+
43+
$debug = new Debug();
44+
$debug
45+
->setUri('./')
46+
->setShowFileFragment(true)
47+
->debugVar([
48+
'purpose' => 'Manual PhalconKit debug renderer smoke test',
49+
'phalcon' => phpversion('phalcon') ?: 'not installed',
50+
'php' => PHP_VERSION,
51+
'request' => [
52+
'uri' => $_SERVER['REQUEST_URI'] ?? null,
53+
'remoteAddr' => $remoteAddr,
54+
],
55+
]);
56+
57+
try {
58+
phalconKitDebugTestEntry();
59+
}
60+
catch (Throwable $throwable) {
61+
http_response_code(500);
62+
echo $debug->renderHtml($throwable);
63+
}

0 commit comments

Comments
 (0)