-
Notifications
You must be signed in to change notification settings - Fork 151
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
Do not implicitly fall back to spl_autoload() if no autoloader is registered on PHP 7 #2822
Conversation
ea77ced
to
85e138a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2822 +/- ##
============================================
- Coverage 75.31% 73.97% -1.34%
Complexity 2516 2516
============================================
Files 146 173 +27
Lines 14650 18679 +4029
Branches 0 975 +975
============================================
+ Hits 11033 13818 +2785
- Misses 3617 4324 +707
- Partials 0 537 +537
Flags with carried forward coverage won't be shown. Click here to find out more. see 27 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
85e138a
to
c21306a
Compare
…istered on PHP 7 This could lead to accidental inclusion of files, breaking __autoload() and possibly including the wrong file. Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
c21306a
to
0b1f9b0
Compare
BenchmarksBenchmark execution time: 2024-08-29 20:46:23 Comparing candidate commit 0b1f9b0 in PR branch Found 5 performance improvements and 1 performance regressions! Performance is the same for 172 metrics, 0 unstable metrics. scenario:ContextPropagationBench/benchExtractHeaders128Bit-opcache
scenario:EmptyFileBench/benchEmptyFileBaseline-opcache
scenario:EmptyFileBench/benchEmptyFileOverhead
scenario:PDOBench/benchPDOOverhead
scenario:PDOBench/benchPDOOverheadWithDBM
scenario:WordPressBench/benchWordPressOverhead
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except the comment of one test, LGTM!
@@ -0,0 +1,23 @@ | |||
--TEST-- | |||
Execute the default spl_autoload implementation if spl_autoload_register() is called without args |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong comment
…istered on PHP 7 (#2822) * Do not implicitly fall back to spl_autoload() if no autoloader is registered on PHP 7 This could lead to accidental inclusion of files, breaking __autoload() and possibly including the wrong file. Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
This could lead to accidental inclusion of files, breaking __autoload() and possibly including the wrong file.