Login  |  Packages  |  Support  |  Bugs
Top Level :: PHP :: operator :: 0.5.0

operator 0.5.0

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.

[ Latest Tarball ] [ Changelog ] [ View Statistics ]
[ Browse Source ] [ Package Bugs ]

Dependencies for release 0.5.0
PHP Version: PHP 8.2.0 or newer
PEAR Package: PEAR 1.4.0b1 or newer
PRIVACY POLICY  |  CREDITS
Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Mar 21 17:05:02 2024 UTC
Bandwidth and hardware provided by: pair Networks