[php-src] master: fix: typos (#13694)
| From: | guangwu via GitHub | Date: | Wed, 13 Mar 2024 08:44:22 +0000 |
| Subject: | [php-src] master: fix: typos (#13694) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-127714@lists.php.net to get a copy of this message | ||
Author: guangwu (testwill)
Committer: GitHub (web-flow)
Pusher: nielsdos
Date: 2024-03-13T09:30:33+01:00
Commit: https://github.com/php/php-src/commit/f1a22d09431f6f1b66657c89f0ff6c29b465afb2
Raw diff: https://github.com/php/php-src/commit/f1a22d09431f6f1b66657c89f0ff6c29b465afb2.diff
fix: typos (#13694)
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
Changed paths:
M ext/enchant/tests/bug13181.phpt
M ext/standard/tests/file/file_get_contents_with_large_length.phpt
Diff:
diff --git a/ext/enchant/tests/bug13181.phpt b/ext/enchant/tests/bug13181.phpt
index 9d1fdda77dcdb..ad7fd69df1d14 100644
--- a/ext/enchant/tests/bug13181.phpt
+++ b/ext/enchant/tests/bug13181.phpt
@@ -21,13 +21,13 @@ if (!enchant_broker_list_dicts($broker)) {
?>
--FILE--
<?php
-function get_dictionnary() {
+function get_dictionary() {
$rBroker = enchant_broker_init();
$t = enchant_broker_request_dict($rBroker, 'en');
var_dump($t);
return $t;
}
-$rDict = get_dictionnary();
+$rDict = get_dictionary();
var_dump($rDict);
enchant_dict_suggest($rDict, "soong");
diff --git a/ext/standard/tests/file/file_get_contents_with_large_length.phpt
b/ext/standard/tests/file/file_get_contents_with_large_length.phpt
index 09929d25ecd17..12c963af94520 100644
--- a/ext/standard/tests/file/file_get_contents_with_large_length.phpt
+++ b/ext/standard/tests/file/file_get_contents_with_large_length.phpt
@@ -9,11 +9,11 @@ $file_path = __DIR__ .
'/file_get_contents_with_large_length_content.txt';
$file_content = str_repeat('a', 50000);
file_put_contents($file_path, $file_content);
-// test lenght limiting
+// test length limiting
$result = file_get_contents($file_path, length: 500000000);
var_dump($result === $file_content);
-// test lenght limiting
+// test length limiting
$result = file_get_contents($file_path, length: 40000);
var_dump($result === str_repeat('a', 40000));