Skip to content

Commit c83cbc5

Browse files
committed
Remove useless zend_update_class_constants() calls
1 parent 83be073 commit c83cbc5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

ext/spl/spl_directory.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,6 @@ static spl_filesystem_object *spl_filesystem_object_create_info(spl_filesystem_o
458458

459459
ce = ce ? ce : source->info_class;
460460

461-
zend_update_class_constants(ce);
462-
463461
intern = spl_filesystem_from_obj(spl_filesystem_object_new_ex(ce));
464462
RETVAL_OBJ(&intern->std);
465463

@@ -497,10 +495,6 @@ static spl_filesystem_object *spl_filesystem_object_create_type(int num_args, sp
497495
case SPL_FS_INFO:
498496
ce = ce ? ce : source->info_class;
499497

500-
if (UNEXPECTED(zend_update_class_constants(ce) != SUCCESS)) {
501-
return NULL;
502-
}
503-
504498
intern = spl_filesystem_from_obj(spl_filesystem_object_new_ex(ce));
505499
RETVAL_OBJ(&intern->std);
506500

@@ -523,10 +517,6 @@ static spl_filesystem_object *spl_filesystem_object_create_type(int num_args, sp
523517
{
524518
ce = ce ? ce : source->file_class;
525519

526-
if (UNEXPECTED(zend_update_class_constants(ce) != SUCCESS)) {
527-
return NULL;
528-
}
529-
530520
char *open_mode = "r";
531521
size_t open_mode_len = 1;
532522
zval *resource = NULL;

0 commit comments

Comments
 (0)