-
Notifications
You must be signed in to change notification settings - Fork 759
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
interfaces: squelch warnings during parse #3035
Comments
|
This shouldn't happen, Is always initialised here: core/src/etc/inc/interfaces.lib.inc Line 234 in c5acb41
Maybe a broken patch installed? |
|
@AdSchellevis except in probably one case: the interface did not exist yet when ifconfig was called… |
|
@fabianfrz your right, it's not |
|
Aha, nice catch. I changed the behaviour slightly in 7fe52b2 to always return an empty array because I thought that would be safer than doing call_this_one()['now_get_this_magic_offset'] that PHP seems to be returning with null silently(*). (*) until it doesn't in a future PHP upgrade |
via https://forum.opnsense.org/index.php?topic=10614.0
The text was updated successfully, but these errors were encountered: