diff --git a/Zend/Optimizer/zend_inference.c b/Zend/Optimizer/zend_inference.c index bc55ceaefc3..af2bea0e112 100644 --- a/Zend/Optimizer/zend_inference.c +++ b/Zend/Optimizer/zend_inference.c @@ -2264,7 +2264,7 @@ static bool result_may_be_separated(zend_ssa *ssa, zend_ssa_op *ssa_op) && !ssa->vars[tmp_var].phi_use_chain) { zend_ssa_op *use_op = &ssa->ops[ssa->vars[tmp_var].use_chain]; - /* TODO: analize instructions between ssa_op and use_op */ + /* TODO: analyze instructions between ssa_op and use_op */ if (use_op == ssa_op + 1) { if ((use_op->op1_use == tmp_var && use_op->op1_use_chain < 0) || (use_op->op2_use == tmp_var && use_op->op2_use_chain < 0)) { diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c index b45c16ef915..0f030d14217 100644 --- a/Zend/zend_inheritance.c +++ b/Zend/zend_inheritance.c @@ -3005,7 +3005,7 @@ ZEND_API zend_class_entry *zend_do_link_class(zend_class_entry *ce, zend_string } /* Normally Stringable is added during compilation. However, if it is imported from a trait, - * we need to explicilty add the interface here. */ + * we need to explicitly add the interface here. */ if (ce->__tostring && !(ce->ce_flags & ZEND_ACC_TRAIT) && !zend_class_implements_interface(ce, zend_ce_stringable)) { ZEND_ASSERT(ce->__tostring->common.fn_flags & ZEND_ACC_TRAIT_CLONE); diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index 37e566b0a74..6e0373d4f96 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -1193,7 +1193,7 @@ ZEND_API void zend_std_unset_property(zend_object *zobj, zend_string *name, void if (zobj->ce->__unset) { uint32_t *guard = zend_get_property_guard(zobj, name); if (!((*guard) & IN_UNSET)) { - /* have unseter - try with it! */ + /* have unsetter - try with it! */ (*guard) |= IN_UNSET; /* prevent circular unsetting */ zend_std_call_unsetter(zobj, name); (*guard) &= ~IN_UNSET; diff --git a/ext/exif/exif.c b/ext/exif/exif.c index 19f5aafcfe2..83f88ff68d4 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -3298,7 +3298,7 @@ static bool exif_process_IFD_TAG_impl(image_info_type *ImageInfo, char *dir_entr * it is faster to use a static buffer there * BUT it offers also the possibility to have * pointers read without the need to free them - * explicitley before returning. */ + * explicitly before returning. */ memset(&cbuf, 0, sizeof(cbuf)); value_ptr = cbuf; } @@ -3477,7 +3477,7 @@ static bool exif_process_IFD_TAG_impl(image_info_type *ImageInfo, char *dir_entr switch (exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel)) { case 1: ImageInfo->FocalplaneUnits = 25.4; break; /* inch */ case 2: - /* According to the information I was using, 2 measn meters. + /* According to the information I was using, 2 means meters. But looking at the Cannon powershot's files, inches is the only sensible value. */ ImageInfo->FocalplaneUnits = 25.4; diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c index c09e65239f5..1398278662e 100644 --- a/ext/ffi/ffi.c +++ b/ext/ffi/ffi.c @@ -6592,7 +6592,7 @@ void zend_ffi_declare(const char *name, size_t name_len, zend_ffi_dcl *dcl) /* { dcl->type = type; /* reset "owned" flag */ zend_hash_str_add_new_ptr(FFI_G(symbols), name, name_len, sym); } else { - /* useless declarartion */ + /* useless declaration */ zend_ffi_type_dtor(dcl->type); } }