I want to overload methods of comparison for a personnal class.
For example if I write this : $object1 < $object2 Php will use this function :
functi
The PECL solution you point to above is your only option. PHP does not provide operator overloading as available in other languages.