PEAR uses this for two things mainly:
- returning errors from constructors ($this = PEAR_Error();)
- driver model ($this = new Slider('Pager');)
This is no longer allowed in PHP 5, so the classes should be redesigned.
Solutions (not compatible with PHP 4).
- Use Exceptions
- driver model ($this = new Slider('Pager');)