1--TEST-- 2Test file_get_contents() function with large length parameter 3--INI-- 4memory_limit=128M 5--FILE-- 6<?php 7 8$file_path = __DIR__ . '/file_get_contents_with_large_length_content.txt'; 9$file_content = str_repeat('a', 50000); 10file_put_contents($file_path, $file_content); 11 12// test length limiting 13$result = file_get_contents($file_path, length: 500000000); 14var_dump($result === $file_content); 15 16// test length limiting 17$result = file_get_contents($file_path, length: 40000); 18var_dump($result === str_repeat('a', 40000)); 19 20?> 21--CLEAN-- 22<?php 23unlink(__DIR__ . '/file_get_contents_with_large_length_content.txt'); 24?> 25--EXPECT-- 26bool(true) 27bool(true) 28