Return to open_basedir_glob.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / security |
1.1 ! misho 1: --TEST-- ! 2: Test open_basedir configuration ! 3: --INI-- ! 4: open_basedir=. ! 5: --FILE-- ! 6: <?php ! 7: require_once "open_basedir.inc"; ! 8: test_open_basedir("glob"); ! 9: ?> ! 10: --CLEAN-- ! 11: <?php ! 12: require_once "open_basedir.inc"; ! 13: delete_directories(); ! 14: ?> ! 15: --EXPECTF-- ! 16: *** Testing open_basedir configuration [glob] *** ! 17: bool(true) ! 18: bool(true) ! 19: bool(true) ! 20: bool(true) ! 21: bool(true) ! 22: bool(false) ! 23: bool(false) ! 24: bool(false) ! 25: bool(false) ! 26: bool(false) ! 27: bool(false) ! 28: bool(false) ! 29: bool(false) ! 30: bool(false) ! 31: array(1) { ! 32: [0]=> ! 33: string(5) "../ok" ! 34: } ! 35: array(1) { ! 36: [0]=> ! 37: string(6) "ok.txt" ! 38: } ! 39: array(1) { ! 40: [0]=> ! 41: string(12) "../ok/ok.txt" ! 42: } ! 43: array(1) { ! 44: [0]=> ! 45: string(%d) "%s/test/ok/ok.txt" ! 46: } ! 47: array(1) { ! 48: [0]=> ! 49: string(%d) "%s/test/ok/../ok/ok.txt" ! 50: } ! 51: *** Finished testing open_basedir configuration [glob] *** ! 52: