Skip to content

Commit a5e80b2

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

26 files changed

+27
-27
lines changed

Zend/zend_virtual_cwd.h

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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);

ext/mysqli/mysqli_result_iterator.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static void php_mysqli_result_iterator_dtor(zend_object_iterator *iter)
6666
{
6767
php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*)iter;
6868

69-
/* cleanup handled in sxe_object_dtor as we dont always have an iterator wrapper */
69+
/* cleanup handled in sxe_object_dtor as we don't always have an iterator wrapper */
7070
zval_ptr_dtor(&iterator->intern.data);
7171
zval_ptr_dtor(&iterator->current_row);
7272
}

ext/opcache/Optimizer/zend_func_info.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "zend_ssa.h"
2323

2424
/* func flags */
25-
#define ZEND_FUNC_INDIRECT_VAR_ACCESS (1<<0) /* accesses varables by name */
25+
#define ZEND_FUNC_INDIRECT_VAR_ACCESS (1<<0) /* accesses variables by name */
2626
#define ZEND_FUNC_HAS_CALLS (1<<1)
2727
#define ZEND_FUNC_VARARG (1<<2) /* uses func_get_args() */
2828
#define ZEND_FUNC_NO_LOOPS (1<<3)

ext/opcache/Optimizer/zend_ssa.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ typedef struct _zend_ssa_var {
113113
zend_ssa_phi *definition_phi; /* phi that defines this value */
114114
int use_chain; /* uses of this value, linked through opN_use_chain */
115115
zend_ssa_phi *phi_use_chain; /* uses of this value in Phi, linked through use_chain */
116-
zend_ssa_phi *sym_use_chain; /* uses of this value in Pi constaints */
116+
zend_ssa_phi *sym_use_chain; /* uses of this value in Pi constraints */
117117
unsigned int no_val : 1; /* value doesn't mater (used as op1 in ZEND_ASSIGN) */
118118
unsigned int scc_entry : 1;
119119
unsigned int alias : 2; /* value may be changed indirectly */

ext/pcre/upgrade-pcre.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function recurse($path)
6161
die("$newfile is not available any more\n");
6262
}
6363

64-
// maintain file mtimes so that cvs doesnt get crazy
64+
// maintain file mtimes so that cvs doesn't get crazy
6565
if (file_get_contents($newfile) !== file_get_contents($file)) {
6666
copy($newfile, $file);
6767
}

ext/pgsql/pgsql.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ static PHP_GINIT_FUNCTION(pgsql)
10931093
ZEND_TSRMLS_CACHE_UPDATE();
10941094
#endif
10951095
memset(pgsql_globals, 0, sizeof(zend_pgsql_globals));
1096-
/* Initilize notice message hash at MINIT only */
1096+
/* Initialize notice message hash at MINIT only */
10971097
zend_hash_init_ex(&pgsql_globals->notices, 0, NULL, ZVAL_PTR_DTOR, 1, 0);
10981098
}
10991099
/* }}} */

ext/session/session.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ PHPAPI int php_session_start(void) /* {{{ */
15441544
PS(define_sid) = 0;
15451545
}
15461546
}
1547-
/* Initilize session ID from non cookie values */
1547+
/* Initialize session ID from non cookie values */
15481548
if (!PS(use_only_cookies)) {
15491549
if (!PS(id) && (data = zend_hash_str_find(&EG(symbol_table), "_GET", sizeof("_GET") - 1))) {
15501550
ZVAL_DEREF(data);

ext/shmop/README

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int shmop_open(int key, string flags, int mode, int size)
2626
mode - acsess mode same as for a file (0644) for example
2727
size - size of the block in bytes
2828

29-
returns an indentifier
29+
returns an identifier
3030

3131

3232
char shmop_read(int shmid, int start, int count)

ext/simplexml/simplexml.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2410,7 +2410,7 @@ static void php_sxe_iterator_dtor(zend_object_iterator *iter) /* {{{ */
24102410
{
24112411
php_sxe_iterator *iterator = (php_sxe_iterator *)iter;
24122412

2413-
/* cleanup handled in sxe_object_dtor as we dont always have an iterator wrapper */
2413+
/* cleanup handled in sxe_object_dtor as we don't always have an iterator wrapper */
24142414
if (!Z_ISUNDEF(iterator->intern.data)) {
24152415
zval_ptr_dtor(&iterator->intern.data);
24162416
}

ext/soap/interop/client_round2_run.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
$iop = new Interop_Client();
2222
$iop->html = 0;
2323

24-
// force a fetch of endpoints, this happens irregardless if no endpoints in database
24+
// force a fetch of endpoints, this happens regardless if no endpoints in database
2525
$iop->fetchEndpoints();
2626

2727
// set some options

ext/soap/php_http.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ int make_http_soap_request(zval *this_ptr,
946946
/* Grab and send back every cookie */
947947

948948
/* Not going to worry about Path: because
949-
we shouldn't be changing urls so path dont
949+
we shouldn't be changing urls so path doesn't
950950
matter too much
951951
*/
952952
cookie_itt = strstr(ZSTR_VAL(http_headers), "Set-Cookie: ");

ext/spl/spl_directory.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2914,7 +2914,7 @@ SPL_METHOD(SplFileObject, fread)
29142914
ZVAL_NEW_STR(return_value, zend_string_alloc(length, 0));
29152915
Z_STRLEN_P(return_value) = php_stream_read(intern->u.file.stream, Z_STRVAL_P(return_value), length);
29162916

2917-
/* needed because recv/read/gzread doesnt put a null at the end*/
2917+
/* needed because recv/read/gzread doesn't put a null at the end*/
29182918
Z_STRVAL_P(return_value)[Z_STRLEN_P(return_value)] = 0;
29192919
}
29202920

ext/standard/base64.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ static __m128i php_base64_encode_ssse3_translate(__m128i in)
396396
/* mask is 0xFF (-1) for range #[1..4] and 0x00 for range #0: */
397397
mask = _mm_cmpgt_epi8(in, _mm_set1_epi8(25));
398398

399-
/* substract -1, so add 1 to indices for range #[1..4], All indices are now correct: */
399+
/* subtract -1, so add 1 to indices for range #[1..4], All indices are now correct: */
400400
indices = _mm_sub_epi8(indices, mask);
401401

402402
/* Add offsets to input values: */

ext/standard/file.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ PHPAPI PHP_FUNCTION(fgetss)
11211121

11221122
len = (size_t) bytes;
11231123
buf = safe_emalloc(sizeof(char), (len + 1), 0);
1124-
/*needed because recv doesnt set null char at end*/
1124+
/*needed because recv doesn't set null char at end*/
11251125
memset(buf, 0, len + 1);
11261126
}
11271127

@@ -1816,7 +1816,7 @@ PHPAPI PHP_FUNCTION(fread)
18161816
ZVAL_NEW_STR(return_value, zend_string_alloc(len, 0));
18171817
Z_STRLEN_P(return_value) = php_stream_read(stream, Z_STRVAL_P(return_value), len);
18181818

1819-
/* needed because recv/read/gzread doesnt put a null at the end*/
1819+
/* needed because recv/read/gzread doesn't put a null at the end*/
18201820
Z_STRVAL_P(return_value)[Z_STRLEN_P(return_value)] = 0;
18211821

18221822
if (Z_STRLEN_P(return_value) < len / 2) {

main/rfc1867.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ static int find_boundary(multipart_buffer *self, char *boundary)
392392
{
393393
char *line;
394394

395-
/* loop thru lines */
395+
/* loop through lines */
396396
while( (line = get_line(self)) )
397397
{
398398
/* finished if we found the boundary */

main/streams/mmap.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t le
3030
range.mapped = NULL;
3131

3232
/* For now, we impose an arbitrary limit to avoid
33-
* runaway swapping when large files are passed thru. */
33+
* runaway swapping when large files are passed through. */
3434
if (length > 4 * 1024 * 1024) {
3535
return NULL;
3636
}

win32/codepage.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ PW32CP char *php_win32_cp_conv_w_to_cur(const wchar_t* in, size_t in_len, size_t
7676
PW32CP wchar_t *php_win32_cp_env_any_to_w(const char* env);
7777

7878
/* This function tries to make the best guess to convert any
79-
given string to a wide char, also prefering the fastest code
79+
given string to a wide char, also preferring the fastest code
8080
path to unicode. It returns NULL on fail. */
8181
__forceinline static wchar_t *php_win32_cp_conv_any_to_w(const char* in, size_t in_len, size_t *out_len)
8282
{/*{{{*/

0 commit comments

Comments
 (0)