1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-13 09:34:01 +02:00

Quarantine __autoload defs for PHP 7.2 compat

This commit is contained in:
John Flatness
2017-12-28 01:55:16 -05:00
committed by Edward Z. Yang
parent 64baeda65c
commit bb7ad66526
4 changed files with 32 additions and 8 deletions

View File

@@ -0,0 +1,15 @@
<?php
/**
* @file
* Legacy autoloader for systems lacking spl_autoload_register
*
* Must be separate to prevent deprecation warning on PHP 7.2
*/
function __autoload($class)
{
return HTMLPurifier_Bootstrap::autoload($class);
}
// vim: et sw=4 sts=4