Skip to content

Commit a5e80b2

Browse files
petkcmb69
authored andcommitted
Fix typos in code comments
1 parent a29a800 commit a5e80b2

File tree

26 files changed

+27
-27
lines changed

26 files changed

+27
-27
lines changed

Zend/zend_virtual_cwd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ CWD_API int virtual_chown(const char *filename, uid_t owner, gid_t group, int li
170170
/* One of the following constants must be used as the last argument
171171
in virtual_file_ex() call. */
172172

173-
#define CWD_EXPAND 0 /* expand "." and ".." but dont resolve symlinks */
173+
#define CWD_EXPAND 0 /* expand "." and ".." but don't resolve symlinks */
174174
#define CWD_FILEPATH 1 /* resolve symlinks if file is exist otherwise expand */
175175
#define CWD_REALPATH 2 /* call realpath(), resolve symlinks. File must exist */
176176

Zend/zend_vm_gen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ function opcode_name($name, $spec, $op1, $op2) {
705705
} else if (isset($opcode["op2"]["ANY"])) {
706706
$op2 = "ANY";
707707
} else if ($spec) {
708-
/* dispatch to unkonwn handler in unreachable code */
708+
/* dispatch to unknown handler in unreachable code */
709709
return "ZEND_NULL";
710710
}
711711
}

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ PHP_ARG_WITH(pear, [whether to install PEAR],
11441144
if test "$PHP_PEAR" != "no"; then
11451145

11461146
dnl
1147-
dnl PEAR dependancies
1147+
dnl PEAR dependencies
11481148
dnl
11491149
if test "$PHP_XML" = "no"; then
11501150
pear_error_msg="$pear_error_msg

ext/calendar/jewish.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@
272272
#define HALAKIM_PER_METONIC_CYCLE (HALAKIM_PER_LUNAR_CYCLE * (12 * 19 + 7))
273273

274274
#define JEWISH_SDN_OFFSET 347997
275-
#define JEWISH_SDN_MAX 324542846L /* 12/13/887605, greater value raises interger overflow */
275+
#define JEWISH_SDN_MAX 324542846L /* 12/13/887605, greater value raises integer overflow */
276276
#define NEW_MOON_OF_CREATION 31524
277277

278278
#define SUNDAY 0

ext/dom/node.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ PHP_FUNCTION(dom_node_clone_node)
13721372
}
13731373

13741374
/* When deep is false Element nodes still require the attributes
1375-
Following taken from libxml as xmlDocCopyNode doesnt do this */
1375+
Following taken from libxml as xmlDocCopyNode doesn't do this */
13761376
if (n->type == XML_ELEMENT_NODE && recursive == 0) {
13771377
if (n->nsDef != NULL) {
13781378
node->nsDef = xmlCopyNamespaceList(n->nsDef);

ext/filter/logical_filters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ static int _php_filter_validate_ipv6(char *str, size_t str_len) /* {{{ */
758758
return (blocks <= 8);
759759
}
760760
} else if ((str - 1) == s) {
761-
/* dont allow leading : without another : following */
761+
/* don't allow leading : without another : following */
762762
return 0;
763763
}
764764
}

ext/gmp/gmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ static int gmp_unserialize(zval *object, zend_class_entry *ce, const unsigned ch
604604
gmp_create(object, &gmpnum);
605605

606606
/* The "object" variable may be modified during the execution of this unserialize handler
607-
* (it may turn into a reference). Keep the original object around for futher operations. */
607+
* (it may turn into a reference). Keep the original object around for further operations. */
608608
ZVAL_COPY_VALUE(&object_copy, object);
609609

610610
p = buf;

ext/mbstring/php_mbregex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ mb_regex_groups_iter(const OnigUChar* name, const OnigUChar* name_end, int ngrou
665665
int gn, beg, end;
666666

667667
/*
668-
* In case of duplicate groups, keep only the last suceeding one
668+
* In case of duplicate groups, keep only the last succeeding one
669669
* to be consistent with preg_match with the PCRE_DUPNAMES option.
670670
*/
671671
gn = onig_name_to_backref_number(reg, name, name_end, args->region);

ext/mysqli/mysqli.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ PHP_MINFO_FUNCTION(mysqli)
978978
/* }}} */
979979

980980

981-
/* Dependancies */
981+
/* Dependencies */
982982
static const zend_module_dep mysqli_deps[] = {
983983
ZEND_MOD_REQUIRED("spl")
984984
#if defined(MYSQLI_USE_MYSQLND)

ext/mysqli/mysqli_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ mysqli_stmt_bind_result_do_bind(MY_STMT *stmt, zval *args, unsigned int argc)
542542
MYSQLI_REPORT_STMT_ERROR(stmt->stmt);
543543

544544
if (rc) {
545-
/* dont close the statement or subsequent usage (for example ->execute()) will lead to crash */
545+
/* don't close the statement or subsequent usage (for example ->execute()) will lead to crash */
546546
for (i=0; i < var_cnt ; i++) {
547547
if (stmt->result.buf[i].val) {
548548
efree(stmt->result.buf[i].val);

0 commit comments

Comments
 (0)