1--TEST-- 2stream_resolve_include_path(string path) 3--FILE-- 4<?php 5$include_path = __DIR__ . '/test_path'; 6$include_path_nested = $include_path . '/nested'; 7 8$include_path_file = $include_path . DIRECTORY_SEPARATOR . 'file'; 9$include_path_nested_file = $include_path_nested . DIRECTORY_SEPARATOR . 'file'; 10 11mkdir($include_path); 12mkdir($include_path_nested); 13 14file_put_contents($include_path_file, 'include_path'); 15file_put_contents($include_path_nested_file, 'include_path'); 16 17set_include_path($include_path . PATH_SEPARATOR . $include_path_nested); 18var_dump(stream_resolve_include_path('file-does-not-exist')); 19 20set_include_path($include_path . PATH_SEPARATOR . $include_path_nested); 21var_dump(stream_resolve_include_path('file')); 22set_include_path($include_path_nested . PATH_SEPARATOR . $include_path); 23var_dump(stream_resolve_include_path('file')); 24 25?> 26--CLEAN-- 27<?php 28$include_path = __DIR__ . '/test_path'; 29$include_path_nested = $include_path . '/nested'; 30$include_path_file = $include_path . DIRECTORY_SEPARATOR . 'file'; 31$include_path_nested_file = $include_path_nested . DIRECTORY_SEPARATOR . 'file'; 32 33unlink($include_path_nested_file); 34rmdir($include_path_nested); 35unlink($include_path_file); 36rmdir($include_path); 37?> 38--EXPECTF-- 39bool(false) 40string(%d) "%stest_path%sfile" 41string(%d) "%stest_path%snested%sfile" 42