Skip to content

Fix miscellaneous typos in code comments/var names #5501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Zend/zend_builtin_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -1495,7 +1495,7 @@ ZEND_FUNCTION(get_resource_type)
}
/* }}} */

/* {{{ proto array get_resources([string resouce_type])
/* {{{ proto array get_resources([string resource_type])
Get an array with all active resources */
ZEND_FUNCTION(get_resources)
{
Expand Down
2 changes: 1 addition & 1 deletion Zend/zend_generators.c
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ void zend_register_generator_ce(void) /* {{{ */
zend_ce_generator->serialize = zend_class_serialize_deny;
zend_ce_generator->unserialize = zend_class_unserialize_deny;

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

Expand Down
8 changes: 4 additions & 4 deletions ext/bz2/bz2_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/* {{{ data structure */

enum strm_status {
PHP_BZ2_UNITIALIZED,
PHP_BZ2_UNINITIALIZED,
PHP_BZ2_RUNNING,
PHP_BZ2_FINISHED
};
Expand Down Expand Up @@ -89,7 +89,7 @@ static php_stream_filter_status_t php_bz2_decompress_filter(

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

if (BZ_OK != status) {
Expand Down Expand Up @@ -117,7 +117,7 @@ static php_stream_filter_status_t php_bz2_decompress_filter(
if (status == BZ_STREAM_END) {
BZ2_bzDecompressEnd(&(data->strm));
if (data->expect_concatenated) {
data->status = PHP_BZ2_UNITIALIZED;
data->status = PHP_BZ2_UNINITIALIZED;
} else {
data->status = PHP_BZ2_FINISHED;
}
Expand Down Expand Up @@ -347,7 +347,7 @@ static php_stream_filter *php_bz2_filter_create(const char *filtername, zval *fi
}
}

data->status = PHP_BZ2_UNITIALIZED;
data->status = PHP_BZ2_UNINITIALIZED;
fops = &php_bz2_decompress_ops;
} else if (strcasecmp(filtername, "bzip2.compress") == 0) {
int blockSize100k = PHP_BZ2_FILTER_DEFAULT_BLOCKSIZE;
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/Optimizer/block_pass.c
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,7 @@ void zend_optimize_cfg(zend_op_array *op_array, zend_optimizer_ctx *ctx)
if (!(b->flags & ZEND_BB_REACHABLE)) {
continue;
}
/* we track data dependencies only insight a single basic block */
/* we track data dependencies only inside a single basic block */
if (!(b->flags & ZEND_BB_FOLLOW) ||
(b->flags & ZEND_BB_TARGET)) {
/* Skip continuation of "extended" BB */
Expand Down
2 changes: 1 addition & 1 deletion ext/spl/spl_directory.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ static inline void spl_filesystem_object_get_file_name(spl_filesystem_object *in
if (intern->file_name) {
efree(intern->file_name);
}
/* if there is parent path, ammnd it, otherwise just use the given path as is */
/* if there is parent path, amend it, otherwise just use the given path as is */
if (path_len == 0) {
intern->file_name_len = spprintf(
&intern->file_name, 0, "%s", intern->u.dir.entry.d_name);
Expand Down