mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
parent
7ff78f7b10
commit
f1a22d0943
@ -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");
|
||||
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user