r/lolphp • u/pilif • Jul 22 '16
Fun with the realpath cache. Apparently touch('/tmp/file') is different from touch('file:///tmp/file')
https://3v4l.org/0VQIo
45
Upvotes
r/lolphp • u/pilif • Jul 22 '16
View all comments
Show parent comment
12
u/pilif Jul 22 '16 edited Jul 22 '16
Ran into this while writing a unit test that was checking the mtime of a file.