🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-06 22:32:11 | PHP 8.2.32
📂
/ (Root)
/
home
/
eliteewa
/
public_html
/
wp-content
/
themes
/
blocksy
/
inc
/
classes
📍 /home/eliteewa/public_html/wp-content/themes/blocksy/inc/classes
🔄 Refresh
✏️
Editing: raii.php
Writable
<?php namespace Blocksy; class RaiiPattern { private $callback = null; public function __construct($callback) { $this->callback = $callback; } public function __destruct() { if ($this->callback) { call_user_func($this->callback); } } /** * Prevent PHP Object Injection attacks via unserialize(). * * This class uses call_user_func() in __destruct(), making it a * dangerous deserialization gadget. Blocking __unserialize() and * __wakeup() ensures it cannot be instantiated through unserialize(). */ public function __unserialize(array $data): void { throw new \LogicException('RaiiPattern cannot be unserialized.'); } public function __wakeup(): void { throw new \LogicException('RaiiPattern cannot be unserialized.'); } }
💾 Save Changes
❌ Cancel