Skip to content

Commit 7f84a2b

Browse files
committed
Fix miscellaneous typos in code comments/var names
1 parent 6998cc5 commit 7f84a2b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Zend/zend_builtin_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2004,7 +2004,7 @@ ZEND_FUNCTION(get_resource_type)
20042004
}
20052005
/* }}} */
20062006

2007-
/* {{{ proto array get_resources([string resouce_type])
2007+
/* {{{ proto array get_resources([string resource_type])
20082008
Get an array with all active resources */
20092009
ZEND_FUNCTION(get_resources)
20102010
{

Zend/zend_generators.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ void zend_register_generator_ce(void) /* {{{ */
12301230
zend_ce_generator->serialize = zend_class_serialize_deny;
12311231
zend_ce_generator->unserialize = zend_class_unserialize_deny;
12321232

1233-
/* get_iterator has to be assigned *after* implementing the inferface */
1233+
/* get_iterator has to be assigned *after* implementing the interface */
12341234
zend_class_implements(zend_ce_generator, 1, zend_ce_iterator);
12351235
zend_ce_generator->get_iterator = zend_generator_get_iterator;
12361236

ext/bz2/bz2_filter.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/* {{{ data structure */
2727

2828
enum strm_status {
29-
PHP_BZ2_UNITIALIZED,
29+
PHP_BZ2_UNINITIALIZED,
3030
PHP_BZ2_RUNNING,
3131
PHP_BZ2_FINISHED
3232
};
@@ -91,7 +91,7 @@ static php_stream_filter_status_t php_bz2_decompress_filter(
9191

9292
bucket = php_stream_bucket_make_writeable(buckets_in->head);
9393
while (bin < bucket->buflen) {
94-
if (data->status == PHP_BZ2_UNITIALIZED) {
94+
if (data->status == PHP_BZ2_UNINITIALIZED) {
9595
status = BZ2_bzDecompressInit(streamp, 0, data->small_footprint);
9696

9797
if (BZ_OK != status) {
@@ -119,7 +119,7 @@ static php_stream_filter_status_t php_bz2_decompress_filter(
119119
if (status == BZ_STREAM_END) {
120120
BZ2_bzDecompressEnd(&(data->strm));
121121
if (data->expect_concatenated) {
122-
data->status = PHP_BZ2_UNITIALIZED;
122+
data->status = PHP_BZ2_UNINITIALIZED;
123123
} else {
124124
data->status = PHP_BZ2_FINISHED;
125125
}
@@ -348,7 +348,7 @@ static php_stream_filter *php_bz2_filter_create(const char *filtername, zval *fi
348348
}
349349
}
350350

351-
data->status = PHP_BZ2_UNITIALIZED;
351+
data->status = PHP_BZ2_UNINITIALIZED;
352352
fops = &php_bz2_decompress_ops;
353353
} else if (strcasecmp(filtername, "bzip2.compress") == 0) {
354354
int blockSize100k = PHP_BZ2_FILTER_DEFAULT_BLOCKSIZE;

ext/spl/spl_directory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ static inline void spl_filesystem_object_get_file_name(spl_filesystem_object *in
217217
if (intern->file_name) {
218218
efree(intern->file_name);
219219
}
220-
/* if there is parent path, ammend it, otherwise just use the given path as is */
220+
/* if there is parent path, amend it, otherwise just use the given path as is */
221221
if (path_len == 0) {
222222
intern->file_name_len = spprintf(
223223
&intern->file_name, 0, "%s", intern->u.dir.entry.d_name);

0 commit comments

Comments
 (0)