Skip to content

Commit 3c800cc

Browse files
authored
[skip ci] Fix various typos in ext/standard (GH-21559)
1 parent a9fad08 commit 3c800cc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ext/standard/base64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ zend_string *php_base64_encode_avx512_vbmi(const unsigned char *str, size_t leng
536536
/* Step 2: splitting 24-bit words into 32-bit lanes */
537537
str = _mm512_permutexvar_epi8(shuffle_splitting, str);
538538

539-
/* Step 3: moving 6-bit word to sperate bytes */
539+
/* Step 3: moving 6-bit word to separate bytes */
540540
str = _mm512_multishift_epi64_epi8(multi_shifts, str);
541541

542542
/* Step 4: conversion to ASCII */
@@ -643,7 +643,7 @@ zend_string *php_base64_encode_avx512(const unsigned char *str, size_t length, z
643643
/* [D1 D2 D0 D1|C1 C2 C0 C1|B1 B2 B0 B1|A1 A2 A0 A1] x 4 */
644644
str = _mm512_shuffle_epi8(str, _mm512_set4_epi32(0x0a0b090a, 0x07080607, 0x04050304, 0x01020001));
645645

646-
/* Step 3: moving 6-bit word to sperate bytes */
646+
/* Step 3: moving 6-bit word to separate bytes */
647647
/* in: [bbbbcccc|ccdddddd|aaaaaabb|bbbbcccc] */
648648
/* t0: [0000cccc|cc000000|aaaaaa00|00000000] */
649649
const __m512i t0 = _mm512_and_si512(str, _mm512_set1_epi32(0x0fc0fc00));

ext/standard/metaphone.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static zend_always_inline char encode(char c) {
107107
/*----------------------------- */
108108

109109
/* I suppose I could have been using a character pointer instead of
110-
* accesssing the array directly... */
110+
* accessing the array directly... */
111111

112112
#define Convert_Raw(c) toupper(c)
113113
/* Look at the next letter in the word */
@@ -264,7 +264,7 @@ static void metaphone(unsigned char *word, size_t word_len, zend_long max_phonem
264264
for (; (curr_letter = Read_Raw_Curr_Letter) != '\0' &&
265265
(max_phonemes == 0 || Phone_Len < (size_t)max_phonemes);
266266
w_idx++) {
267-
/* How many letters to skip because an eariler encoding handled
267+
/* How many letters to skip because an earlier encoding handled
268268
* multiple letters */
269269
unsigned short int skip_letter = 0;
270270

ext/standard/var.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ static void php_var_serialize_intern(smart_str *buf, zval *struc, php_serialize_
12421242
&& Z_OBJ_HT_P(struc)->get_properties_for == NULL
12431243
&& Z_OBJ_HT_P(struc)->get_properties == zend_std_get_properties
12441244
&& !zend_object_is_lazy(Z_OBJ_P(struc))) {
1245-
/* Optimized version without rebulding properties HashTable */
1245+
/* Optimized version without rebuilding properties HashTable */
12461246
zend_object *obj = Z_OBJ_P(struc);
12471247
zend_class_entry *ce = obj->ce;
12481248
zend_property_info *prop_info;

0 commit comments

Comments
 (0)