This is not a bug - it's a feature. ;-) It is a "bugfix" that was made in PHP 7.1.0 because someone thought, that tempnam() should throw a notice, since it might use different paths for the temporary dir (which is correct). Here is the full list of changes:

http://php.net/ChangeLog-7.php#7.1.0

The bug is listed as "Fixed bug #69489 (tempnam() should raise notice if falling back to temp dir)."

And here is the ticket:

https://bugs.php.net/bug.php?id=69489

Since this is just a notice and the function still works correctly, you can either place the "@" operator infront of the function call "@tempnam()" or set your personal temp path in your php.ini like this:

upload_tmp_dir = C:phptemp\

I'm not sure if the last one prevents PHP throwing the notice (I use PHP 7.0.9 and didn't tested it), but I think it will work.

摘自:https://github.com/Glavin001/atom-beautify/issues/1108

请联系我 商务合作、广告投放、题目勘误、侵权投诉

点赞(3)

评论列表 共有 0 条评论

暂无评论
立即
投稿
发表
评论
返回
顶部