https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162018-08-22T09:31:51ZpfSense bugtrackerpfSense - Bug #8824: is_numeric() on PHP 7 no longer validates hexadecimal valueshttps://redmine.pfsense.org/issues/8824?journal_id=379542018-08-22T09:31:51ZJim Pingle
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>13</i></li></ul> pfSense - Bug #8824: is_numeric() on PHP 7 no longer validates hexadecimal valueshttps://redmine.pfsense.org/issues/8824?journal_id=379552018-08-22T09:58:07ZJim Pingle
<ul><li><strong>Status</strong> changed from <i>13</i> to <i>Feedback</i></li></ul><p>interfaces.php is fixed in <a class="changeset" title="Use ctype_xdigit() instead of is_numeric() to validate hex. Issue #8824" href="https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/b6f6210a220bb206fd22ac34b306f007afedb01f">b6f6210a220bb206fd22ac34b306f007afedb01f</a> -- I can now set a prefix ID of <span>0</span>, <span>1</span>, <span>D</span>, etc and they all work as expected (save interface prefix ID, apply, edit/save/apply on tracked interface WAN, then the new subnet is there)</p>
<p>Checked through uses of <code>is_numeric()</code> in base and packages and didn't see any other instances of this.</p> pfSense - Bug #8824: is_numeric() on PHP 7 no longer validates hexadecimal valueshttps://redmine.pfsense.org/issues/8824?journal_id=379562018-08-22T09:58:17ZJim Pingle
<ul><li><strong>Assignee</strong> set to <i>Jim Pingle</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul> pfSense - Bug #8824: is_numeric() on PHP 7 no longer validates hexadecimal valueshttps://redmine.pfsense.org/issues/8824?journal_id=381212018-08-28T15:22:37ZAnonymous
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul><p>Tested on: 2.4.4-DEVELOPMENT (amd64) <br />built on Tue Aug 28 08:43:43 EDT 2018 <br />FreeBSD 11.2-RELEASE-p2</p>
<p>Haven't seen any errors in interfaces when using hex numbers.<br />Setting as resolved.</p>