Skip to content

Commit d63eca2

Browse files
TysonAndrekocsismate
authored andcommitted
Fix miscellaneous typos in code comments/var names
Closes GH-5501
1 parent 31a626c commit d63eca2

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Zend/zend_builtin_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ ZEND_FUNCTION(get_resource_type)
14951495
}
14961496
/* }}} */
14971497

1498-
/* {{{ proto array get_resources([string resouce_type])
1498+
/* {{{ proto array get_resources([string resource_type])
14991499
Get an array with all active resources */
15001500
ZEND_FUNCTION(get_resources)
15011501
{

Zend/zend_generators.c

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

1139-
/* get_iterator has to be assigned *after* implementing the inferface */
1139+
/* get_iterator has to be assigned *after* implementing the interface */
11401140
zend_class_implements(zend_ce_generator, 1, zend_ce_iterator);
11411141
zend_ce_generator->get_iterator = zend_generator_get_iterator;
11421142

ext/bz2/bz2_filter.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/* {{{ data structure */
2525

2626
enum strm_status {
27-
PHP_BZ2_UNITIALIZED,
27+
PHP_BZ2_UNINITIALIZED,
2828
PHP_BZ2_RUNNING,
2929
PHP_BZ2_FINISHED
3030
};
@@ -89,7 +89,7 @@ static php_stream_filter_status_t php_bz2_decompress_filter(
8989

9090
bucket = php_stream_bucket_make_writeable(buckets_in->head);
9191
while (bin < bucket->buflen) {
92-
if (data->status == PHP_BZ2_UNITIALIZED) {
92+
if (data->status == PHP_BZ2_UNINITIALIZED) {
9393
status = BZ2_bzDecompressInit(streamp, 0, data->small_footprint);
9494

9595
if (BZ_OK != status) {
@@ -117,7 +117,7 @@ static php_stream_filter_status_t php_bz2_decompress_filter(
117117
if (status == BZ_STREAM_END) {
118118
BZ2_bzDecompressEnd(&(data->strm));
119119
if (data->expect_concatenated) {
120-
data->status = PHP_BZ2_UNITIALIZED;
120+
data->status = PHP_BZ2_UNINITIALIZED;
121121
} else {
122122
data->status = PHP_BZ2_FINISHED;
123123
}
@@ -347,7 +347,7 @@ static php_stream_filter *php_bz2_filter_create(const char *filtername, zval *fi
347347
}
348348
}
349349

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

ext/opcache/Optimizer/block_pass.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,7 @@ void zend_optimize_cfg(zend_op_array *op_array, zend_optimizer_ctx *ctx)
18721872
if (!(b->flags & ZEND_BB_REACHABLE)) {
18731873
continue;
18741874
}
1875-
/* we track data dependencies only insight a single basic block */
1875+
/* we track data dependencies only inside a single basic block */
18761876
if (!(b->flags & ZEND_BB_FOLLOW) ||
18771877
(b->flags & ZEND_BB_TARGET)) {
18781878
/* Skip continuation of "extended" BB */

ext/spl/spl_directory.c

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

0 commit comments

Comments
 (0)