From: johnstevenson Date: Sat, 17 Mar 2018 14:01:25 +0000 (+0000) Subject: Test ini file reporting functions X-Git-Tag: php-7.3.0alpha1~120 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ff9d229efb9a0b55a087447c4bd09cdbabe078d;p=php Test ini file reporting functions --- diff --git a/ext/standard/tests/bug73124.phpt b/ext/standard/tests/bug73124.phpt deleted file mode 100644 index 7064d65558..0000000000 --- a/ext/standard/tests/bug73124.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -Bug #73124 (php_ini_scanned_files relied on PHP_CONFIG_FILE_SCAN_DIR) ---SKIPIF-- - ---FILE-- - ---EXPECTREGEX-- -.*[\/\\]scan-dir\.ini.*|.*[\/\\]scan-dir\.ini -Done diff --git a/ext/standard/tests/ini_info/loaded.ini b/ext/standard/tests/ini_info/loaded.ini new file mode 100644 index 0000000000..c3d7967943 --- /dev/null +++ b/ext/standard/tests/ini_info/loaded.ini @@ -0,0 +1 @@ +date.timezone = UTC diff --git a/ext/standard/tests/ini_info/php_ini_loaded_file.phpt b/ext/standard/tests/ini_info/php_ini_loaded_file.phpt new file mode 100644 index 0000000000..b4ad617f9f --- /dev/null +++ b/ext/standard/tests/ini_info/php_ini_loaded_file.phpt @@ -0,0 +1,17 @@ +--TEST-- +php_ini_loaded_file() function +--FILE-- + +--EXPECTREGEX-- +bool\(false\) +string\(\d+\) ".*[\/\\]loaded\.ini" diff --git a/ext/standard/tests/ini_info/php_ini_scanned_files.phpt b/ext/standard/tests/ini_info/php_ini_scanned_files.phpt new file mode 100644 index 0000000000..27d2bebadf --- /dev/null +++ b/ext/standard/tests/ini_info/php_ini_scanned_files.phpt @@ -0,0 +1,24 @@ +--TEST-- +php_ini_scanned_files() function +--FILE-- + +--EXPECTREGEX-- +bool\(false\) +string\(\d+\) ".*[\/\\]0\.ini +" +string\(\d+\) "Antarctica\/McMurdo" diff --git a/ext/standard/tests/ini_info/scandir/0.ini b/ext/standard/tests/ini_info/scandir/0.ini new file mode 100644 index 0000000000..fa0980299c --- /dev/null +++ b/ext/standard/tests/ini_info/scandir/0.ini @@ -0,0 +1,4 @@ +; This file is named 0.ini so it should be the first line of +; any scanned ini output + +date.timezone = Antarctica/McMurdo \ No newline at end of file diff --git a/ext/standard/tests/php_ini_loaded_file.phpt b/ext/standard/tests/php_ini_loaded_file.phpt deleted file mode 100644 index 7d441582ee..0000000000 --- a/ext/standard/tests/php_ini_loaded_file.phpt +++ /dev/null @@ -1,14 +0,0 @@ ---TEST-- -Check the php_ini_loaded_file() function ---CREDITS-- -Sebastian Schürmann -sschuermann@chip.de -Testfest 2009 Munich ---INI-- -precision=12 ---FILE-- - ---EXPECTREGEX-- -string\(\d+\) ".*php\.ini"|bool\(false\)