summaryrefslogtreecommitdiff
path: root/ext/intl/breakiterator/breakiterator_class.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-03-31 12:36:48 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-03-31 12:36:48 +0200
commitfb5bfcb75b5a6abec2a07567769f6ae635d4399e (patch)
tree16db1a73ec8b5733aff504b55c58e3211989a5d9 /ext/intl/breakiterator/breakiterator_class.cpp
parentbef4b2e4e97ea6d1443660326c19bab957314aac (diff)
downloadphp-git-fb5bfcb75b5a6abec2a07567769f6ae635d4399e.tar.gz
Add a ZEND_UNCOMPARABLE value
To explicitly indicate that objects are uncomparable. For now this has no functional difference from the usual 1 return value, but makes intent clearer.
Diffstat (limited to 'ext/intl/breakiterator/breakiterator_class.cpp')
-rw-r--r--ext/intl/breakiterator/breakiterator_class.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/intl/breakiterator/breakiterator_class.cpp b/ext/intl/breakiterator/breakiterator_class.cpp
index 301701d29e..bd76d25ca6 100644
--- a/ext/intl/breakiterator/breakiterator_class.cpp
+++ b/ext/intl/breakiterator/breakiterator_class.cpp
@@ -84,9 +84,6 @@ static int BreakIterator_compare_objects(zval *object1,
*bio2;
ZEND_COMPARE_OBJECTS_FALLBACK(object1, object2);
- if (Z_TYPE_P(object1) != Z_TYPE_P(object2)) {
- return 1; /* object and non-object */
- }
bio1 = Z_INTL_BREAKITERATOR_P(object1);
bio2 = Z_INTL_BREAKITERATOR_P(object2);