CopernicaMarketingSoftware / PHP-CPP

Library to build PHP extensions with C++
http://www.php-cpp.com/
Apache License 2.0
1.41k stars 330 forks source link

Comparison operator overloading #356

Open marcospassos opened 6 years ago

marcospassos commented 6 years ago

Hello guys!

I'm trying to write an extension that recognizes the existence of two methods (__is_identical_to and __is_equal_to) to override that default behavior of the operators === and == respectively.

Reading the documentation, I could not find any explanation about how to do it. Would it be possible?

Thanks!

sjinks commented 5 years ago

Well, actually this is possible with the help of object handlers but as far as I remember, PHP-CPP does not expose any API functions for that.