<?php function unserialize_handler($errno, $errstr) { echo "Invalid hello value.\n"; } $hello = 'abc'; set_error_handler('unserialize_handler'); $original = unserialize($hello); restore_error_handler(); ?>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more