diff --git a/Zend/tests/bug47516.phpt b/Zend/tests/bug47516.phpt index a9a20710d30..76d6af196a4 100644 --- a/Zend/tests/bug47516.phpt +++ b/Zend/tests/bug47516.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #47516 (nowdoc can not be embed in heredoc but can be embed in double quote) +Bug #47516 (nowdoc cannot be embedded in heredoc but can be embedded in double quote) --FILE-- --EXPECT-- diff --git a/Zend/tests/bug70957.phpt b/Zend/tests/bug70957.phpt index 39970f91238..9341fcd288d 100644 --- a/Zend/tests/bug70957.phpt +++ b/Zend/tests/bug70957.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #70957 (self::class can not be resolved with reflection for abstract class) +Bug #70957 (self::class cannot be resolved with reflection for abstract class) --FILE-- diff --git a/ext/date/tests/bug45543.phpt b/ext/date/tests/bug45543.phpt index 1fdb23d4604..b96428a3d0e 100644 --- a/ext/date/tests/bug45543.phpt +++ b/ext/date/tests/bug45543.phpt @@ -1,5 +1,5 @@ --TEST-- -Test for bug #45543: DateTime::setTimezone can not set timezones without ID. +Test for bug #45543: DateTime::setTimezone cannot set timezones without ID. --INI-- date.timezone=UTC --FILE-- diff --git a/ext/intl/grapheme/grapheme_util.c b/ext/intl/grapheme/grapheme_util.c index 25a0b5dfb63..109172c36a9 100644 --- a/ext/intl/grapheme/grapheme_util.c +++ b/ext/intl/grapheme/grapheme_util.c @@ -53,7 +53,7 @@ void grapheme_substr_ascii(char *str, size_t str_len, int32_t f, int32_t l, char *sub_str = NULL; if(str_len > INT32_MAX) { - /* We can not return long strings from ICU functions, so we won't here too */ + /* We cannot return long strings from ICU functions, so we won't here too */ return; } diff --git a/ext/intl/intl_convert.c b/ext/intl/intl_convert.c index ec66b25d4e1..bb6d236fdfc 100644 --- a/ext/intl/intl_convert.c +++ b/ext/intl/intl_convert.c @@ -60,7 +60,7 @@ void intl_convert_utf8_to_utf16( *status = U_ZERO_ERROR; if(src_len > INT32_MAX) { - /* we can not fit this string */ + /* we cannot fit this string */ *status = U_BUFFER_OVERFLOW_ERROR; return; } diff --git a/ext/mysqli/tests/bug34785.phpt b/ext/mysqli/tests/bug34785.phpt index 88817b65062..c4bc19d9991 100644 --- a/ext/mysqli/tests/bug34785.phpt +++ b/ext/mysqli/tests/bug34785.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #34785 (Can not properly subclass mysqli_stmt) +Bug #34785 (Cannot properly subclass mysqli_stmt) --EXTENSIONS-- mysqli --SKIPIF-- diff --git a/ext/mysqli/tests/mysqli_options_openbasedir.phpt b/ext/mysqli/tests/mysqli_options_openbasedir.phpt index 75d324fd4f9..0797dd89ea6 100644 --- a/ext/mysqli/tests/mysqli_options_openbasedir.phpt +++ b/ext/mysqli/tests/mysqli_options_openbasedir.phpt @@ -15,7 +15,7 @@ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) if ($IS_MYSQLND) { if (true !== mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, 1)) - printf("[002] Can not set MYSQLI_OPT_LOCAL_INFILE although open_basedir is set!\n"); + printf("[002] Cannot set MYSQLI_OPT_LOCAL_INFILE although open_basedir is set!\n"); } else { if (false !== mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, 1)) diff --git a/ext/mysqli/tests/mysqli_select_db.phpt b/ext/mysqli/tests/mysqli_select_db.phpt index 0a64a7b7584..76f64df743c 100644 --- a/ext/mysqli/tests/mysqli_select_db.phpt +++ b/ext/mysqli/tests/mysqli_select_db.phpt @@ -56,11 +56,11 @@ require_once('skipifconnectfailure.inc'); $current_db = $row['dbname']; mysqli_report(MYSQLI_REPORT_OFF); - mysqli_select_db($link, 'I can not imagine that this database exists'); + mysqli_select_db($link, 'I cannot imagine that this database exists'); mysqli_report(MYSQLI_REPORT_ERROR); ob_start(); - mysqli_select_db($link, 'I can not imagine that this database exists'); + mysqli_select_db($link, 'I cannot imagine that this database exists'); $output = ob_get_contents(); ob_end_clean(); if (!stristr($output, "1049") && !stristr($output, "1044") && !stristr($output, "1045")) { diff --git a/ext/pcntl/tests/pcntl_fork_variation.phpt b/ext/pcntl/tests/pcntl_fork_variation.phpt index 81cc8343ac9..744c8aaffcf 100644 --- a/ext/pcntl/tests/pcntl_fork_variation.phpt +++ b/ext/pcntl/tests/pcntl_fork_variation.phpt @@ -1,5 +1,5 @@ --TEST-- -Test function pcntl_fork() by testing the process isolation in the forking hierarchy father -> son -> grandson where father can not knows his grandson +Test function pcntl_fork() by testing the process isolation in the forking hierarchy father -> son -> grandson where father cannot know his grandson --CREDITS-- Marco Fabbri mrfabbri@gmail.com Francesco Fullone ff@ideato.it diff --git a/ext/phar/tar.c b/ext/phar/tar.c index e56d3e8e321..07b784a0b9d 100644 --- a/ext/phar/tar.c +++ b/ext/phar/tar.c @@ -497,7 +497,7 @@ bail: entry.link = NULL; /* link field is null-terminated unless it has 100 non-null chars. - * Thus we can not use strlen. */ + * Thus we cannot use strlen. */ linkname_len = strnlen(hdr->linkname, 100); if (entry.tar_type == TAR_LINK) { if (!zend_hash_str_exists(&myphar->manifest, hdr->linkname, linkname_len)) { diff --git a/ext/reflection/tests/ReflectionClass_CannotClone_basic.phpt b/ext/reflection/tests/ReflectionClass_CannotClone_basic.phpt index 0e6e249bf90..58ce9c65dce 100644 --- a/ext/reflection/tests/ReflectionClass_CannotClone_basic.phpt +++ b/ext/reflection/tests/ReflectionClass_CannotClone_basic.phpt @@ -1,5 +1,5 @@ --TEST-- -Reflection class can not be cloned +Reflection class cannot be cloned --CREDITS-- Stefan Koopmanschap TestFest PHP|Tek diff --git a/ext/simplexml/tests/bug26976.phpt b/ext/simplexml/tests/bug26976.phpt index c539e7350f0..7c8dcd4143d 100644 --- a/ext/simplexml/tests/bug26976.phpt +++ b/ext/simplexml/tests/bug26976.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #26976 (Can not access array elements using array indices) +Bug #26976 (Cannot access array elements using array indices) --EXTENSIONS-- simplexml --FILE-- diff --git a/ext/sockets/tests/mcast_ipv6_send.phpt b/ext/sockets/tests/mcast_ipv6_send.phpt index cfaeb276211..eb99bccf5d8 100644 --- a/ext/sockets/tests/mcast_ipv6_send.phpt +++ b/ext/sockets/tests/mcast_ipv6_send.phpt @@ -9,10 +9,11 @@ if (getenv('CI_NO_IPV6') || !defined('IPPROTO_IPV6')) { die('skip IPv6 not available.'); } $level = IPPROTO_IPV6; -$s = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("skip Can not create socket"); +$s = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("skip Cannot create socket"); if (socket_set_option($s, $level, IPV6_MULTICAST_IF, 1) === false) { die("skip interface 1 either doesn't exist or has no ipv6 address"); } +?> --FILE-- causes infinite loop! */ + /* parent entry cannot be same as current section -> causes infinite loop! */ if (ctx->current_section_name != NULL && zend_string_equals_ci(ctx->current_section_name, Z_STR_P(arg2)) ) { diff --git a/ext/standard/hrtime.c b/ext/standard/hrtime.c index b033b256285..5d72e021c12 100644 --- a/ext/standard/hrtime.c +++ b/ext/standard/hrtime.c @@ -159,7 +159,7 @@ static zend_always_inline php_hrtime_t _timer_current(void) from an arbitrary point in time. If an optional boolean argument is passed, returns an integer on 64-bit platforms or float on 32-bit containing the current high-resolution time in nanoseconds. The - delivered timestamp is monotonic and can not be adjusted. */ + delivered timestamp is monotonic and cannot be adjusted. */ PHP_FUNCTION(hrtime) { #if HRTIME_AVAILABLE diff --git a/ext/standard/string.c b/ext/standard/string.c index e6a4c69a759..4608d954d4b 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1190,7 +1190,7 @@ PHPAPI void php_implode(const zend_string *glue, HashTable *pieces, zval *return } } ZEND_HASH_FOREACH_END(); - /* numelems can not be 0, we checked above */ + /* numelems cannot be 0, we checked above */ str = zend_string_safe_alloc(numelems - 1, ZSTR_LEN(glue), len, 0); cptr = ZSTR_VAL(str) + ZSTR_LEN(str); *cptr = 0; diff --git a/ext/standard/tests/array/array_filter_object.phpt b/ext/standard/tests/array/array_filter_object.phpt index 0c2b175e25e..90e3b294d20 100644 --- a/ext/standard/tests/array/array_filter_object.phpt +++ b/ext/standard/tests/array/array_filter_object.phpt @@ -47,7 +47,7 @@ class FinalClass { private $var4; final function finalMethod() { - echo 'This can not be overloaded'; + echo 'This cannot be overloaded'; } } diff --git a/ext/standard/tests/filters/bug22538.phpt b/ext/standard/tests/filters/bug22538.phpt index 920dd55c791..c3a8ea7b27c 100644 --- a/ext/standard/tests/filters/bug22538.phpt +++ b/ext/standard/tests/filters/bug22538.phpt @@ -15,7 +15,7 @@ do { $path2 = sprintf("%s/%s%db", __DIR__, uniqid(), time()); } while ($path1 == $path2); -$fp = fopen($path1, "w") or die("Can not open $path1\n"); +$fp = fopen($path1, "w") or die("Cannot open $path1\n"); $str = "abcdefghijklmnopqrstuvwxyz\n"; $str_len = strlen($str); $cnt = $size; @@ -24,8 +24,8 @@ while (($cnt -= $str_len) > 0) { } $cnt = $size - ($str_len + $cnt); fclose($fp); -$fin = fopen($path1, "r") or die("Can not open $path1\n"); -$fout = fopen($path2, "w") or die("Can not open $path2\n"); +$fin = fopen($path1, "r") or die("Cannot open $path1\n"); +$fout = fopen($path2, "w") or die("Cannot open $path2\n"); stream_filter_append($fout, "string.rot13"); my_stream_copy_to_stream($fin, $fout); fclose($fout); diff --git a/ext/xmlreader/tests/014.phpt b/ext/xmlreader/tests/014.phpt index b173f8e67c3..58bf26bab51 100644 --- a/ext/xmlreader/tests/014.phpt +++ b/ext/xmlreader/tests/014.phpt @@ -1,5 +1,5 @@ --TEST-- -XMLReader: libxml2 XML Reader, read-only element values can not be modified +XMLReader: libxml2 XML Reader, read-only element values cannot be modified --CREDITS-- Mark Baker mark@lange.demon.co.uk at the PHPNW2017 Conference for PHP Testfest 2017 --EXTENSIONS-- diff --git a/main/network.c b/main/network.c index 1ad7e370cca..47082ba3bb1 100644 --- a/main/network.c +++ b/main/network.c @@ -836,7 +836,7 @@ php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short ((struct sockaddr_in *)sa)->sin_port = htons(port); socklen = sizeof(struct sockaddr_in); if (bindto && strchr(bindto, ':')) { - /* IPV4 sock can not bind to IPV6 address */ + /* IPV4 sock cannot bind to IPV6 address */ bindto = NULL; } break; diff --git a/tests/classes/interface_constant_inheritance_006.phpt b/tests/classes/interface_constant_inheritance_006.phpt index dabec2cc6dd..caafec20f0d 100644 --- a/tests/classes/interface_constant_inheritance_006.phpt +++ b/tests/classes/interface_constant_inheritance_006.phpt @@ -1,5 +1,5 @@ --TEST-- -Ensure a interface can not have protected constants +Ensure an interface cannot have protected constants --FILE--