History log of /PHP-8.1/ext/standard/tests/file/tempnam_variation9.phpt (Results 1 – 2 of 2)
Revision Date Author Comments
# 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 ...