mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
Fixes all leaks.
This commit is contained in:
6
testdata/tasks/task-dispatcher-string.php
vendored
6
testdata/tasks/task-dispatcher-string.php
vendored
@@ -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";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user