Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Jan 30, 2024
1 parent 9a5d74a commit 2e3d762
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion encoding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,12 @@ static int byte_buffer_compare_objects(zval* obj1, zval* obj2) {
auto object1 = fetch_from_zend_object<byte_buffer_zend_object>(Z_OBJ_P(obj1));
auto object2 = fetch_from_zend_object<byte_buffer_zend_object>(Z_OBJ_P(obj2));

if (object1->offset == object2->offset && object1->used == object2->used && zend_string_equals(object1->buffer, object2->buffer)) {
if (
object1->read_offset == object2->read_offset &&
object1->write_offset == object2->write_offset &&
object1->used == object2->used &&
zend_string_equals(object1->buffer, object2->buffer)
) {
return 0;
}
}
Expand Down

0 comments on commit 2e3d762

Please sign in to comment.