Uh oh!
There was an error while loading. Please reload this page.
Promote warnings to Errors in sockets's extension. - #5075
Conversation
82e81d3 to
c3c5bf0Comparef88a4f8 to
650aa93CompareThere was a problem hiding this comment.
Convert this to ZEND_ASSERT(descr->from_zval), doesn't seem like it can be hit.
There was a problem hiding this comment.
It looks like you converted the wrong condition to an assert here...
There was a problem hiding this comment.
Uhhhh, what was I thinking >_>
There was a problem hiding this comment.
These has_error checks are no longer going to work after some of your changes.
650aa93 to
9d7c7f4Compare9d7c7f4 to
a336c3cComparea336c3c to
33dbfa2CompareGirgias
commented
Feb 27, 2020
Test failures are FPM related ... |
3bffe06 to
5e745c7Compare5e745c7 to
99045d8Compare9eb8684 to
8a1a9eaCompareGirgias
commented
Apr 17, 2020
I ignored a large part of warnings in multicast.c currently. Will maybe tackle them later or in a separate PR. |
Girgias
commented
Apr 17, 2020
@kocsismate I've updated most of the errors to use the new API, mind checking that I'm using the "standard" error format everywhere? |
kocsismate
left a comment
There was a problem hiding this comment.
I had a first look :) If you address the comments, please check for duplicates, because I saw that most of the messages are repeated (and I didn't comment everywhere).
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
I used an argument_value_error with a message similar to must be specified for the AF_INET6 socket type in a similar situation
There was a problem hiding this comment.
Hum, maybe? It feels like a count error is more appropriate as there is a missing argument, but could change it to a ValueError.
There was a problem hiding this comment.
My reasoning is that because this parameter is optional, and since it should be nullable in reality (and it will be when I start fixing optional params with UNKNOWN default values in stubs), we should think about this error that the default value is not appropriate in case of the aforementioned socket type. At least this is what I think 😊
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
8a1a9ea to
421fb30CompareThere was a problem hiding this comment.
I'll drop it, as I'm using WSL, I get test failures due to the protocols not being available so I've added it to catch the failure on CI, but seems like there is none.
There was a problem hiding this comment.
Ah no I remember why, this was when I still had the changes in conversion.c which I decided to drop
nikic
commented
Apr 21, 2020
Looks fine to me apart from some nits. |
1b6af4a to
2869ccbCompare2869ccb to
7ff8eaaCompare
There are a bunch of expected array warnings, a better way is too probably ask for a HashTable param instead of a zval.