Package Information |
Summary |
Operator overloading for Objects |
Maintainers |
Joshua Lopez (lead)
[details]
|
License |
PHP |
Description |
Operator overloading for:
+, -, *, /, %, **, <<, >>, ., |, &, ^, ~, ++, --,
=, +=, -=, *=, /=, %=, **=, <<=, >>=, .=, |=, &=, ^=,
==, !=, <>, ===, !==, <, <=, >, >=, and <=> operators. |
Release notes
Version 0.5.0
(beta)
|
This is a complete rewrite. * Updated to add support for PHP 8.2+. Support for this extension was lost in PHP 7.4 because of a change in the way that assignment operators are handled by the engine. * Added support for the spaceship operator. * Added support for the greater than and greater than or equal to operators without the need for a parser patch.
Note: This extension will work with PHP 8.0-8.1, but will segfault when you overload the assignment operator and change data types from a non-string to a string, and sometimes from a null to a non-null. If you wish to use it in PHP < 8.2, you have been warned. |
|