diff options
author | Sebastian Ramadan <plebbyastian@gmail.com> | 2017-12-17 00:21:47 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-12-17 00:24:45 +0100 |
commit | 168c6cda8f906b72025f9cd9aadad48553dd5764 (patch) | |
tree | 372f68df86556dba7c04903d1c4e9a3e5f4498f4 /sapi/phpdbg/phpdbg_webdata_transfer.c | |
parent | e835e3c1324bd5e285afd8403f7554c7a2fe3f4f (diff) | |
download | php-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.c | 2 |
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}}}; |