<?php
error_reporting(E_ALL | E_STRICT);
/* data actually came from POST */
$_POST = array(
'product_id' => 'libgd<script>',
'component' => '10',
'versions' => '2.0.33',
'testarray' => array('2', '23', '10', '12'),
'testscalar' => '2',
);
$args = array(
'product_id' => FILTER_SANITIZE_ENCODED,
'component' => array('filter' => FILTER_VALIDATE_INT,
'flags' => FILTER_REQUIRE_ARRAY,
'options' => array('min_range' => 1, 'max_range' => 10)
),
'versions' => FILTER_SANITIZE_ENCODED,
'doesnotexist' => FILTER_VALIDATE_INT,
'testscalar' => array(
'filter' => FILTER_VALIDATE_INT,
'flags' => FILTER_REQUIRE_SCALAR,
),
'testarray' => array(
'filter' => FILTER_VALIDATE_INT,
'flags' => FILTER_REQUIRE_ARRAY,
)
);
$myinputs = filter_input_array(INPUT_POST, $args);
var_dump($myinputs);
echo "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/8qjcU
function name: (null)
number of ops: 16
compiled vars: !0 = $args, !1 = $myinputs
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > INIT_FCALL 'error_reporting'
1 SEND_VAL 32767
2 DO_ICALL
5 3 FETCH_W global $3 '_POST'
4 ASSIGN $3, <array>
14 5 ASSIGN !0, <array>
33 6 INIT_FCALL 'filter_input_array'
7 SEND_VAL 0
8 SEND_VAR !0
9 DO_ICALL $6
10 ASSIGN !1, $6
35 11 INIT_FCALL 'var_dump'
12 SEND_VAR !1
13 DO_ICALL
36 14 ECHO '%0A'
15 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
182.15 ms | 1394 KiB | 19 Q