Allow non-static autoload methods w/ PHP >= 5.2.11
commit0b9db1f54b93afde5e940b03bea2b1f6f99ccabe
authorNick Pope <nick@nickpope.me.uk>
Wed, 13 Oct 2010 18:17:38 +0000 (13 19:17 +0100)
committerEdward Z. Yang <ezyang@mit.edu>
Thu, 28 Oct 2010 16:25:17 +0000 (28 17:25 +0100)
tree31306ee9895b11b9bfb3e970d6e39de2110f583c
parent1d4a38d0553c9d9beb10cdd1df3f7a757d7f21b1
Allow non-static autoload methods w/ PHP >= 5.2.11

HTML Purifier loads itself as the first autoload function by
unregistering all existing functions and re-registering them after
registering itself.

Originally an exception was thrown when a non-static object method was
encountered as the behaviour of spl_autoload_functions() did not return
the object instance, but only the class name.  This was filed on PHP
bugs (#44144).

The bug was fixed for PHP >= 5.2.11 and >= 5.3

Signed-off-by: Nick Pope <nick@nickpope.me.uk>
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
NEWS
library/HTMLPurifier/Bootstrap.php
tests/HTMLPurifier/PHPT/loading/error-auto-with-spl-nonstatic-autoload.phpt