File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
setup/src/Magento/Setup/Model Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -125,11 +125,15 @@ public function getInstallationCurrentWritableDirectories()
125
125
*/
126
126
private function checkRecursiveDirectories ($ directory )
127
127
{
128
+ $ skipDirs = ['.. ' , '. ' ];
128
129
$ directoryIterator = new \RecursiveIteratorIterator (
129
130
new \RecursiveDirectoryIterator ($ directory ),
130
131
\RecursiveIteratorIterator::LEAVES_ONLY | \RecursiveIteratorIterator::CATCH_GET_CHILD
131
132
);
132
133
foreach ($ directoryIterator as $ subDirectory ) {
134
+ if (in_array ($ subDirectory ->getFilename (), $ skipDirs )) {
135
+ continue ;
136
+ }
133
137
if ($ subDirectory ->isDir () && !$ subDirectory ->isWritable ()) {
134
138
return false ;
135
139
}
Original file line number Diff line number Diff line change @@ -191,8 +191,8 @@ private function checkXDebugNestedLevel()
191
191
*/
192
192
private function checkPopulateRawPostSetting ()
193
193
{
194
- // HHVM does not support 'always_populate_raw_post_data' to be set to -1
195
- if (defined ('HHVM_VERSION ' )) {
194
+ // HHVM and PHP 7does not support 'always_populate_raw_post_data' to be set to -1
195
+ if (version_compare ( PHP_VERSION , ' 7.0.0-beta ' ) >= 0 || defined ('HHVM_VERSION ' )) {
196
196
return [];
197
197
}
198
198
You can’t perform that action at this time.
0 commit comments