Skip to content

Commit 02e4d7a

Browse files
committed
Merge branch 'pull-request/341'
* pull-request/341: (23 commits) typofixes
1 parent ec79075 commit 02e4d7a

File tree

228 files changed

+317
-317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+317
-317
lines changed

README.TESTING

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[IMPORTANT NOTICE]
22
------------------
3-
Failed tests usualy indicate a problem with your local system setup
3+
Failed tests usually indicate a problem with your local system setup
44
and not within PHP itself (at least for official PHP release versions).
55
You may decide to automaticaly submit a test summary to our QA workflow
66
at the end of a test run.

Zend/ZEND_CHANGES

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ Changes in the Zend Engine 2.0
435435
that of other object-oriented languages, such as Java: When the
436436
last reference to an object is destroyed the object's
437437
destructor, which is a class method name __destruct() that
438-
recieves no parameters, is called before the object is freed
438+
receives no parameters, is called before the object is freed
439439
from memory.
440440

441441
Example:

Zend/tests/019.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ var_dump($global_var);
357357
test_unset3();
358358
var_dump($global_var);
359359

360-
//Note: No error conditions relating to passing arugments can be tested
360+
//Note: No error conditions relating to passing arguments can be tested
361361
// because these are not functions but statements, it will result in syntax error.
362362
?>
363363
===DONE===

Zend/tests/bug32428.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #32428 (The @ warning error supression operator is broken)
2+
Bug #32428 (The @ warning error suppression operator is broken)
33
--FILE--
44
<?php
55
$data = @$not_exists;

Zend/tests/gc_007.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
GC 007: Unreferensed array cycle
2+
GC 007: Unreferenced array cycle
33
--INI--
44
zend.enable_gc=1
55
--FILE--

Zend/tests/gc_008.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
GC 008: Unreferensed object cycle
2+
GC 008: Unreferenced object cycle
33
--INI--
44
zend.enable_gc=1
55
--FILE--

Zend/tests/gc_009.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
GC 009: Unreferensed array-object cycle
2+
GC 009: Unreferenced array-object cycle
33
--INI--
44
zend.enable_gc=1
55
--FILE--

Zend/zend_API.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ ZEND_API void object_properties_init(zend_object *object, zend_class_entry *clas
11721172

11731173
/* This function requires 'properties' to contain all props declared in the
11741174
* class and all props being public. If only a subset is given or the class
1175-
* has protected members then you need to merge the properties seperately by
1175+
* has protected members then you need to merge the properties separately by
11761176
* calling zend_merge_properties(). */
11771177
ZEND_API int _object_and_properties_init(zval *arg, zend_class_entry *class_type, HashTable *properties ZEND_FILE_LINE_DC TSRMLS_DC) /* {{{ */
11781178
{

Zend/zend_compile.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3941,7 +3941,7 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, const
39413941
#endif
39423942
} else {
39433943
/* inherited members are overridden by members inserted by traits */
3944-
/* check whether the trait method fullfills the inheritance requirements */
3944+
/* check whether the trait method fulfills the inheritance requirements */
39453945
do_inheritance_check_on_method(fn, existing_fn TSRMLS_CC);
39463946
}
39473947
}
@@ -7176,7 +7176,7 @@ ZEND_API size_t zend_dirname(char *path, size_t len)
71767176
}
71777177
#elif defined(NETWARE)
71787178
/*
7179-
* Find the first occurence of : from the left
7179+
* Find the first occurrence of : from the left
71807180
* move the path pointer to the position just after :
71817181
* increment the len_adjust to the length of path till colon character(inclusive)
71827182
* If there is no character beyond : simple return len

Zend/zend_operators.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,7 @@ ZEND_API int compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) /* {
15301530
/* If both are objects sharing the same comparision handler then use is */
15311531
if (Z_OBJ_HANDLER_P(op1,compare_objects) == Z_OBJ_HANDLER_P(op2,compare_objects)) {
15321532
if (Z_OBJ_HANDLE_P(op1) == Z_OBJ_HANDLE_P(op2)) {
1533-
/* object handles are identical, apprently this is the same object */
1533+
/* object handles are identical, apparently this is the same object */
15341534
ZVAL_LONG(result, 0);
15351535
return SUCCESS;
15361536
}

acinclude.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@ AC_TRY_COMPILE([
18321832
])
18331833

18341834
dnl -------------------------------------------------------------------------
1835-
dnl Library/function existance and build sanity checks
1835+
dnl Library/function existence and build sanity checks
18361836
dnl -------------------------------------------------------------------------
18371837

18381838
dnl

build/shtool

+2-2
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,11 @@ while [ $# -gt 0 ]; do
376376
eval "opt_${opt_OPT}=yes"
377377
;;
378378
':' )
379-
# option with argument (multiple occurances override)
379+
# option with argument (multiple occurrences override)
380380
eval "opt_${opt_OPT}=\"\$opt_ARG\""
381381
;;
382382
'+' )
383-
# option with argument (multiple occurances append)
383+
# option with argument (multiple occurrences append)
384384
eval "opt_${opt_OPT}=\"\$opt_${opt_OPT}\${ASC_NL}\$opt_ARG\""
385385
;;
386386
* )

ext/bz2/bz2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ static PHP_FUNCTION(bzcompress)
518518
efree(dest);
519519
RETURN_LONG(error);
520520
} else {
521-
/* Copy the buffer, we have perhaps allocate alot more than we need,
521+
/* Copy the buffer, we have perhaps allocate a lot more than we need,
522522
so we erealloc() the buffer to the proper size */
523523
dest = erealloc(dest, dest_len + 1);
524524
dest[dest_len] = 0;

ext/com_dotnet/com_variant.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ PHP_FUNCTION(com_variant_create_instance)
429429
/* If already an array and VT_ARRAY is passed then:
430430
- if only VT_ARRAY passed then do not perform a conversion
431431
- if VT_ARRAY plus other type passed then perform conversion
432-
but will probably fail (origional behavior)
432+
but will probably fail (original behavior)
433433
*/
434434
if ((vt & VT_ARRAY) && (V_VT(&obj->v) & VT_ARRAY)) {
435435
long orig_vt = vt;

ext/date/tests/date_sunrise_and_sunset_basic.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ offset: +1 GMT
1414

1515
echo "Basic test for date_sunrise() and date_sunset()\n";
1616

17-
// supress date() function strict msgs
17+
// suppress date() function strict msgs
1818
error_reporting(E_ALL & ~E_STRICT);
1919

2020
echo date("D M d Y") . ', sunrise time : ' . date_sunrise(time(), SUNFUNCS_RET_STRING, 38.4, -9, 90, 1) . "\n";

ext/dba/tests/dba_cdb_read.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ DBA CDB handler test (read only)
2020
$keys .= $a;
2121
$count++;
2222
}
23-
// display number of entries and key existance
23+
// display number of entries and key existence
2424
echo $count;
2525
for ($i=1; $i<8; $i++) {
2626
echo dba_exists($i, $db_file) ? "Y" : "N";

ext/dom/element.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ PHP_METHOD(domelement, __construct)
177177
RETURN_FALSE;
178178
}
179179

180-
/* Namespace logic is seperate and only when uri passed in to insure no BC breakage */
180+
/* Namespace logic is separate and only when uri passed in to insure no BC breakage */
181181
if (uri_len > 0) {
182182
errorcode = dom_check_qname(name, &localname, &prefix, uri_len, name_len);
183183
if (errorcode == 0) {

ext/dom/tests/DOMNode_removeChild_basic.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $root = $dom->documentElement;
3939

4040
$children = $root->childNodes;
4141
$len = $children->length;
42-
echo "orignal has $len nodes\n";
42+
echo "original has $len nodes\n";
4343
for ($index = $children->length - 1; $index >=0; $index--) {
4444
echo "node $index\n";
4545
$current = $children->item($index);
@@ -58,7 +58,7 @@ for ($index = 0; $index < $children->length; $index++) {
5858
}
5959

6060
--EXPECTF--
61-
orignal has 5 nodes
61+
original has 5 nodes
6262
node 4
6363
Course: no title:DOMText
6464
~string(1) "

ext/enchant/enchant.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ PHP_FUNCTION(enchant_broker_free_dict)
651651
/* }}} */
652652

653653
/* {{{ proto bool enchant_broker_dict_exists(resource broker, string tag)
654-
Wether a dictionary exists or not. Using non-empty tag */
654+
Whether a dictionary exists or not. Using non-empty tag */
655655
PHP_FUNCTION(enchant_broker_dict_exists)
656656
{
657657
zval *broker;

ext/exif/tests/exif_tagname_variation1.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ $values = array (
7878

7979

8080
// loop through each element of the array and check the working of exif_tagname()
81-
// when $index arugment is supplied with different values
81+
// when $index argument is supplied with different values
8282

8383
echo "\n--- Testing exif_tagname() by supplying different values for 'index' argument ---\n";
8484
$counter = 1;

ext/fileinfo/tests/finfo_phpinfo_basic.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Test finfo extention : loading into phpinfo()
2+
Test finfo extension : loading into phpinfo()
33
--SKIPIF--
44
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
55
--FILE--

ext/fileinfo/tests/magic

+3-3
Original file line numberDiff line numberDiff line change
@@ -4957,7 +4957,7 @@
49574957
>>>>0 ubelong =0 \b, next free block index %lu
49584958
>>>>0 ubelong !0 \b, next free block index %lu
49594959
>>>512 default x dBase IV DBT
4960-
# DBF file name without extention
4960+
# DBF file name without extension
49614961
>>>>8 string >\0 \b of %-.8s.DBF
49624962
# size of blocks ; not reliable 0x2020204C
49634963
#>>>>4 ulelong =0 \b, blocks size %lu
@@ -13205,7 +13205,7 @@
1320513205
# they have their real name at offset 22
1320613206
>>>>>22 string >\0 \b%-.5s
1320713207
>4 uleshort&0x8000 0x0000
13208-
# 32 bit sector adressing ( > 32 MB) for block devices
13208+
# 32 bit sector addressing ( > 32 MB) for block devices
1320913209
>>4 uleshort&0x0002 0x0002 \b,32-bit sector-
1321013210
# support by driver functions 13h, 17h, 18h
1321113211
>4 uleshort&0x0040 0x0040 \b,IOCTL-
@@ -17951,7 +17951,7 @@
1795117951
# 00030 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ................
1795217952
# 00040 00 00 00 00 ff ff ff ff ff ff ff ff 02 00 00 00 ................
1795317953
#
17954-
# GRR this test is still too general as it catches example adressen.dbt
17954+
# GRR this test is still too general as it catches example addressen.dbt
1795517955
0 belong 0x03000000
1795617956
>8 ubelong 0xec020000 VMS Alpha executable
1795717957
>>75264 string PK\003\004 \b, Info-ZIP SFX archive v5.12 w/decryption

ext/gd/tests/imagecopyresampled_basic.phpt

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ imagefilledellipse($image_lge, 200, 150, 300, 200, $col_ellipse);
3535
imagepng($image_lge, $dest_lge);
3636

3737
// Get new dimensions
38-
$percent = 0.5; // new image 50% of orginal
38+
$percent = 0.5; // new image 50% of original
3939
list($width, $height) = getimagesize($dest_lge);
40-
echo "Size of orginal: width=". $width . " height=" . $height . "\n";
40+
echo "Size of original: width=". $width . " height=" . $height . "\n";
4141

4242
$new_width = $width * $percent;
4343
$new_height = $height * $percent;
@@ -66,6 +66,6 @@ echo "Done\n";
6666
?>
6767
--EXPECT--
6868
Simple test of imagecopyresampled() function
69-
Size of orginal: width=400 height=300
69+
Size of original: width=400 height=300
7070
Size of copy: width=200 height=150
7171
Done

ext/hash/tests/mhash_002.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $supported_hash_al = array(
2424
"CRC32" => 4,
2525
"CRC32B" => 4,
2626
"ADLER32" => 4,
27-
"NA_XYZ" => 0 /* verify that the algorythm works */
27+
"NA_XYZ" => 0 /* verify that the algorithm works */
2828
);
2929

3030
$hc = mhash_count() + 1;

ext/imap/tests/imap_include.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function displayOverviewFields($resp, $fields=null) {
6161
* @param string mailbox_suffix Suffix used to uniquely identify mailboxes
6262
* @param int message_count number of test msgs to be written to new mailbox
6363
*
64-
* @return IMAP stream to new mailbox on sucesss; FALSE on failure
64+
* @return IMAP stream to new mailbox on success; FALSE on failure
6565
*/
6666
function setup_test_mailbox($mailbox_suffix, $message_count, &$new_mailbox = null, $msg_type = "simple"){
6767
global $server, $default_mailbox, $username, $password;

ext/interbase/tests/005.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ InterBase: transactions
1818

1919
/*
2020
Difference between default and other transactions:
21-
default commited when you call ibase_close().
21+
default committed when you call ibase_close().
2222
Other transaction doing rollback.
2323
2424
If you not open default transaction with
@@ -158,7 +158,7 @@ three transaction on default link
158158

159159
ibase_free_result($res);
160160

161-
/* tr_4 IBASE_COMMITED + IBASE_REC_NO_VERSION + IBASE_NOWAIT */
161+
/* tr_4 IBASE_COMMITTED + IBASE_REC_NO_VERSION + IBASE_NOWAIT */
162162
$res = ibase_query($tr_4, "select * from test5");
163163

164164
echo "three rows in fourth transaction with deadlock\n";

ext/intl/doc/Tutorial.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Examle of locales format: 'en_US', 'ru_UA', 'ua_UA' (see http://demo.icu-project
77

88

99
2. Collator::getDisplayName( $obj_locale, $disp_locale ).
10-
Get name of the object for the desired Locale, in the desired langauge. Both arguments
10+
Get name of the object for the desired Locale, in the desired language. Both arguments
1111
must be from getAvailableLocales method.
1212

1313
@param string $obj_locale Locale to get display name for.

ext/intl/doc/grapheme_api.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function grapheme_substr($string, $start, $length = -1) {}
9898
* @param string $haystack The input string.
9999
* @param string $needle The string to look for.
100100
* @param [boolean] $before_needle If TRUE (the default is FALSE), grapheme_strstr() returns the part of the
101-
haystack before the first occurence of the needle.
101+
haystack before the first occurrence of the needle.
102102
* @return string Returns the portion of string, or FALSE if needle is not found.
103103
*/
104104
function grapheme_strstr($haystack, $needle, $before_needle = FALSE) {}
@@ -109,7 +109,7 @@ function grapheme_strstr($haystack, $needle, $before_needle = FALSE) {}
109109
* @param string $haystack The input string.
110110
* @param string $needle The string to look for.
111111
* @param [boolean] $before_needle If TRUE (the default is FALSE), grapheme_strstr() returns the part of the
112-
haystack before the first occurence of the needle.
112+
haystack before the first occurrence of the needle.
113113
* @return string Returns the portion of string, or FALSE if needle is not found.
114114
*/
115115
function grapheme_stristr($haystack, $needle, $before_needle = FALSE) {}

ext/intl/doc/msgfmt_api.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static function create($locale, $pattern) {}
3131
/**
3232
* Format the message
3333
* @param array $args arguments to insert into the pattern string
34-
* @return string the formatted string, or false if an error ocurred
34+
* @return string the formatted string, or false if an error occurred
3535
*/
3636
public function format($args) {}
3737

@@ -124,7 +124,7 @@ function msgfmt_create($locale, $pattern) {}
124124
* Format the message
125125
* @param MessageFormatter $fmt The message formatter
126126
* @param array $args arguments to insert into the pattern string
127-
* @return string the formatted string, or false if an error ocurred
127+
* @return string the formatted string, or false if an error occurred
128128
*/
129129
function msgfmt_format($fmt, $args) {}
130130

ext/libxml/tests/bug61367-read.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ error_reporting=E_ALL & ~E_NOTICE
88
--FILE--
99
<?php
1010
/*
11-
* Note: Using error_reporting=E_ALL & ~E_NOTICE to supress "Trying to get property of non-object" notices.
11+
* Note: Using error_reporting=E_ALL & ~E_NOTICE to suppress "Trying to get property of non-object" notices.
1212
*/
1313
class StreamExploiter {
1414
public function stream_close ( ) {

ext/mbstring/README_PHP3-i18n-ja

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ o i18n.script_encoding - script encoding
408408
entering the script parser.
409409

410410
Be aware that auto detection may fail under some conditions.
411-
For best auto detection, add multibyte charactor at begining of
411+
For best auto detection, add multibyte charactor at beginning of
412412
script.
413413

414414

ext/mbstring/libmbfl/filters/unicode_table_jis2004.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4643,7 +4643,7 @@ static const int ucs_r2_jisx0213_min = 0xFA0F;
46434643
static const int ucs_r2_jisx0213_max = 0xFA6A;
46444644

46454645
/*
4646-
CJK Compatibility Ideographs: U+F900 - U+FAFF (seperate mapping for U+F9XX)
4646+
CJK Compatibility Ideographs: U+F900 - U+FAFF (separate mapping for U+F9XX)
46474647
*/
46484648
static const unsigned short ucs_r2b_jisx0213_cmap_key[] = {
46494649
0xf91d,0xf928,0xf929,0xf936,0xf970,0xf9d0,0xf9dc};

ext/mbstring/oniguruma/HISTORY

+1-1
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,7 @@ History
18121812
2003/01/31: [impl] rename TTRANS() to TOLOWER().
18131813
2003/01/30: [bug] .c.o --> .c.obj in win32\Makefile.
18141814
2003/01/30: [impl] add -DNOT_RUBY to Makefile.in.
1815-
NOT_RUBY is refered in regint.h for escape double
1815+
NOT_RUBY is referred in regint.h for escape double
18161816
including config.h.
18171817
2003/01/30: [impl] when string hasn't case ambiguity, don't compile
18181818
to ignore case opcode.

ext/mbstring/php_mbregex.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ _php_mb_regex_init_options(const char *parg, int narg, OnigOptionType *option, O
648648
/* }}} */
649649

650650
/*
651-
* php funcions
651+
* php functions
652652
*/
653653

654654
/* {{{ proto string mb_regex_encoding([string encoding])

ext/mysqli/tests/bug34810.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class DbConnection {
1616
var_dump($link);
1717

1818
$link = mysqli_init();
19-
/* @ is to supress 'Property access is not allowed yet' */
19+
/* @ is to suppress 'Property access is not allowed yet' */
2020
@var_dump($link);
2121

2222
$mysql = new my_mysqli($host, $user, $passwd, $db, $port, $socket);

ext/mysqlnd/mysqlnd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, list_fields)(MYSQLND_CONN_DATA * conn, const c
14551455
}
14561456

14571457
if (FAIL == result->m.read_result_metadata(result, conn TSRMLS_CC)) {
1458-
DBG_ERR("Error ocurred while reading metadata");
1458+
DBG_ERR("Error occurred while reading metadata");
14591459
result->m.free_result(result, TRUE TSRMLS_CC);
14601460
result = NULL;
14611461
break;

0 commit comments

Comments
 (0)