Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP7.1.1 + Laravel 5.5 Error tempnam(): file created in the system's temporary directory? #13

Open
nthf opened this issue Sep 5, 2017 · 1 comment

Comments

@nthf
Copy link

nthf commented Sep 5, 2017

ErrorException In FileFunction.php line 43 :

tempnam(): file created in the system's temporary directory

windows上,报以上错误,以前使用 laravel 5.4 的时候没出现过这个错误,

我的解决方法是:

$tmpfname = tempnam("/tmp", "dir");
换成了
$tmpfname = tempnam(sys_get_temp_dir(), "dir");

@Qsnh
Copy link
Contributor

Qsnh commented Feb 21, 2018

已经修复了,pull request #19 这是因为 tempnam 函数在PHP7下会爆出错误的(正确执行也是)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants