1--TEST-- 2Tidy with basedir restriction failure on configuration file 3--EXTENSIONS-- 4tidy 5--INI-- 6open_basedir={PWD}/open_basedir 7--FILE-- 8<?php 9echo "=== repairString ===\n"; 10$tidy = new tidy; 11$tidy->repairString('my epic string', 'my_config_file.ini'); 12 13echo "=== tidy_parse_string ===\n"; 14tidy_parse_string('my epic string', 'my_config_file.ini'); 15 16echo "=== tidy_parse_file ===\n"; 17tidy_parse_file(__DIR__.'/open_basedir/test.html', 'my_config_file.ini'); 18 19echo "=== __construct ===\n"; 20$tidy = new tidy(__DIR__.'/open_basedir/test.html', 'my_config_file.ini'); 21 22echo "=== parseFile ===\n"; 23$tidy = new tidy; 24$tidy->parseFile(__DIR__.'/open_basedir/test.html', 'my_config_file.ini'); 25 26echo "=== parseString ===\n"; 27$tidy = new tidy; 28$tidy->parseString('my epic string', 'my_config_file.ini'); 29?> 30--EXPECTF-- 31=== repairString === 32 33Warning: tidy::repairString(): open_basedir restriction in effect. File(my_config_file.ini) is not within the allowed path(s): (%sopen_basedir) in %s on line %d 34=== tidy_parse_string === 35 36Warning: tidy_parse_string(): open_basedir restriction in effect. File(my_config_file.ini) is not within the allowed path(s): (%sopen_basedir) in %s on line %d 37=== tidy_parse_file === 38 39Warning: tidy_parse_file(): open_basedir restriction in effect. File(my_config_file.ini) is not within the allowed path(s): (%sopen_basedir) in %s on line %d 40=== __construct === 41 42Warning: tidy::__construct(): open_basedir restriction in effect. File(my_config_file.ini) is not within the allowed path(s): (%sopen_basedir) in %s on line %d 43=== parseFile === 44 45Warning: tidy::parseFile(): open_basedir restriction in effect. File(my_config_file.ini) is not within the allowed path(s): (%sopen_basedir) in %s on line %d 46=== parseString === 47 48Warning: tidy::parseString(): open_basedir restriction in effect. File(my_config_file.ini) is not within the allowed path(s): (%sopen_basedir) in %s on line %d 49