History log of /php-src/ext/standard/tests/file/tempnam_variation9.phpt (Results 1 – 3 of 3)
Revision Date Author Comments
# b4325d61 29-May-2024 Arnaud Le Blanc

Improve randomness of uploaded file names and files created by tempnam()

Closes GH-14364


# 4cbc66d5 08-Aug-2023 George Peter Banyard

Fix skipif condition on new test

I'm an idiot, messed up the condition when tweaking the test manually before committing.


# cbfd7376 04-Aug-2023 Athos Ribeiro

Fix off-by-one bug when truncating tempnam prefix

The tempnam documentation currently states that "Only the first 63
characters of the prefix are used, the rest are ignored". However whe

Fix off-by-one bug when truncating tempnam prefix

The tempnam documentation currently states that "Only the first 63
characters of the prefix are used, the rest are ignored". However when
the prefix is 64 characters-long, the current implementation fails to
strip the last character, diverging from the documented behavior. This
patch fixes the implementation so it matches the documented behavior for
that specific case where the prefix is 64 characters long.

Closes GH-11870

Signed-off-by: George Peter Banyard <girgias@php.net>

show more ...