summaryrefslogtreecommitdiff
path: root/src/sp_sloppy.c
diff options
context:
space:
mode:
authorjvoisin2018-10-06 16:15:00 +0000
committerGitHub2018-10-06 16:15:00 +0000
commitaa550b9abadc109a2c89a7cd6dd047ac2a953027 (patch)
tree1892e9ce8f833f3f13278cd424368fe1b5e26d91 /src/sp_sloppy.c
parent228fadf307b167a22ad6ec760f3b2ee2e9f2fee3 (diff)
Bump a bit the coverage
* `setcookie` doesn't always return `true` anymore * clang-format * Cookies with invalid decryption are dropped, but the request isn't anymore * faulty unserialize are now dumpable
Diffstat (limited to 'src/sp_sloppy.c')
-rw-r--r--src/sp_sloppy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sp_sloppy.c b/src/sp_sloppy.c
index 695d2a3..d510181 100644
--- a/src/sp_sloppy.c
+++ b/src/sp_sloppy.c
@@ -36,7 +36,6 @@ ZEND_API zend_op_array* sp_compile_file(zend_file_handle* file_handle,
36 return opline; 36 return opline;
37} 37}
38 38
39
40static void array_handler(INTERNAL_FUNCTION_PARAMETERS, const char* name, 39static void array_handler(INTERNAL_FUNCTION_PARAMETERS, const char* name,
41 size_t size, zif_handler orig_handler, 40 size_t size, zif_handler orig_handler,
42 const char* spec) { 41 const char* spec) {
@@ -55,8 +54,8 @@ static void array_handler(INTERNAL_FUNCTION_PARAMETERS, const char* name,
55 ZVAL_COPY(&params[1], array); 54 ZVAL_COPY(&params[1], array);
56 ZVAL_BOOL(&params[2], 1); 55 ZVAL_BOOL(&params[2], 1);
57 } else { 56 } else {
58 // if there is no array as parameter, don't set strict mode. 57 // if there is no array as parameter, don't set strict mode.
59 // check php's implementation for details. 58 // check php's implementation for details.
60 ZVAL_BOOL(&params[2], 0); 59 ZVAL_BOOL(&params[2], 0);
61 } 60 }
62 61