Skip to content

Commit e39fe16

Browse files
committed
Drop unneeded checks
1 parent 8e52cc5 commit e39fe16

File tree

4 files changed

+0
-16
lines changed

4 files changed

+0
-16
lines changed

src/php/objects/php_deque.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ int php_ds_deque_unserialize(zval *object, zend_class_entry *ce, const unsigned
7373
ds_deque_push(deque, value);
7474
}
7575

76-
if (pos != end) {
77-
goto error;
78-
}
79-
8076
ZVAL_DS_DEQUE(object, deque);
8177
PHP_VAR_UNSERIALIZE_DESTROY(unserialize_data);
8278
return SUCCESS;

src/php/objects/php_priority_queue.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ int php_ds_priority_queue_unserialize(zval *object, zend_class_entry *ce, const
9898
ds_priority_queue_push(queue, value, Z_LVAL_P(priority));
9999
}
100100

101-
if (pos != end) {
102-
goto error;
103-
}
104-
105101
PHP_VAR_UNSERIALIZE_DESTROY(unserialize_data);
106102
return SUCCESS;
107103

src/php/objects/php_queue.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ int php_ds_queue_unserialize(zval *object, zend_class_entry *ce, const unsigned
7474
ds_queue_push_one(queue, value);
7575
}
7676

77-
if (pos != end) {
78-
goto error;
79-
}
80-
8177
ZVAL_DS_QUEUE(object, queue);
8278
PHP_VAR_UNSERIALIZE_DESTROY(unserialize_data);
8379
return SUCCESS;

src/php/objects/php_vector.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ int php_ds_vector_unserialize(zval *obj, zend_class_entry *ce, const unsigned ch
7373
ds_vector_push(vector, value);
7474
}
7575

76-
if (pos != end) {
77-
goto error;
78-
}
79-
8076
ZVAL_DS_VECTOR(obj, vector);
8177
PHP_VAR_UNSERIALIZE_DESTROY(unserialize_data);
8278
return SUCCESS;

0 commit comments

Comments
 (0)