Fix FS caching with open_basedir#929
Fix FS caching with open_basedir#929sebastianbergmann merged 1 commit intosebastianbergmann:9.2from mvorisek:fix_caching_with_open_basedir
Conversation
Codecov Report
@@ Coverage Diff @@
## 9.2 #929 +/- ##
============================================
+ Coverage 83.66% 83.68% +0.02%
Complexity 1161 1161
============================================
Files 59 59
Lines 3415 3414 -1
============================================
Hits 2857 2857
+ Misses 558 557 -1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Just as PHPUnit, this library is intended to be used in development environments only, not in production environments. I therefore see no reason why it should care about |
|
This PR does more than one thing: it replaces the usage of |
Even PHPUnit can be run with
Removed from this PR, will send another PR. |
GlobIterator(__DIR__ . '/*.php')is not working /w open_basedir set in PHP 7.4 - 8.1in upcoming PHP 8.2 it was fixed in php/php-src#9120
we can simply use
SebastianBergmann\FileIterator\Facadeas inFilterclass, this FS iterator is working /w open_basedir and it very optimized