Fixes all leaks.

This commit is contained in:
Alliballibaba
2025-10-15 23:13:05 +02:00
parent 05c4776dd3
commit d56a14bd98
8 changed files with 81 additions and 43 deletions

View File

@@ -6,11 +6,7 @@ return function () {
$taskCount = $_GET['count'] ?? 0;
$workerName = $_GET['worker'] ?? '';
for ($i = 0; $i < $taskCount; $i++) {
$c = new DateTime();
$c->setTimestamp(time()+123);
$c->setTimezone(new Datetimezone('America/New_York'));
#$c = serialize($c);
frankenphp_dispatch_task($c, $workerName);
frankenphp_dispatch_task("task$i", $workerName);
}
echo "dispatched $taskCount tasks\n";
};