apache2checker/checkers/php-igbinary.php
2025-05-05 07:26:31 +03:00

13 lines
705 B
PHP

<?php
include("baseModule.php");
$checker = new BaseModule(
"igbinary",
"Module name: Igbinary is a drop in replacement for the standard PHP serializer. Instead of the time and space consuming textual representation used by PHP\'s serialize(), igbinary stores PHP data structures in a compact binary form. Memory savings are significant when using memcached, APCu, or similar memory based storages for serialized data. The typical reduction in storage requirements are around 50%. The exact percentage depends on the data.",
"Original text: test test ");
$checker->printInfo();
$ser = igbinary_serialize(['test','test']);
echo urlencode($ser), "\n";
var_export(igbinary_unserialize($ser));