File tree 3 files changed +8
-10
lines changed
3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,9 @@ PHP 8.0 UPGRADE NOTES
91
91
. The FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED flags for the
92
92
FILTER_VALIDATE_URL filter have been removed. The scheme and host are (and
93
93
have been) always required.
94
+ . The INPUT_REQUEST and INPUT_SESSION source for filter_input() etc have been
95
+ removed. These were never implemented and their use always generated a
96
+ warning.
94
97
95
98
- GD:
96
99
. The deprecated function image2wbmp() has been removed.
Original file line number Diff line number Diff line change @@ -222,8 +222,6 @@ PHP_MINIT_FUNCTION(filter)
222
222
REGISTER_LONG_CONSTANT ("INPUT_COOKIE" , PARSE_COOKIE , CONST_CS | CONST_PERSISTENT );
223
223
REGISTER_LONG_CONSTANT ("INPUT_ENV" , PARSE_ENV , CONST_CS | CONST_PERSISTENT );
224
224
REGISTER_LONG_CONSTANT ("INPUT_SERVER" , PARSE_SERVER , CONST_CS | CONST_PERSISTENT );
225
- REGISTER_LONG_CONSTANT ("INPUT_SESSION" , PARSE_SESSION , CONST_CS | CONST_PERSISTENT );
226
- REGISTER_LONG_CONSTANT ("INPUT_REQUEST" , PARSE_REQUEST , CONST_CS | CONST_PERSISTENT );
227
225
228
226
REGISTER_LONG_CONSTANT ("FILTER_FLAG_NONE" , FILTER_FLAG_NONE , CONST_CS | CONST_PERSISTENT );
229
227
@@ -549,13 +547,8 @@ static zval *php_filter_get_storage(zend_long arg)/* {{{ */
549
547
}
550
548
array_ptr = !Z_ISUNDEF (IF_G (env_array )) ? & IF_G (env_array ) : & PG (http_globals )[TRACK_VARS_ENV ];
551
549
break ;
552
- case PARSE_SESSION :
553
- /* FIXME: Implement session source */
554
- php_error_docref (NULL , E_WARNING , "INPUT_SESSION is not yet implemented" );
555
- break ;
556
- case PARSE_REQUEST :
557
- /* FIXME: Implement request source */
558
- php_error_docref (NULL , E_WARNING , "INPUT_REQUEST is not yet implemented" );
550
+ default :
551
+ php_error_docref (NULL , E_WARNING , "Unknown source" );
559
552
break ;
560
553
}
561
554
Original file line number Diff line number Diff line change @@ -21,14 +21,16 @@ var_dump(filter_has_var(0, "cc"));
21
21
22
22
echo "Done \n" ;
23
23
?>
24
- --EXPECT --
24
+ --EXPECTF --
25
25
bool(false)
26
26
bool(true)
27
27
bool(true)
28
28
bool(true)
29
29
bool(true)
30
30
bool(false)
31
31
bool(false)
32
+
33
+ Warning: filter_has_var(): Unknown source in %s on line %d
32
34
bool(false)
33
35
bool(false)
34
36
Done
You can’t perform that action at this time.
0 commit comments