���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /usr/share/tests/pecl/igbinary/tests/ |
--TEST-- Test serializing string > 4G --INI-- memory_limit=15G display_errors=stderr error_reporting=E_ALL --CONFLICTS-- high_memory --SKIPIF-- <?php if (!extension_loaded("igbinary")) print "skip\n"; if (PHP_INT_SIZE <= 4) { print "skip requires 64-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)); $ser_invalid = hex2bin('0000000213fa56ea002a'); var_dump(igbinary_unserialize($ser_invalid)); ?> --EXPECTF-- len=4200000009 0000000213fa56ea002a2a2a2a2a2a2a2a2a2a2a bool(true) Warning: igbinary_unserialize_chararray: end-of-data in %sigbinary_089.php on line 10 NULL