📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 12:13:17
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php85-pecl-igbinary_3.2.16-4.el8
/
tests
📍 /opt/alt/tests/alt-php85-pecl-igbinary_3.2.16-4.el8/tests
🔄 Refresh
✏️
Editing: igbinary_enums_3_php83.phpt
Read Only
--TEST-- Test unserializing valid enums inferring value --SKIPIF-- <?php if (PHP_VERSION_ID < 80300) { echo "skip non-compile time constant in enums requires php 8.3"; } ?> --FILE-- <?php enum X: string { case X = X; } $x = 'X'; define('X', "dynamic$x"); $value = urldecode('%00%00%00%02%17%01X%27%0E%00'); var_dump(igbinary_unserialize($value)); $ser = igbinary_serialize(X::X); echo urlencode($ser), "\n"; var_dump(X::X->value); ?> --EXPECT-- enum(X::X) %00%00%00%02%17%01X%27%0E%00 string(8) "dynamicX"
💾 Save Changes
❌ Cancel