Skip to content

Commit 7df4a64

Browse files
committed
Remove conditional code
1 parent 110e6b9 commit 7df4a64

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

src/BSON/Iterator.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,14 +341,12 @@ static void php_phongo_iterator_it_rewind(zend_object_iterator* iter)
341341
php_phongo_iterator_rewind(intern);
342342
}
343343

344-
#if PHP_VERSION_ID >= 80000
345344
static HashTable* php_phongo_iterator_it_get_gc(zend_object_iterator* iter, zval** table, int* n)
346345
{
347346
*n = 1;
348347
*table = &iter->data;
349348
return NULL;
350349
}
351-
#endif
352350

353351
static const zend_object_iterator_funcs php_phongo_iterator_it_funcs = {
354352
php_phongo_iterator_it_dtor,

src/BSON/Persistable.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ zend_class_entry* php_phongo_persistable_ce;
2323

2424
static int php_phongo_implement_persistable(zend_class_entry* interface, zend_class_entry* class_type)
2525
{
26-
#if PHP_VERSION_ID >= 80100
2726
if (class_type->ce_flags & ZEND_ACC_ENUM) {
2827
zend_error_noreturn(E_ERROR, "Enum class %s cannot implement interface %s", ZSTR_VAL(class_type->name), ZSTR_VAL(interface->name));
2928
return FAILURE;
3029
}
31-
#endif /* PHP_VERSION_ID >= 80100 */
3230

3331
return SUCCESS;
3432
}

src/BSON/Unserializable.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ zend_class_entry* php_phongo_unserializable_ce;
2323

2424
static int php_phongo_implement_unserializable(zend_class_entry* interface, zend_class_entry* class_type)
2525
{
26-
#if PHP_VERSION_ID >= 80100
2726
if (class_type->ce_flags & ZEND_ACC_ENUM) {
2827
zend_error_noreturn(E_ERROR, "Enum class %s cannot implement interface %s", ZSTR_VAL(class_type->name), ZSTR_VAL(interface->name));
2928
return FAILURE;
3029
}
31-
#endif /* PHP_VERSION_ID >= 80100 */
3230

3331
return SUCCESS;
3432
}

0 commit comments

Comments
 (0)