Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Have weak_vendors ignore deprecations from outside#24864
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Have weak_vendors ignore deprecations from outside#24864
Uh oh!
There was an error while loading.Please reload this page.
Conversation
greg0ire commentedNov 7, 2017
Wait wut? It passes onsome versions of php??? I thought it wouldn't pass at all... |
sroze commentedNov 7, 2017
Nop, just thatsome version of PHP are skipped for pull-requests. See the logs of thesuccessful ones. |
greg0ire commentedNov 7, 2017
Thanks@sroze , things make sense again thanks to you! |
3f43275 tod2371faComparegreg0ire commentedNov 8, 2017
Ok so now the build only fails on 7.2... with deps=low |
greg0ire commentedNov 8, 2017
Could it be become of the |
soullivaneuh commentedNov 10, 2017
As a bug fix, it should be merged on 3.3:https://symfony.com/roadmap?version=3.3#checker Should not be? |
greg0ire commentedNov 10, 2017
That's correct, let me rebase. |
d2371fa to8f8d5f4Comparegreg0ire commentedNov 16, 2017
Tests are failing probably because
I'm afraid there is nothing I can do about that. Is there hope to get this merged nonetheless? |
| } | ||
| $path =realpath($path) ?:$path; | ||
| $realPath =realpath($path); | ||
| if (false ===$realPath &&'-' !==$path) { |
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.
I think- has changed on 7.2, the string is different
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.
Dang, good catch! I knew this was a bit fragile but don't know what else to use, will have to give it more thought.
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.
Thanks to docker I now know this could be "Standard input code"
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.
Can't think of a less fragile solution though.
8f8d5f4 tod378244Comparegreg0ire commentedDec 7, 2017
Not sure it's that string you were thinking about@nicolas-grekas : here is the change :php/php-src@3ed8b7a , and it does not change from |
greg0ire commentedDec 9, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Ok so now I am sure, tried the code with: And then confirmed with some |
greg0ire commentedDec 9, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I just confirmed the tests pass on 5.5 by using |
greg0ire commentedDec 16, 2017
fabbot seems stuck, let's close and reopen |
greg0ire commentedDec 20, 2017
Please review again |
greg0ire commentedJan 2, 2018
ping@nicolas-grekas |
d378244 to6580c38Comparegreg0ire commentedJan 5, 2018
I added a script to regenerate the phar, so that it's easier to understand or maintain. |
6580c38 tof776108Comparephar:// and eval() can execute code that may or may not come from the vendors.
f776108 to9ce0ae2Comparenicolas-grekas commentedJan 21, 2018
Thank you@greg0ire. |
This PR was merged into the 3.3 branch.Discussion----------Have weak_vendors ignore deprecations from outsidephar:// and eval() can execute code that may or may not come from the vendors.| Q | A| ------------- | ---| Branch? | 3.3| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | not yet| Fixed tickets |#24853| License | MITI haven't managed to get the phar test to pass yet, but before I do, is it ok for me to commit a test phar in Symfony? I'm thinking trust issues? Although the phar is almost plain text.~~Next, I'm stuck because it looks like symfony does not know how to load classes anymore... should I somehow load `vendor/autoload.php` from the phar or something like that?~~ solved, had nothing to do with that.Commits-------9ce0ae2 Have weak_vendors ignore deprecations from outside
This reverts commite103e32.The issues with this mode have been fixed and are released.Seesymfony/symfony#24864
This reverts commite103e32.The issues with this mode have been fixed and are released.Seesymfony/symfony#24864
Uh oh!
There was an error while loading.Please reload this page.
phar:// and eval() can execute code that may or may not come from the vendors.
I haven't managed to get the phar test to pass yet, but before I do, is it ok for me to commit a test phar in Symfony? I'm thinking trust issues? Although the phar is almost plain text.
Next, I'm stuck because it looks like symfony does not know how to load classes anymore... should I somehow loadsolved, had nothing to do with that.vendor/autoload.phpfrom the phar or something like that?