romanzipp / Laravel-Queue-Monitor

Monitoring Laravel Jobs with your Database
https://packagist.org/packages/romanzipp/laravel-queue-monitor
MIT License
693 stars 91 forks source link

Error with mb_strcut on jobFinished with exception on the php version <= 7.2.x. #50

Closed dbg1995 closed 3 years ago

dbg1995 commented 3 years ago

After this error has been fixed, but this error still occurs on the php version <= 7.2.x. Please help me check http://sandbox.onlinephpfunctions.com/code/ba094d2d27a063560883793cfadf703fbbdb3c01

Run on PHP version: 7.2.31

<?php
var_dump(PHP_INT_MAX);
var_dump( mb_strcut("ss", 0, min(PHP_INT_MAX,4294967295)));

Output:

int(9223372036854775807)
bool(false)
romanzipp commented 3 years ago

Unfortunately I don't have any idea how to fixes this issue at the time. Removing the character limit eventually causes database exceptions