#106107Unserialize warning in VariableFrontend in PHP 8.3
Description
Hi.
The TYPO3 Crawler uses Symfony Commmands. I have two commands
$ bin/typo3 crawler:buildQeuue $ bin/typo3 crawler:processQueue
When I run the `crawler:processQueue` command in PHP 8.2 all good, but with PHP 8.3 I get the following warnings.
tomas@crawler-devbox-web:/var/www/html$ bin/typo3 crawler:processQueue PHP Warning: unserialize(): Error at offset 747 of 17090 bytes in /var/www/html/vendor/typo3/cms-core/Classes/Cache/Frontend/VariableFrontend.php on line 85 PHP Warning: unserialize(): Error at offset 747 of 17090 bytes in /var/www/html/vendor/typo3/cms-core/Classes/Cache/Frontend/VariableFrontend.php on line 85 PHP Warning: unserialize(): Error at offset 747 of 17090 bytes in /var/www/html/vendor/typo3/cms-core/Classes/Cache/Frontend/VariableFrontend.php on line 85 PHP Warning: unserialize(): Error at offset 747 of 17090 bytes in /var/www/html/vendor/typo3/cms-core/Classes/Cache/Frontend/VariableFrontend.php on line 85
This is in the last line of this function.
public function get($entryIdentifier)
{
if (!$this->isValidEntryIdentifier($entryIdentifier)) {
throw new \InvalidArgumentException(
'"' . $entryIdentifier . '" is not a valid cache entry identifier.',
1233058294
);
}
$rawResult = $this->backend->get($entryIdentifier);
if ($rawResult === false) {
return false;
}
return $this->backend instanceof TransientBackendInterface ? $rawResult : unserialize($rawResult);
}
I saw it as I was trying to reproduce an error in the TYPO3 Crawler. https://github.com/tomasnorre/crawler/issues/1123, which looks like it’s related, it’s also an `unserialize(): Error at offset`-error, which I haven’t been able to trace back yet.
But looks like it’s related to the PHP version.
Let me know if I can assist in any way.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.