summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_webdata_transfer.c
diff options
context:
space:
mode:
authorSebastian Ramadan <plebbyastian@gmail.com>2017-12-17 00:21:47 +0100
committerNikita Popov <nikita.ppv@gmail.com>2017-12-17 00:24:45 +0100
commit168c6cda8f906b72025f9cd9aadad48553dd5764 (patch)
tree372f68df86556dba7c04903d1c4e9a3e5f4498f4 /sapi/phpdbg/phpdbg_webdata_transfer.c
parente835e3c1324bd5e285afd8403f7554c7a2fe3f4f (diff)
downloadphp-git-168c6cda8f906b72025f9cd9aadad48553dd5764.tar.gz
Transmit phpdbg webdata len in little-endian
Rather than using machine-endianness through a UB cast.
Diffstat (limited to 'sapi/phpdbg/phpdbg_webdata_transfer.c')
-rw-r--r--sapi/phpdbg/phpdbg_webdata_transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_webdata_transfer.c b/sapi/phpdbg/phpdbg_webdata_transfer.c
index 411ee9238f..5cb6ea4a2d 100644
--- a/sapi/phpdbg/phpdbg_webdata_transfer.c
+++ b/sapi/phpdbg/phpdbg_webdata_transfer.c
@@ -27,7 +27,7 @@ static int phpdbg_is_auto_global(char *name, int len) {
return ret;
}
-PHPDBG_API void phpdbg_webdata_compress(char **msg, int *len) {
+PHPDBG_API void phpdbg_webdata_compress(char **msg, size_t *len) {
zval array;
HashTable *ht;
zval zv[9] = {{{0}}};