HEX
Server: Apache
System: Linux sxb1plzcpnl440011.prod.sxb1.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: xfp2mtarcm67 (7705020)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //opt/alt/tests/alt-php71-phpiredis_1.0.1-1.el8/serializer_002.phpt
--TEST--
[SERIALIZER] Command serialization with non-string arguments

--SKIPIF--
<?php
require_once 'testsuite_skipif.inc';

--FILE--
<?php
var_dump(phpiredis_format_command(array('SET', 'key', 112)));
var_dump(phpiredis_format_command(array('SET', 'key', 1.2)));

--EXPECT--
string(31) "*3
$3
SET
$3
key
$3
112
"
string(31) "*3
$3
SET
$3
key
$3
1.2
"