mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix 'can not' in test data and in code comments
This commit is contained in:
parent
0a831423f7
commit
c3dda473cc
26 changed files with 32 additions and 31 deletions
|
@ -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--
|
||||
<?php
|
||||
$s='substr';
|
||||
|
|
|
@ -37,9 +37,9 @@ $t[] = &$t;
|
|||
unset($t); // This is used to trigger C::__destruct while doing gc_colloct_roots
|
||||
|
||||
$e = $a;
|
||||
unset($a); // This one can not be putted into roots buf because it's full, thus gc_colloct_roots will be called,
|
||||
unset($a); // This one cannot be put into roots buf because it's full, thus gc_colloct_roots will be called,
|
||||
// but C::__destructor which is called in gc_colloct_roots will put $a into buf
|
||||
// which will make $a be putted into gc roots buf twice
|
||||
// which will make $a be put into gc roots buf twice
|
||||
var_dump(gc_collect_cycles());
|
||||
?>
|
||||
--EXPECT--
|
||||
|
|
|
@ -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--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -2403,7 +2403,7 @@ function gen_vm($def, $skel) {
|
|||
// Load definition file
|
||||
$in = @file($def);
|
||||
if (!$in) {
|
||||
die("ERROR: Can not open definition file '$def'\n");
|
||||
die("ERROR: Cannot open definition file '$def'\n");
|
||||
}
|
||||
// We need absolute path to definition file to use it in #line directives
|
||||
$definition_file = realpath($def);
|
||||
|
@ -2411,7 +2411,7 @@ function gen_vm($def, $skel) {
|
|||
// Load skeleton file
|
||||
$skl = @file($skel);
|
||||
if (!$skl) {
|
||||
die("ERROR: Can not open skeleton file '$skel'\n");
|
||||
die("ERROR: Cannot open skeleton file '$skel'\n");
|
||||
}
|
||||
// We need absolute path to skeleton file to use it in #line directives
|
||||
$skeleton_file = realpath($skel);
|
||||
|
|
|
@ -26,7 +26,7 @@ curl
|
|||
var_dump( curl_exec($ch) );
|
||||
var_dump( curl_exec($copy) );
|
||||
|
||||
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)
|
||||
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)
|
||||
curl_close($copy);
|
||||
|
||||
?>
|
||||
|
|
|
@ -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--
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--TEST--
|
||||
Bug #34785 (Can not properly subclass mysqli_stmt)
|
||||
Bug #34785 (Cannot properly subclass mysqli_stmt)
|
||||
--EXTENSIONS--
|
||||
mysqli
|
||||
--SKIPIF--
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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")) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--TEST--
|
||||
Reflection class can not be cloned
|
||||
Reflection class cannot be cloned
|
||||
--CREDITS--
|
||||
Stefan Koopmanschap <stefan@phpgg.nl>
|
||||
TestFest PHP|Tek
|
||||
|
|
|
@ -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--
|
||||
|
|
|
@ -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--
|
||||
<?php
|
||||
$domain = AF_INET6;
|
||||
|
|
|
@ -329,7 +329,7 @@ static void php_browscap_parser_cb(zval *arg1, zval *arg2, zval *arg3, int callb
|
|||
}
|
||||
|
||||
if (zend_string_equals_literal_ci(Z_STR_P(arg1), "parent")) {
|
||||
/* parent entry can not be same as current section -> 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))
|
||||
) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -47,7 +47,7 @@ class FinalClass
|
|||
{
|
||||
private $var4;
|
||||
final function finalMethod() {
|
||||
echo 'This can not be overloaded';
|
||||
echo 'This cannot be overloaded';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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--
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--TEST--
|
||||
Ensure a interface can not have protected constants
|
||||
Ensure an interface cannot have protected constants
|
||||
--FILE--
|
||||
<?php
|
||||
interface A {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--TEST--
|
||||
Ensure a interface can not have private constants
|
||||
Ensure an interface cannot have private constants
|
||||
--FILE--
|
||||
<?php
|
||||
interface A {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--TEST--
|
||||
Bug #24908 (super-globals can not be used in __destruct())
|
||||
Bug #24908 (super-globals cannot be used in __destruct())
|
||||
--INI--
|
||||
variables_order=GPS
|
||||
--FILE--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue