ezyang / htmlpurifier

Standards compliant HTML filter written in PHP
http://htmlpurifier.org
GNU Lesser General Public License v2.1
3.03k stars 323 forks source link

Fix creation of dynamic property #337

Closed bytestream closed 1 year ago

bytestream commented 1 year ago
# php tests/index.php 
All HTML Purifier tests on PHP 8.2.0RC1
Exception 1!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_Token_Start::$_InjectorTest_EndRewindInjector_delete is deprecated] severity [8192] in [/v/tests/HTMLPurifier/Strategy/MakeWellFormed/EndRewindInjector.php line 26]
        in testFunction
        in HTMLPurifier_Strategy_MakeWellFormed_EndRewindInjectorTest
Exception 2!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_Token_Start::$_InjectorTest_EndRewindInjector_delete is deprecated] severity [8192] in [/v/tests/HTMLPurifier/Strategy/MakeWellFormed/EndRewindInjector.php line 26]
        in testPadded
        in HTMLPurifier_Strategy_MakeWellFormed_EndRewindInjectorTest
Exception 3!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_Token_Start::$_InjectorTest_EndRewindInjector_delete is deprecated] severity [8192] in [/v/tests/HTMLPurifier/Strategy/MakeWellFormed/EndRewindInjector.php line 26]
        in testDoubled
        in HTMLPurifier_Strategy_MakeWellFormed_EndRewindInjectorTest
FAILURES!!!
Test cases run: 221/221, Passes: 2795, Failures: 0, Exceptions: 3