diff options
author | Dmitry Stogov <dmitry@zend.com> | 2021-01-28 16:38:36 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2021-01-28 16:38:36 +0300 |
commit | c83cbc52a0f24dfbe7e0b6b2f4395e65cc926f20 (patch) | |
tree | e12e70ef42404811cc7d4cf26a74a25ef25c4bb1 | |
parent | 83be073abe665a219041ca1f54b6578b75643971 (diff) | |
download | php-git-c83cbc52a0f24dfbe7e0b6b2f4395e65cc926f20.tar.gz |
Remove useless zend_update_class_constants() calls
-rw-r--r-- | ext/spl/spl_directory.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c index f8175493ab..073965db71 100644 --- a/ext/spl/spl_directory.c +++ b/ext/spl/spl_directory.c @@ -458,8 +458,6 @@ static spl_filesystem_object *spl_filesystem_object_create_info(spl_filesystem_o ce = ce ? ce : source->info_class; - zend_update_class_constants(ce); - intern = spl_filesystem_from_obj(spl_filesystem_object_new_ex(ce)); RETVAL_OBJ(&intern->std); @@ -497,10 +495,6 @@ static spl_filesystem_object *spl_filesystem_object_create_type(int num_args, sp case SPL_FS_INFO: ce = ce ? ce : source->info_class; - if (UNEXPECTED(zend_update_class_constants(ce) != SUCCESS)) { - return NULL; - } - intern = spl_filesystem_from_obj(spl_filesystem_object_new_ex(ce)); RETVAL_OBJ(&intern->std); @@ -523,10 +517,6 @@ static spl_filesystem_object *spl_filesystem_object_create_type(int num_args, sp { ce = ce ? ce : source->file_class; - if (UNEXPECTED(zend_update_class_constants(ce) != SUCCESS)) { - return NULL; - } - char *open_mode = "r"; size_t open_mode_len = 1; zval *resource = NULL; |