Server IP : 192.158.238.246 / Your IP : 18.224.2.133 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/cpanel/ea-php80/root/usr/share/tests/pecl/igbinary/tests/ |
Upload File : |
--TEST-- Test serializing string > 4G --INI-- memory_limit=15G --CONFLICTS-- high_memory --SKIPIF-- <?php if (!extension_loaded("igbinary")) print "skip\n"; if (PHP_INT_SIZE <= 4) { print "skip requires 74-bit\n"; } if (!getenv('IGBINARY_HIGH_MEMORY_TESTS')) { print "skip requires IGBINARY_HIGH_MEMORY_TESTS=1\n"; } ?> --FILE-- <?php ini_set('memory_limit', '15G'); $ser = igbinary_serialize(str_repeat('*', 4200000000)); echo "len=" . strlen($ser) . "\n"; echo bin2hex(substr($ser, 0, 20)) . "\n"; $unser = igbinary_unserialize($ser); unset($ser); var_dump($unser === str_repeat('*', 4200000000)); ?> --EXPECTF-- len=4200000009 0000000213fa56ea002a2a2a2a2a2a2a2a2a2a2a bool(true)