From d6e117d66d4870599f3050626fd59f3a10288db5 Mon Sep 17 00:00:00 2001 From: 3x0k1d <3x0k1d@gmail.com> Date: Mon, 5 May 2025 07:24:53 +0300 Subject: [PATCH] so big OOP test --- checkers/baseModule.php | 14 ++++++++++++++ checkers/php-igbinary.php | 9 ++++++--- index.php | 2 +- 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 checkers/baseModule.php diff --git a/checkers/baseModule.php b/checkers/baseModule.php new file mode 100644 index 0000000..3a4db52 --- /dev/null +++ b/checkers/baseModule.php @@ -0,0 +1,14 @@ +name = $name; + $this->description = $description; + $this->usage = $usage; + } + public function printInfo() { + echo ("
Original text: test test
'); +$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"; diff --git a/index.php b/index.php index 60e733a..4047746 100644 --- a/index.php +++ b/index.php @@ -40,6 +40,6 @@ for ($i = 0; $i < count($module_list); $i++) { } } } - +?>