Skip to content

Commit c3dda47

Browse files
committed
Fix 'can not' in test data and in code comments
1 parent 0a83142 commit c3dda47

26 files changed

+32
-31
lines changed

Zend/tests/bug47516.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #47516 (nowdoc can not be embed in heredoc but can be embed in double quote)
2+
Bug #47516 (nowdoc cannot be embedded in heredoc but can be embedded in double quote)
33
--FILE--
44
<?php
55
$s='substr';

Zend/tests/bug70805.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ $t[] = &$t;
3737
unset($t); // This is used to trigger C::__destruct while doing gc_colloct_roots
3838

3939
$e = $a;
40-
unset($a); // This one can not be putted into roots buf because it's full, thus gc_colloct_roots will be called,
40+
unset($a); // This one cannot be put into roots buf because it's full, thus gc_colloct_roots will be called,
4141
// but C::__destructor which is called in gc_colloct_roots will put $a into buf
42-
// which will make $a be putted into gc roots buf twice
42+
// which will make $a be put into gc roots buf twice
4343
var_dump(gc_collect_cycles());
4444
?>
4545
--EXPECT--

Zend/tests/bug70957.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #70957 (self::class can not be resolved with reflection for abstract class)
2+
Bug #70957 (self::class cannot be resolved with reflection for abstract class)
33
--FILE--
44
<?php
55

Zend/zend_vm_gen.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2403,15 +2403,15 @@ function gen_vm($def, $skel) {
24032403
// Load definition file
24042404
$in = @file($def);
24052405
if (!$in) {
2406-
die("ERROR: Can not open definition file '$def'\n");
2406+
die("ERROR: Cannot open definition file '$def'\n");
24072407
}
24082408
// We need absolute path to definition file to use it in #line directives
24092409
$definition_file = realpath($def);
24102410

24112411
// Load skeleton file
24122412
$skl = @file($skel);
24132413
if (!$skl) {
2414-
die("ERROR: Can not open skeleton file '$skel'\n");
2414+
die("ERROR: Cannot open skeleton file '$skel'\n");
24152415
}
24162416
// We need absolute path to skeleton file to use it in #line directives
24172417
$skeleton_file = realpath($skel);

ext/curl/tests/curl_copy_handle_basic_006.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ curl
2626
var_dump( curl_exec($ch) );
2727
var_dump( curl_exec($copy) );
2828

29-
curl_close($ch); // can not close original handle before curl_exec($copy) since it causes char * inputs to be invalid (see also: http://curl.haxx.se/libcurl/c/curl_easy_duphandle.html)
29+
curl_close($ch); // cannot close original handle before curl_exec($copy) since it causes char * inputs to be invalid (see also: http://curl.haxx.se/libcurl/c/curl_easy_duphandle.html)
3030
curl_close($copy);
3131

3232
?>

ext/date/tests/bug45543.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Test for bug #45543: DateTime::setTimezone can not set timezones without ID.
2+
Test for bug #45543: DateTime::setTimezone cannot set timezones without ID.
33
--INI--
44
date.timezone=UTC
55
--FILE--

ext/intl/grapheme/grapheme_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void grapheme_substr_ascii(char *str, size_t str_len, int32_t f, int32_t l, char
5353
*sub_str = NULL;
5454

5555
if(str_len > INT32_MAX) {
56-
/* We can not return long strings from ICU functions, so we won't here too */
56+
/* We cannot return long strings from ICU functions, so we won't here too */
5757
return;
5858
}
5959

ext/intl/intl_convert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void intl_convert_utf8_to_utf16(
6060
*status = U_ZERO_ERROR;
6161

6262
if(src_len > INT32_MAX) {
63-
/* we can not fit this string */
63+
/* we cannot fit this string */
6464
*status = U_BUFFER_OVERFLOW_ERROR;
6565
return;
6666
}

ext/mysqli/tests/bug34785.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #34785 (Can not properly subclass mysqli_stmt)
2+
Bug #34785 (Cannot properly subclass mysqli_stmt)
33
--EXTENSIONS--
44
mysqli
55
--SKIPIF--

ext/mysqli/tests/mysqli_options_openbasedir.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
1515

1616
if ($IS_MYSQLND) {
1717
if (true !== mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, 1))
18-
printf("[002] Can not set MYSQLI_OPT_LOCAL_INFILE although open_basedir is set!\n");
18+
printf("[002] Cannot set MYSQLI_OPT_LOCAL_INFILE although open_basedir is set!\n");
1919

2020
} else {
2121
if (false !== mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, 1))

0 commit comments

Comments
 (0)