Skip to content

Commit aeb2d5c

Browse files
ext/[ef]*: fix a bunch of typos (phpGH-16621)
1 parent e8a1781 commit aeb2d5c

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

ext/enchant/tests/broker_describe.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if($broker) {
4141

4242
}
4343
} else {
44-
echo "failed, brocker describe array \n";
44+
echo "failed, broker describe array \n";
4545
}
4646

4747
@enchant_broker_free($broker);

ext/exif/exif.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ static char *exif_get_tagformat(int format)
330330
#define TAG_BITS_PER_SAMPLE 0x0102
331331
#define TAG_COMPRESSION 0x0103
332332
#define TAG_PHOTOMETRIC_INTERPRETATION 0x0106
333-
#define TAG_TRESHHOLDING 0x0107
333+
#define TAG_THRESHOLDING 0x0107
334334
#define TAG_CELL_WIDTH 0x0108
335335
#define TAG_CELL_HEIGHT 0x0109
336336
#define TAG_FILL_ORDER 0x010A
@@ -343,7 +343,7 @@ static char *exif_get_tagformat(int format)
343343
#define TAG_SAMPLES_PER_PIXEL 0x0115
344344
#define TAG_ROWS_PER_STRIP 0x0116
345345
#define TAG_STRIP_BYTE_COUNTS 0x0117
346-
#define TAG_MIN_SAMPPLE_VALUE 0x0118
346+
#define TAG_MIN_SAMPLE_VALUE 0x0118
347347
#define TAG_MAX_SAMPLE_VALUE 0x0119
348348
#define TAG_X_RESOLUTION 0x011A
349349
#define TAG_Y_RESOLUTION 0x011B
@@ -372,7 +372,7 @@ static char *exif_get_tagformat(int format)
372372
#define TAG_TILE_OFFSETS 0x0144
373373
#define TAG_TILE_BYTE_COUNTS 0x0145
374374
#define TAG_SUB_IFD 0x014A
375-
#define TAG_INK_SETMPUTER 0x014C
375+
#define TAG_INK_SET 0x014C
376376
#define TAG_INK_NAMES 0x014D
377377
#define TAG_NUMBER_OF_INKS 0x014E
378378
#define TAG_DOT_RANGE 0x0150
@@ -412,7 +412,7 @@ static char *exif_get_tagformat(int format)
412412
#define TAG_EXIF_IFD_POINTER 0x8769
413413
#define TAG_ICC_PROFILE 0x8773
414414
#define TAG_EXPOSURE_PROGRAM 0x8822
415-
#define TAG_SPECTRAL_SENSITY 0x8824
415+
#define TAG_SPECTRAL_SENSITIVITY 0x8824
416416
#define TAG_GPS_IFD_POINTER 0x8825
417417
#define TAG_ISOSPEED 0x8827
418418
#define TAG_OPTOELECTRIC_CONVERSION_F 0x8828
@@ -685,7 +685,7 @@ static tag_info_array tag_table_IFD = {
685685
{ 0x8769, "Exif_IFD_Pointer"},
686686
{ 0x8773, "ICC_Profile"},
687687
{ 0x8822, "ExposureProgram"},
688-
{ 0x8824, "SpectralSensity"},
688+
{ 0x8824, "SpectralSensitivity"},
689689
{ 0x8825, "GPS_IFD_Pointer"},
690690
{ 0x8827, "ISOSpeedRatings"},
691691
{ 0x8828, "OECF"},
@@ -3206,7 +3206,7 @@ static bool exif_process_IFD_in_MAKERNOTE(image_info_type *ImageInfo, char * val
32063206

32073207
/* It can be that motorola_intel is wrongly mapped, let's try inverting it */
32083208
if ((2+NumDirEntries*12) > value_len) {
3209-
exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Potentially invalid endianess, trying again with different endianness before imminent failure.");
3209+
exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Potentially invalid endianness, trying again with different endianness before imminent failure.");
32103210

32113211
ImageInfo->motorola_intel = ImageInfo->motorola_intel == 0 ? 1 : 0;
32123212
NumDirEntries = php_ifd_get16u(dir_start, ImageInfo->motorola_intel);
@@ -3479,7 +3479,7 @@ static bool exif_process_IFD_TAG_impl(image_info_type *ImageInfo, char *dir_entr
34793479
break;
34803480

34813481
case TAG_SUBJECT_DISTANCE:
3482-
/* Inidcates the distacne the autofocus camera is focused to.
3482+
/* Indicates the distance the autofocus camera is focused to.
34833483
Tends to be less accurate as distance increases. */
34843484
REQUIRE_NON_EMPTY();
34853485
ImageInfo->Distance = (float)exif_convert_any_format(value_ptr, format, ImageInfo->motorola_intel);
@@ -3497,7 +3497,7 @@ static bool exif_process_IFD_TAG_impl(image_info_type *ImageInfo, char *dir_entr
34973497
break;
34983498

34993499
case 3: ImageInfo->FocalplaneUnits = 10; break; /* centimeter */
3500-
case 4: ImageInfo->FocalplaneUnits = 1; break; /* milimeter */
3500+
case 4: ImageInfo->FocalplaneUnits = 1; break; /* millimeter */
35013501
case 5: ImageInfo->FocalplaneUnits = .001; break; /* micrometer */
35023502
}
35033503
break;
@@ -4122,7 +4122,7 @@ static bool exif_process_IFD_in_TIFF_impl(image_info_type *ImageInfo, size_t dir
41224122
}
41234123
} else {
41244124
entry_offset = php_ifd_get32u(dir_entry+8, ImageInfo->motorola_intel);
4125-
/* if entry needs expading ifd cache and entry is at end of current ifd cache. */
4125+
/* if entry needs expanding ifd cache and entry is at end of current ifd cache. */
41264126
/* otherwise there may be huge holes between two entries */
41274127
if (entry_offset + entry_length > dir_offset + ifd_size
41284128
&& entry_offset == dir_offset + ifd_size) {

ext/exif/tests/filename_empty.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Passing empty filename to exif_read_data() and exif_thumnail()
2+
Passing empty filename to exif_read_data() and exif_thumbnail()
33
--EXTENSIONS--
44
exif
55
--FILE--

ext/ffi/tests/303.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
FFI 303: FFI preloading flob
2+
FFI 303: FFI preloading glob
33
--EXTENSIONS--
44
ffi
55
--SKIPIF--

ext/ffi/tests/ffi_load_error.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Test that FFI::load returns a detailed error when failling to load a shared library
2+
Test that FFI::load returns a detailed error when failing to load a shared library
33
--EXTENSIONS--
44
ffi
55
--INI--

ext/filter/filter.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ static void php_zval_filter(zval *value, zend_long filter, zend_long flags, zval
252252
}
253253

254254
/* #49274, fatal error with object without a toString method
255-
Fails nicely instead of getting a recovarable fatal error. */
255+
Fails nicely instead of getting a recoverable fatal error. */
256256
if (Z_TYPE_P(value) == IS_OBJECT) {
257257
zend_class_entry *ce;
258258

ext/filter/tests/049.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
filter_var() and doubles with thousend separators
2+
filter_var() and doubles with thousand separators
33
--EXTENSIONS--
44
filter
55
--FILE--

ext/ftp/tests/ftp_pasv.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Testing ftp_pasv basic funcionality
2+
Testing ftp_pasv basic functionality
33
--CREDITS--
44
Gabriel Caruso (carusogabriel34@gmail.com)
55
--EXTENSIONS--

ext/ftp/tests/server.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ if ($pid) {
431431
}
432432

433433
} elseif (preg_match('/^EPSV/', $buf, $matches)) {
434-
fputs($s, "550 Extended passsive mode not supported.\r\n");
434+
fputs($s, "550 Extended passive mode not supported.\r\n");
435435
} elseif (preg_match('/^SITE EXEC/', $buf, $matches)) {
436436
fputs($s, "200 OK\r\n");
437437

0 commit comments

Comments
 (0)