fix: typos (#13694)

Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
guangwu 2024-03-13 16:30:33 +08:00 committed by GitHub
parent 7ff78f7b10
commit f1a22d0943
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -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");

View File

@ -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));