File tree 1 file changed +8
-13
lines changed
1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -10,30 +10,25 @@ $m = memc_get_instance ();
10
10
$ key = 'foobarbazDEADC0DE ' ;
11
11
$ value = array ('foo ' => 'bar ' );
12
12
13
- $ rv = $ m ->set ($ no_key , $ value , 360 );
13
+ // silent to hide:
14
+ // Warning: Undefined variable
15
+ // Deprecated: Memcached::set(): Passing null to parameter (PHP 8.1)
16
+
17
+ $ rv = @$ m ->set ($ no_key , $ value , 360 );
14
18
var_dump ($ rv );
15
19
16
20
17
- $ rv = $ m ->set ($ key , $ no_value , 360 );
21
+ $ rv = @ $ m ->set ($ key , $ no_value , 360 );
18
22
var_dump ($ rv );
19
23
20
- $ rv = $ m ->set ($ no_key , $ no_value , 360 );
24
+ $ rv = @ $ m ->set ($ no_key , $ no_value , 360 );
21
25
var_dump ($ rv );
22
26
23
- $ rv = $ m ->set ($ key , $ value , $ no_time );
27
+ $ rv = @ $ m ->set ($ key , $ value , $ no_time );
24
28
var_dump ($ rv );
25
29
?>
26
30
--EXPECTF--
27
- %s: Undefined variable%sno_key in %s
28
31
bool(false)
29
-
30
- %s: Undefined variable%sno_value in %s
31
32
bool(true)
32
-
33
- %s: Undefined variable%sno_key in %s
34
-
35
- %s: Undefined variable%sno_value in %s
36
33
bool(false)
37
-
38
- %s: Undefined variable%sno_time in %s
39
34
bool(true)
You can’t perform that action at this time.
0 commit comments