Skip to content

Conversation

@dg
Copy link
Member

@dg dg commented Oct 6, 2016

Problem with mkdir() and safe mode is outdated, isn't it?


public function loadConfiguration()
{
@mkdir($this->tempDir . '/cache'); // @ - directory may exists
Copy link
Contributor

@fprochazka fprochazka Oct 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imho there should be a check for the return value and exception, no?

if (!@mkdir(...) && !is_dir(...)) throw

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FileStorage will throw exception.

@dg dg force-pushed the master branch 3 times, most recently from 492413c to b0b475e Compare January 9, 2017 20:11
@dg dg force-pushed the master branch 4 times, most recently from 6037e83 to 1fe69cc Compare January 13, 2017 07:34
@dg dg force-pushed the master branch 6 times, most recently from 1655c0f to 7c885a2 Compare January 25, 2017 01:39
@dg dg force-pushed the master branch 2 times, most recently from 0de58d2 to 29c60cc Compare January 29, 2017 20:14
@dg dg force-pushed the master branch 2 times, most recently from 0c6a125 to 59da4eb Compare January 29, 2017 20:46
@dg dg merged commit 92222cb into nette:master Jan 29, 2017
@dg dg deleted the pull-dirs branch January 29, 2017 20:47
dg added a commit that referenced this pull request Feb 2, 2017
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

Successfully merging this pull request may close these issues.

2 participants