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

Unreliable fopen call #7

Closed
shennetsind opened this issue Aug 23, 2013 · 0 comments
Closed

Unreliable fopen call #7

shennetsind opened this issue Aug 23, 2013 · 0 comments

Comments

@shennetsind
Copy link
Member

a reported by Kas in http://hercules.ws/board/topic/1901-flux-control-panel-for-hercules/?p=14071

Warning: fopen(data/tmp/ConfigServers.cache.php) [function.fopen]: failed to open stream: Permission denied in /home/admin/www/cp/lib/Flux.php on line 275

In lib/Flux.php:

            if ($cache) {
                $fp = fopen($cachefile, 'w');
                fwrite($fp, '<?php exit("Forbidden."); ?>');
                fwrite($fp, $s=serialize($cf), strlen($s));
                fclose($fp);
            }

apparently the server is unable to write, and since the result of $fp isn't checked boom it screams php errors instead of one of these green flux error messages

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

1 participant