mirror of
https://github.com/dunglas/frankenphp
synced 2024-10-16 17:14:59 +00:00
7d81fa51fe
* refactor: better memory management * wip * tmp * introduce a go-like api * upgraded to PHP 8.2 * Fix thread safety issues * fix tests * wip * refactor worker * worker prototype * fix populate env * session * improve tests * fix Caddy tests * refactor
16 lines
259 B
PHP
16 lines
259 B
PHP
<?php
|
|
|
|
require_once __DIR__.'/_executor.php';
|
|
|
|
return function () {
|
|
session_start();
|
|
|
|
if (isset($_SESSION['count'])) {
|
|
$_SESSION['count']++;
|
|
} else {
|
|
$_SESSION['count'] = 0;
|
|
}
|
|
|
|
echo 'Count: '.$_SESSION['count'].PHP_EOL;
|
|
};
|