File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,9 +15,18 @@ $ascii = memc_get_instance ();
1515var_dump ($ binary ->set ('binary key with spaces ' , 'this is a test ' ));
1616var_dump ($ binary ->getResultCode () == Memcached::RES_BAD_KEY_PROVIDED );
1717
18+ var_dump ($ binary ->set ('binarykeywith\nnewline ' , 'this is a test ' ));
19+ var_dump ($ binary ->getResultCode () == Memcached::RES_BAD_KEY_PROVIDED );
20+
1821var_dump ($ ascii ->set ('ascii key with spaces ' , 'this is a test ' ));
1922var_dump ($ ascii ->getResultCode () == Memcached::RES_BAD_KEY_PROVIDED );
2023
24+ var_dump ($ binary ->set ('asciikeywith\nnewline ' , 'this is a test ' ));
25+ var_dump ($ binary ->getResultCode () == Memcached::RES_BAD_KEY_PROVIDED );
26+
27+ var_dump ($ ascii ->set ('' /*empty key*/ , 'this is a test ' ));
28+ var_dump ($ ascii ->getResultCode () == Memcached::RES_BAD_KEY_PROVIDED );
29+
2130var_dump ($ ascii ->set (str_repeat ('1234567890 ' , 512 ), 'this is a test ' ));
2231var_dump ($ ascii ->getResultCode () == Memcached::RES_BAD_KEY_PROVIDED );
2332
@@ -30,4 +39,10 @@ bool(false)
3039bool (true )
3140bool (false )
3241bool (true )
42+ bool (false )
43+ bool (true )
44+ bool (false )
45+ bool (true )
46+ bool (false )
47+ bool (true )
3348OK
You can’t perform that action at this time.
0 commit comments