Length Of tempnam() Has Been Raised

The temporary name, provided by tempname() used to be 6 characters, added to the provided prefix. It is now 19 characters, so 13 more characters.

There might be impact on database, if this is stored.

PHP code

<?php

print strlen(tempnam(/tmp, FOO));
// PHP 8.4+ : /tmp/FOO3u8m0hgq3afe2eSwgTld
// PHP 8.3- : /tmp/FOO3u8m0h

?>

Before

22

After

35

PHP version change

This behavior changed in 8.4