diff options
170 files changed, 449 insertions, 106 deletions
| @@ -1,4 +1,5 @@ | |||
| 1 | *.txt | 1 | *.txt |
| 2 | tags | ||
| 2 | *.orig | 3 | *.orig |
| 3 | *.gdbhistory | 4 | *.gdbhistory |
| 4 | *.swp | 5 | *.swp |
diff --git a/src/tests/broken_configuration/broken_conf.phpt b/src/tests/broken_configuration/broken_conf.phpt index 967b03e..477ee64 100644 --- a/src/tests/broken_configuration/broken_conf.phpt +++ b/src/tests/broken_configuration/broken_conf.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf.ini | 7 | sp.configuration_file={PWD}/config/broken_conf.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration pr | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration prefix for 'this is a broken line' on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration prefix for 'this is a broken line' on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf2.phpt b/src/tests/broken_configuration/broken_conf2.phpt index 11cc229..4e67b9f 100644 --- a/src/tests/broken_configuration/broken_conf2.phpt +++ b/src/tests/broken_configuration/broken_conf2.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf2.ini | 7 | sp.configuration_file={PWD}/config/broken_conf2.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration se | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration section 'sp.wrong' on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration section 'sp.wrong' on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_allow_broken_disabled.phpt b/src/tests/broken_configuration/broken_conf_allow_broken_disabled.phpt index 8bd1517..e2ffab0 100644 --- a/src/tests/broken_configuration/broken_conf_allow_broken_disabled.phpt +++ b/src/tests/broken_configuration/broken_conf_allow_broken_disabled.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration with allow broken turned off | 2 | Broken configuration with allow broken turned off |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf.ini | 7 | sp.configuration_file={PWD}/config/broken_conf.ini |
| 7 | sp.allow_broken_configuration=Off | 8 | sp.allow_broken_configuration=Off |
diff --git a/src/tests/broken_configuration/broken_conf_allow_broken_enabled.phpt b/src/tests/broken_configuration/broken_conf_allow_broken_enabled.phpt index 0112515..68938fe 100644 --- a/src/tests/broken_configuration/broken_conf_allow_broken_enabled.phpt +++ b/src/tests/broken_configuration/broken_conf_allow_broken_enabled.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration with allow broken turned on | 2 | Broken configuration with allow broken turned on |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf.ini | 7 | sp.configuration_file={PWD}/config/broken_conf.ini |
| 7 | sp.allow_broken_configuration=On | 8 | sp.allow_broken_configuration=On |
diff --git a/src/tests/broken_configuration/broken_conf_config_regexp.phpt b/src/tests/broken_configuration/broken_conf_config_regexp.phpt index 34d6d50..ff6280e 100644 --- a/src/tests/broken_configuration/broken_conf_config_regexp.phpt +++ b/src/tests/broken_configuration/broken_conf_config_regexp.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_config_regexp.ini | 7 | sp.configuration_file={PWD}/config/broken_config_regexp.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/broken_configuration/broken_conf_config_regexp_no_closing_paren.phpt b/src/tests/broken_configuration/broken_conf_config_regexp_no_closing_paren.phpt index 81d9831..8644dfe 100644 --- a/src/tests/broken_configuration/broken_conf_config_regexp_no_closing_paren.phpt +++ b/src/tests/broken_configuration/broken_conf_config_regexp_no_closing_paren.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration - regexp without a closing parenthesis | 2 | Broken configuration - regexp without a closing parenthesis |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_config_regexp_no_closing_paren.ini | 7 | sp.configuration_file={PWD}/config/broken_config_regexp_no_closing_paren.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][error][log] There is an issue with the par | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] '.filename_r()' is expecting a valid regexp, and not '"*."' on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] '.filename_r()' is expecting a valid regexp, and not '"*."' on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_cookie_encryption_without_encryption_key.phpt b/src/tests/broken_configuration/broken_conf_cookie_encryption_without_encryption_key.phpt index d86b72e..857c803 100644 --- a/src/tests/broken_configuration/broken_conf_cookie_encryption_without_encryption_key.phpt +++ b/src/tests/broken_configuration/broken_conf_cookie_encryption_without_encryption_key.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration - encrypted cookie without encryption key | 2 | Broken configuration - encrypted cookie without encryption key |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_cookie_encryption_without_encryption_key.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_cookie_encryption_without_encryption_key.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/broken_configuration/broken_conf_cookie_encryption_without_env_var.phpt b/src/tests/broken_configuration/broken_conf_cookie_encryption_without_env_var.phpt index 01e3141..de97a9d 100644 --- a/src/tests/broken_configuration/broken_conf_cookie_encryption_without_env_var.phpt +++ b/src/tests/broken_configuration/broken_conf_cookie_encryption_without_env_var.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration - encrypted cookie with without cookie env var | 2 | Broken configuration - encrypted cookie with without cookie env var |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_cookie_encryption_without_env_var.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_cookie_encryption_without_env_var.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/broken_configuration/broken_conf_cookie_name_and_regexp.phpt b/src/tests/broken_configuration/broken_conf_cookie_name_and_regexp.phpt index 9375381..141cf77 100644 --- a/src/tests/broken_configuration/broken_conf_cookie_name_and_regexp.phpt +++ b/src/tests/broken_configuration/broken_conf_cookie_name_and_regexp.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration - encrypted cookie with name and regexp | 2 | Broken configuration - encrypted cookie with name and regexp |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_cookie_name_and_regexp.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_cookie_name_and_regexp.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] name and name_r are mutu | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] name and name_r are mutually exclusive on line 2 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] name and name_r are mutually exclusive on line 2 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_enable_disable.phpt b/src/tests/broken_configuration/broken_conf_enable_disable.phpt index 8efe819..eeba04a 100644 --- a/src/tests/broken_configuration/broken_conf_enable_disable.phpt +++ b/src/tests/broken_configuration/broken_conf_enable_disable.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Global strict mode | 2 | Global strict mode |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/borken_conf_enable_disable.ini | 7 | sp.configuration_file={PWD}/config/borken_conf_enable_disable.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] A rule can't be enabled | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] A rule can't be enabled and disabled on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] A rule can't be enabled and disabled on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_eval.phpt b/src/tests/broken_configuration/broken_conf_eval.phpt index 23a4bb9..791795a 100644 --- a/src/tests/broken_configuration/broken_conf_eval.phpt +++ b/src/tests/broken_configuration/broken_conf_eval.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration for eval | 2 | Broken configuration for eval |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_eval.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_eval.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][error][log] There is an issue with th | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][error][log] There is an issue with the parsing of '"cos,sin': it doesn't look like a valid string on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][error][log] There is an issue with the parsing of '"cos,sin': it doesn't look like a valid string on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_expecting_bool.phpt b/src/tests/broken_configuration/broken_conf_expecting_bool.phpt index 4ccac74..4857ebe 100644 --- a/src/tests/broken_configuration/broken_conf_expecting_bool.phpt +++ b/src/tests/broken_configuration/broken_conf_expecting_bool.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Bad boolean value in configuration | 2 | Bad boolean value in configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_expecting_bool.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_expecting_bool.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] Trailing chars '337);' a | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Trailing chars '337);' at the end of '.enable(1337);' on line 5 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Trailing chars '337);' at the end of '.enable(1337);' on line 5 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_invalid_cidr.phpt b/src/tests/broken_configuration/broken_conf_invalid_cidr.phpt index 781ccd5..e618676 100644 --- a/src/tests/broken_configuration/broken_conf_invalid_cidr.phpt +++ b/src/tests/broken_configuration/broken_conf_invalid_cidr.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_invalid_cidr.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_invalid_cidr.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] '42' isn't a valid ipv4 | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] '42' isn't a valid ipv4 mask. in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] '42' isn't a valid ipv4 mask. in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_invalid_cidr6.phpt b/src/tests/broken_configuration/broken_conf_invalid_cidr6.phpt index 60c4f15..34a0d30 100644 --- a/src/tests/broken_configuration/broken_conf_invalid_cidr6.phpt +++ b/src/tests/broken_configuration/broken_conf_invalid_cidr6.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_invalid_cidr6.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_invalid_cidr6.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] 'ZZZ' isn't a valid netw | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] 'ZZZ' isn't a valid network mask. in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] 'ZZZ' isn't a valid network mask. in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_invalid_cidr6_no_slash.phpt b/src/tests/broken_configuration/broken_conf_invalid_cidr6_no_slash.phpt index acb88f9..8703dff 100644 --- a/src/tests/broken_configuration/broken_conf_invalid_cidr6_no_slash.phpt +++ b/src/tests/broken_configuration/broken_conf_invalid_cidr6_no_slash.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration, invalid cidr for ipv6 because there is no `/` in it | 2 | Broken configuration, invalid cidr for ipv6 because there is no `/` in it |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_invalid_cidr6_no_slash.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_invalid_cidr6_no_slash.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] '2001:0db8:0000:0000:000 | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] '2001:0db8:0000:0000:0000:ff00:0042:8329' isn't a valid network mask, it seems that you forgot a '/'. in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] '2001:0db8:0000:0000:0000:ff00:0042:8329' isn't a valid network mask, it seems that you forgot a '/'. in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_invalid_cidr_value.phpt b/src/tests/broken_configuration/broken_conf_invalid_cidr_value.phpt index ac3fb47..1424853 100644 --- a/src/tests/broken_configuration/broken_conf_invalid_cidr_value.phpt +++ b/src/tests/broken_configuration/broken_conf_invalid_cidr_value.phpt | |||
| @@ -3,6 +3,7 @@ Broken configuration, invalid cidr value | |||
| 3 | (13337%128 = 25) | 3 | (13337%128 = 25) |
| 4 | --SKIPIF-- | 4 | --SKIPIF-- |
| 5 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 5 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 6 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 6 | --INI-- | 7 | --INI-- |
| 7 | sp.configuration_file={PWD}/config/broken_conf_invalid_cidr_value.ini | 8 | sp.configuration_file={PWD}/config/broken_conf_invalid_cidr_value.ini |
| 8 | --FILE-- | 9 | --FILE-- |
| @@ -15,4 +16,4 @@ Fatal error: [snuffleupagus][0.0.0.0][error][log] A valid string as parameter is | |||
| 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] " doesn't contain a valid cidr on line 1 in Unknown on line 0 | 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] " doesn't contain a valid cidr on line 1 in Unknown on line 0 |
| 16 | 17 | ||
| 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 18 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 18 | Could not startup. \ No newline at end of file | 19 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_invalid_filename.phpt b/src/tests/broken_configuration/broken_conf_invalid_filename.phpt index 8f4c501..b9a904c 100644 --- a/src/tests/broken_configuration/broken_conf_invalid_filename.phpt +++ b/src/tests/broken_configuration/broken_conf_invalid_filename.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration filename without absolute path | 2 | Broken configuration filename without absolute path |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_invalid_filename.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_invalid_filename.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration li | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration line: 'sp.disabled_functions.function("sprintf").filename("wrong file name").drop();':'.filename' must be an absolute path or a phar archive on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration line: 'sp.disabled_functions.function("sprintf").filename("wrong file name").drop();':'.filename' must be an absolute path or a phar archive on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_invalid_log_media.phpt b/src/tests/broken_configuration/broken_conf_invalid_log_media.phpt index bc048b3..c1c2668 100644 --- a/src/tests/broken_configuration/broken_conf_invalid_log_media.phpt +++ b/src/tests/broken_configuration/broken_conf_invalid_log_media.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration filename with improper log media | 2 | Broken configuration filename with improper log media |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_invalid_log_media.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_invalid_log_media.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/broken_configuration/broken_conf_invalid_type.phpt b/src/tests/broken_configuration/broken_conf_invalid_type.phpt index b73cdd0..aeb6b85 100644 --- a/src/tests/broken_configuration/broken_conf_invalid_type.phpt +++ b/src/tests/broken_configuration/broken_conf_invalid_type.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken conf with wrong type | 2 | Broken conf with wrong type |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_invalid_type.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_invalid_type.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][error][log] There is an issue with th | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][error][log] There is an issue with the parsing of '"totally_wrong"_type")': it doesn't look like a valid string on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][error][log] There is an issue with the parsing of '"totally_wrong"_type")': it doesn't look like a valid string on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_key_value.phpt b/src/tests/broken_configuration/broken_conf_key_value.phpt index 3a0837a..ec87d93 100644 --- a/src/tests/broken_configuration/broken_conf_key_value.phpt +++ b/src/tests/broken_configuration/broken_conf_key_value.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_key_value.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_key_value.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration li | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration line: 'sp.disabled_functions.function("system").var("").value("").key("").drop();':`key` and `value` are mutually exclusive on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration line: 'sp.disabled_functions.function("system").var("").value("").key("").drop();':`key` and `value` are mutually exclusive on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_line_empty_string.phpt b/src/tests/broken_configuration/broken_conf_line_empty_string.phpt index 17ceeb9..3790d83 100644 --- a/src/tests/broken_configuration/broken_conf_line_empty_string.phpt +++ b/src/tests/broken_configuration/broken_conf_line_empty_string.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Configuration line with an empty string | 2 | Configuration line with an empty string |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_line_empty_string.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_line_empty_string.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][error][log] A valid string as paramet | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][error][log] A valid string as parameter is expected on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][error][log] A valid string as parameter is expected on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_line_no_closing.phpt b/src/tests/broken_configuration/broken_conf_line_no_closing.phpt index d5a369b..0f51dcf 100644 --- a/src/tests/broken_configuration/broken_conf_line_no_closing.phpt +++ b/src/tests/broken_configuration/broken_conf_line_no_closing.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Configuration line without closing parenthese | 2 | Configuration line without closing parenthese |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_line_no_closing.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_line_no_closing.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][error][log] There is an issue with th | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][error][log] There is an issue with the parsing of '"123"': it doesn't look like a valid string on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][error][log] There is an issue with the parsing of '"123"': it doesn't look like a valid string on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_local_var_1.phpt b/src/tests/broken_configuration/broken_conf_local_var_1.phpt index df401c4..851d532 100644 --- a/src/tests/broken_configuration/broken_conf_local_var_1.phpt +++ b/src/tests/broken_configuration/broken_conf_local_var_1.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_local_var_1.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_local_var_1.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid `]` position. in Unkn | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value ']' for `var` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value ']' for `var` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_local_var_10.phpt b/src/tests/broken_configuration/broken_conf_local_var_10.phpt index 72a96b2..747cc5a 100644 --- a/src/tests/broken_configuration/broken_conf_local_var_10.phpt +++ b/src/tests/broken_configuration/broken_conf_local_var_10.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_local_var_10.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_local_var_10.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid `]` position. in Unkn | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value 'asd[asd]asd' for `var` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value 'asd[asd]asd' for `var` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_local_var_11.phpt b/src/tests/broken_configuration/broken_conf_local_var_11.phpt index e67d11a..11ca562 100644 --- a/src/tests/broken_configuration/broken_conf_local_var_11.phpt +++ b/src/tests/broken_configuration/broken_conf_local_var_11.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_local_var_11.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_local_var_11.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid `::` position. in Unk | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value 'asd::' for `param` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value 'asd::' for `param` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_local_var_12.phpt b/src/tests/broken_configuration/broken_conf_local_var_12.phpt index 56f2863..962f5ab 100644 --- a/src/tests/broken_configuration/broken_conf_local_var_12.phpt +++ b/src/tests/broken_configuration/broken_conf_local_var_12.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_local_var_12.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_local_var_12.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] Empty value in `var` on | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Empty value in `var` on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Empty value in `var` on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_local_var_13.phpt b/src/tests/broken_configuration/broken_conf_local_var_13.phpt index 8e62627..5c33fdd 100644 --- a/src/tests/broken_configuration/broken_conf_local_var_13.phpt +++ b/src/tests/broken_configuration/broken_conf_local_var_13.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_local_var_13.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_local_var_13.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid `->` position. in Unk | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value 'asd->asd' for `var` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value 'asd->asd' for `var` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_local_var_14.phpt b/src/tests/broken_configuration/broken_conf_local_var_14.phpt index 24e2825..a831ef7 100644 --- a/src/tests/broken_configuration/broken_conf_local_var_14.phpt +++ b/src/tests/broken_configuration/broken_conf_local_var_14.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_local_var_14.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_local_var_14.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid var name: $i+valid va | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value '$i+valid var name ' for `var` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value '$i+valid var name ' for `var` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_local_var_15.phpt b/src/tests/broken_configuration/broken_conf_local_var_15.phpt index 5a4a0b5..5d8c6f1 100644 --- a/src/tests/broken_configuration/broken_conf_local_var_15.phpt +++ b/src/tests/broken_configuration/broken_conf_local_var_15.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_local_var_15.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_local_var_15.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid var name: $i$$!@#. in | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value '$i$$!@#->qwe' for `var` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value '$i$$!@#->qwe' for `var` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_local_var_16.phpt b/src/tests/broken_configuration/broken_conf_local_var_16.phpt index 0556ab5..47c1f17 100644 --- a/src/tests/broken_configuration/broken_conf_local_var_16.phpt +++ b/src/tests/broken_configuration/broken_conf_local_var_16.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_local_var_16.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_local_var_16.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Missing a closing quote. in U | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value '"' for `var` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value '"' for `var` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_local_var_2.phpt b/src/tests/broken_configuration/broken_conf_local_var_2.phpt index 34c8ebf..ec7ac2c 100644 --- a/src/tests/broken_configuration/broken_conf_local_var_2.phpt +++ b/src/tests/broken_configuration/broken_conf_local_var_2.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_local_var_2.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_local_var_2.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid `"` position. in Unkn | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value '""asd' for `var` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value '""asd' for `var` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_local_var_3.phpt b/src/tests/broken_configuration/broken_conf_local_var_3.phpt index 8deac1a..776cee0 100644 --- a/src/tests/broken_configuration/broken_conf_local_var_3.phpt +++ b/src/tests/broken_configuration/broken_conf_local_var_3.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_local_var_3.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_local_var_3.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid `->` position. in Unk | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value '$qwe->::' for `var` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value '$qwe->::' for `var` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_local_var_4.phpt b/src/tests/broken_configuration/broken_conf_local_var_4.phpt index ca38b2c..4390640 100644 --- a/src/tests/broken_configuration/broken_conf_local_var_4.phpt +++ b/src/tests/broken_configuration/broken_conf_local_var_4.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_local_var_4.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_local_var_4.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid `"` position. in Unkn | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value '"asd"asd[]' for `var` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value '"asd"asd[]' for `var` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_local_var_5.phpt b/src/tests/broken_configuration/broken_conf_local_var_5.phpt index 32f7c33..a73056e 100644 --- a/src/tests/broken_configuration/broken_conf_local_var_5.phpt +++ b/src/tests/broken_configuration/broken_conf_local_var_5.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_local_var_5.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_local_var_5.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid `'` position. in Unkn | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value ''asd'asd[]' for `var` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value ''asd'asd[]' for `var` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_local_var_6.phpt b/src/tests/broken_configuration/broken_conf_local_var_6.phpt index 5bfd11d..19b2915 100644 --- a/src/tests/broken_configuration/broken_conf_local_var_6.phpt +++ b/src/tests/broken_configuration/broken_conf_local_var_6.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_local_var_6.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_local_var_6.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid `'` position. in Unkn | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value '''asd' for `var` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value '''asd' for `var` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_local_var_7.phpt b/src/tests/broken_configuration/broken_conf_local_var_7.phpt index aaa5161..62e983f 100644 --- a/src/tests/broken_configuration/broken_conf_local_var_7.phpt +++ b/src/tests/broken_configuration/broken_conf_local_var_7.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_local_var_7.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_local_var_7.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid `->` position. in Unk | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value 'asd-->' for `var` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value 'asd-->' for `var` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_local_var_8.phpt b/src/tests/broken_configuration/broken_conf_local_var_8.phpt index f088523..1d170d2 100644 --- a/src/tests/broken_configuration/broken_conf_local_var_8.phpt +++ b/src/tests/broken_configuration/broken_conf_local_var_8.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_local_var_8.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_local_var_8.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid `]` position. in Unkn | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value 'asd[asd]"asd"' for `var` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value 'asd[asd]"asd"' for `var` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_local_var_9.phpt b/src/tests/broken_configuration/broken_conf_local_var_9.phpt index c8fb793..5786e02 100644 --- a/src/tests/broken_configuration/broken_conf_local_var_9.phpt +++ b/src/tests/broken_configuration/broken_conf_local_var_9.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_local_var_9.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_local_var_9.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid `]` position. in Unkn | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value 'asd[asd]'asd'' for `var` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value 'asd[asd]'asd'' for `var` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_lots_of_quotes.phpt b/src/tests/broken_configuration/broken_conf_lots_of_quotes.phpt index 1a6f61c..bef62b9 100644 --- a/src/tests/broken_configuration/broken_conf_lots_of_quotes.phpt +++ b/src/tests/broken_configuration/broken_conf_lots_of_quotes.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Configuration line with too many quotes | 2 | Configuration line with too many quotes |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_lots_of_quotes.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_lots_of_quotes.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][error][log] There is an issue with th | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][error][log] There is an issue with the parsing of '"this\"is a weird\"\"\"cookie\"name"");': it doesn't look like a valid string on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][error][log] There is an issue with the parsing of '"this\"is a weird\"\"\"cookie\"name"");': it doesn't look like a valid string on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_missing_script.phpt b/src/tests/broken_configuration/broken_conf_missing_script.phpt index 8bbbff1..9deffc7 100644 --- a/src/tests/broken_configuration/broken_conf_missing_script.phpt +++ b/src/tests/broken_configuration/broken_conf_missing_script.phpt | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | --TEST-- | 1 | --TEST-- |
| 2 | Invalid configuration file for upload | 2 | Invalid configuration file for upload |
| 3 | --SKIPIF-- | ||
| 4 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 3 | --INI-- | 5 | --INI-- |
| 4 | file_uploads=1 | 6 | file_uploads=1 |
| 5 | sp.configuration_file={PWD}/config/broken_conf_missing_script.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_missing_script.ini |
diff --git a/src/tests/broken_configuration/broken_conf_mutually_exclusive.phpt b/src/tests/broken_configuration/broken_conf_mutually_exclusive.phpt index b1d86f1..a8036d2 100644 --- a/src/tests/broken_configuration/broken_conf_mutually_exclusive.phpt +++ b/src/tests/broken_configuration/broken_conf_mutually_exclusive.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/broken_configuration/broken_conf_mutually_exclusive10.phpt b/src/tests/broken_configuration/broken_conf_mutually_exclusive10.phpt index dc1ad5c..932f584 100644 --- a/src/tests/broken_configuration/broken_conf_mutually_exclusive10.phpt +++ b/src/tests/broken_configuration/broken_conf_mutually_exclusive10.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration - enabled/disabled readonly | 2 | Broken configuration - enabled/disabled readonly |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive10.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive10.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] A rule can't be enabled | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] A rule can't be enabled and disabled on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] A rule can't be enabled and disabled on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_mutually_exclusive11.phpt b/src/tests/broken_configuration/broken_conf_mutually_exclusive11.phpt index 41c627b..62ae64e 100644 --- a/src/tests/broken_configuration/broken_conf_mutually_exclusive11.phpt +++ b/src/tests/broken_configuration/broken_conf_mutually_exclusive11.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration - ret and var are mutually exclusives | 2 | Broken configuration - ret and var are mutually exclusives |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive11.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive11.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/broken_configuration/broken_conf_mutually_exclusive12.phpt b/src/tests/broken_configuration/broken_conf_mutually_exclusive12.phpt index e7d345c..28b0564 100644 --- a/src/tests/broken_configuration/broken_conf_mutually_exclusive12.phpt +++ b/src/tests/broken_configuration/broken_conf_mutually_exclusive12.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration - ret and value are mutually exclusive | 2 | Broken configuration - ret and value are mutually exclusive |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive12.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive12.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/broken_configuration/broken_conf_mutually_exclusive2.phpt b/src/tests/broken_configuration/broken_conf_mutually_exclusive2.phpt index 64c6c3e..cc3a951 100644 --- a/src/tests/broken_configuration/broken_conf_mutually_exclusive2.phpt +++ b/src/tests/broken_configuration/broken_conf_mutually_exclusive2.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive2.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive2.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/broken_configuration/broken_conf_mutually_exclusive3.phpt b/src/tests/broken_configuration/broken_conf_mutually_exclusive3.phpt index 384c82a..ab50266 100644 --- a/src/tests/broken_configuration/broken_conf_mutually_exclusive3.phpt +++ b/src/tests/broken_configuration/broken_conf_mutually_exclusive3.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive3.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive3.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/broken_configuration/broken_conf_mutually_exclusive4.phpt b/src/tests/broken_configuration/broken_conf_mutually_exclusive4.phpt index 70eaea0..b848d1a 100644 --- a/src/tests/broken_configuration/broken_conf_mutually_exclusive4.phpt +++ b/src/tests/broken_configuration/broken_conf_mutually_exclusive4.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive4.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive4.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration li | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration line: 'sp.disabled_functions.function("system").param("id").value("42").param_r("^id$").drop();':'.r_param', '.param' and '.pos' are mutually exclusive on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration line: 'sp.disabled_functions.function("system").param("id").value("42").param_r("^id$").drop();':'.r_param', '.param' and '.pos' are mutually exclusive on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_mutually_exclusive5.phpt b/src/tests/broken_configuration/broken_conf_mutually_exclusive5.phpt index de82f3a..c668643 100644 --- a/src/tests/broken_configuration/broken_conf_mutually_exclusive5.phpt +++ b/src/tests/broken_configuration/broken_conf_mutually_exclusive5.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive5.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive5.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/broken_configuration/broken_conf_mutually_exclusive6.phpt b/src/tests/broken_configuration/broken_conf_mutually_exclusive6.phpt index c0415ac..94ed765 100644 --- a/src/tests/broken_configuration/broken_conf_mutually_exclusive6.phpt +++ b/src/tests/broken_configuration/broken_conf_mutually_exclusive6.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive6.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive6.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration li | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration line: 'sp.disabled_functions.function("system").param("id").value("42").ret_r("^0$").drop();':`ret` and `param` are mutually exclusive on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration line: 'sp.disabled_functions.function("system").param("id").value("42").ret_r("^0$").drop();':`ret` and `param` are mutually exclusive on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_mutually_exclusive7.phpt b/src/tests/broken_configuration/broken_conf_mutually_exclusive7.phpt index 41e754e..2a16d0c 100644 --- a/src/tests/broken_configuration/broken_conf_mutually_exclusive7.phpt +++ b/src/tests/broken_configuration/broken_conf_mutually_exclusive7.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive7.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive7.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration li | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration line: 'sp.disabled_functions.function("system").ret("0").drop().allow();': The rule must either be a `drop` or `allow` one on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration line: 'sp.disabled_functions.function("system").ret("0").drop().allow();': The rule must either be a `drop` or `allow` one on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_mutually_exclusive8.phpt b/src/tests/broken_configuration/broken_conf_mutually_exclusive8.phpt index e650d43..129707d 100644 --- a/src/tests/broken_configuration/broken_conf_mutually_exclusive8.phpt +++ b/src/tests/broken_configuration/broken_conf_mutually_exclusive8.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive8.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive8.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration li | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration line: 'sp.disabled_functions.ret("0").drop();': must take a function name on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration line: 'sp.disabled_functions.ret("0").drop();': must take a function name on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_mutually_exclusive9.phpt b/src/tests/broken_configuration/broken_conf_mutually_exclusive9.phpt index 46dfc28..b384d77 100644 --- a/src/tests/broken_configuration/broken_conf_mutually_exclusive9.phpt +++ b/src/tests/broken_configuration/broken_conf_mutually_exclusive9.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration - enabled/disabled unserialize | 2 | Broken configuration - enabled/disabled unserialize |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive9.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive9.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] A rule can't be enabled | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] A rule can't be enabled and disabled on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] A rule can't be enabled and disabled on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_no_cookie_action.phpt b/src/tests/broken_configuration/broken_conf_no_cookie_action.phpt index da21967..62831d4 100644 --- a/src/tests/broken_configuration/broken_conf_no_cookie_action.phpt +++ b/src/tests/broken_configuration/broken_conf_no_cookie_action.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Bad config, invalid action. | 2 | Bad config, invalid action. |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_cookie_action.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_cookie_action.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] You must specify a at le | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] You must specify a at least one action to a cookie on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] You must specify a at least one action to a cookie on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_no_cookie_name.phpt b/src/tests/broken_configuration/broken_conf_no_cookie_name.phpt index 6eed345..51d2980 100644 --- a/src/tests/broken_configuration/broken_conf_no_cookie_name.phpt +++ b/src/tests/broken_configuration/broken_conf_no_cookie_name.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration - encrypted cookie with no name | 2 | Broken configuration - encrypted cookie with no name |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_encrypted_cookies_noname.ini | 7 | sp.configuration_file={PWD}/config/config_encrypted_cookies_noname.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] You must specify a cooki | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] You must specify a cookie name/regexp on line 2 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] You must specify a cookie name/regexp on line 2 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_nonexisting_script.phpt b/src/tests/broken_configuration/broken_conf_nonexisting_script.phpt index 64d8171..fa891d8 100644 --- a/src/tests/broken_configuration/broken_conf_nonexisting_script.phpt +++ b/src/tests/broken_configuration/broken_conf_nonexisting_script.phpt | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | --TEST-- | 1 | --TEST-- |
| 2 | Invalid configuration file for upload | 2 | Invalid configuration file for upload |
| 3 | --SKIPIF-- | ||
| 4 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 3 | --INI-- | 5 | --INI-- |
| 4 | file_uploads=1 | 6 | file_uploads=1 |
| 5 | sp.configuration_file={PWD}/config/broken_conf_nonexisting_script.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_nonexisting_script.ini |
diff --git a/src/tests/broken_configuration/broken_conf_quotes.phpt b/src/tests/broken_configuration/broken_conf_quotes.phpt index 9a8de98..5b7b839 100644 --- a/src/tests/broken_configuration/broken_conf_quotes.phpt +++ b/src/tests/broken_configuration/broken_conf_quotes.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration - missing quote | 2 | Broken configuration - missing quote |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_quotes.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_quotes.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] You forgot to close a bracket | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value '_SERVER[PHP_SELF' for `var` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value '_SERVER[PHP_SELF' for `var` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_readonly_exec.phpt b/src/tests/broken_configuration/broken_conf_readonly_exec.phpt index 1df0923..78b2b9a 100644 --- a/src/tests/broken_configuration/broken_conf_readonly_exec.phpt +++ b/src/tests/broken_configuration/broken_conf_readonly_exec.phpt | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | --TEST-- | 1 | --TEST-- |
| 2 | Invalid configuration file for readonly_exec | 2 | Invalid configuration file for readonly_exec |
| 3 | --SKIPIF-- | ||
| 4 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 3 | --INI-- | 5 | --INI-- |
| 4 | file_uploads=1 | 6 | file_uploads=1 |
| 5 | sp.configuration_file={PWD}/config/broken_conf_readonly_exec.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_readonly_exec.ini |
diff --git a/src/tests/broken_configuration/broken_conf_samesite.phpt b/src/tests/broken_configuration/broken_conf_samesite.phpt index fd82903..e4940c9 100644 --- a/src/tests/broken_configuration/broken_conf_samesite.phpt +++ b/src/tests/broken_configuration/broken_conf_samesite.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Bad config, invalid samesite type. | 2 | Bad config, invalid samesite type. |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_cookie_samesite.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_cookie_samesite.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] nop is an invalid value | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] nop is an invalid value to samesite (expected Lax or Strict) on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] nop is an invalid value to samesite (expected Lax or Strict) on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_session_encryption.phpt b/src/tests/broken_configuration/broken_conf_session_encryption.phpt index 2604f37..9dbedc1 100644 --- a/src/tests/broken_configuration/broken_conf_session_encryption.phpt +++ b/src/tests/broken_configuration/broken_conf_session_encryption.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken config, session encryption | 2 | Broken config, session encryption |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_session_encryption.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_session_encryption.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/broken_configuration/broken_conf_session_encryption_without_encryption_key.phpt b/src/tests/broken_configuration/broken_conf_session_encryption_without_encryption_key.phpt index 520ce79..c638f80 100644 --- a/src/tests/broken_configuration/broken_conf_session_encryption_without_encryption_key.phpt +++ b/src/tests/broken_configuration/broken_conf_session_encryption_without_encryption_key.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration - encrypted session without encryption key | 2 | Broken configuration - encrypted session without encryption key |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_session_encryption_without_encryption_key.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_session_encryption_without_encryption_key.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/broken_configuration/broken_conf_session_encryption_without_env_var.phpt b/src/tests/broken_configuration/broken_conf_session_encryption_without_env_var.phpt index 0aba1ac..d503942 100644 --- a/src/tests/broken_configuration/broken_conf_session_encryption_without_env_var.phpt +++ b/src/tests/broken_configuration/broken_conf_session_encryption_without_env_var.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration - encrypted session without env var | 2 | Broken configuration - encrypted session without env var |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_session_encryption_without_env_var.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_session_encryption_without_env_var.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/broken_configuration/broken_conf_shown_in_phpinfo.phpt b/src/tests/broken_configuration/broken_conf_shown_in_phpinfo.phpt index 15619de..1ad0afb 100644 --- a/src/tests/broken_configuration/broken_conf_shown_in_phpinfo.phpt +++ b/src/tests/broken_configuration/broken_conf_shown_in_phpinfo.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration | 2 | Broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_config_regexp.ini | 7 | sp.configuration_file={PWD}/config/broken_config_regexp.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/broken_configuration/broken_conf_truncated.phpt b/src/tests/broken_configuration/broken_conf_truncated.phpt index 035f308..6deff87 100644 --- a/src/tests/broken_configuration/broken_conf_truncated.phpt +++ b/src/tests/broken_configuration/broken_conf_truncated.phpt | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | --TEST-- | 1 | --TEST-- |
| 2 | Bad boolean value in configuration | 2 | Bad boolean value in configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 5 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_broken_conf_truncated.ini | 7 | sp.configuration_file={PWD}/config/config_broken_conf_truncated.ini |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][error][log] A valid string as paramet | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][error][log] A valid string as parameter is expected on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][error][log] A valid string as parameter is expected on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_unserialize.phpt b/src/tests/broken_configuration/broken_conf_unserialize.phpt index e389177..a42d8a1 100644 --- a/src/tests/broken_configuration/broken_conf_unserialize.phpt +++ b/src/tests/broken_configuration/broken_conf_unserialize.phpt | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | --TEST-- | 1 | --TEST-- |
| 2 | Invalid configuration file for unserialize | 2 | Invalid configuration file for unserialize |
| 3 | --SKIPIF-- | ||
| 4 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 3 | --INI-- | 5 | --INI-- |
| 4 | file_uploads=1 | 6 | file_uploads=1 |
| 5 | sp.configuration_file={PWD}/config/broken_conf_unserialize.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_unserialize.ini |
diff --git a/src/tests/broken_configuration/broken_conf_upload_validation.phpt b/src/tests/broken_configuration/broken_conf_upload_validation.phpt index 553271b..4b65339 100644 --- a/src/tests/broken_configuration/broken_conf_upload_validation.phpt +++ b/src/tests/broken_configuration/broken_conf_upload_validation.phpt | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | --TEST-- | 1 | --TEST-- |
| 2 | Invalid configuration file for upload validation | 2 | Invalid configuration file for upload validation |
| 3 | --SKIPIF-- | ||
| 4 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 3 | --INI-- | 5 | --INI-- |
| 4 | file_uploads=1 | 6 | file_uploads=1 |
| 5 | sp.configuration_file={PWD}/config/borken_conf_upload_validation.ini | 7 | sp.configuration_file={PWD}/config/borken_conf_upload_validation.ini |
diff --git a/src/tests/broken_configuration/broken_conf_weird_keyword.phpt b/src/tests/broken_configuration/broken_conf_weird_keyword.phpt index 24e6047..ce568af 100644 --- a/src/tests/broken_configuration/broken_conf_weird_keyword.phpt +++ b/src/tests/broken_configuration/broken_conf_weird_keyword.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Bad config, unknown keyword | 2 | Bad config, unknown keyword |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_weird_keyword.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_weird_keyword.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] Trailing chars '.not_a_v | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Trailing chars '.not_a_valid_keyword("test");' at the end of '.enable().not_a_valid_keyword("test");' on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Trailing chars '.not_a_valid_keyword("test");' at the end of '.enable().not_a_valid_keyword("test");' on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_wrapper_whitelist.phpt b/src/tests/broken_configuration/broken_conf_wrapper_whitelist.phpt index c3e40c1..2d1feeb 100644 --- a/src/tests/broken_configuration/broken_conf_wrapper_whitelist.phpt +++ b/src/tests/broken_configuration/broken_conf_wrapper_whitelist.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration with invalid token for wrapper whitelist | 2 | Broken configuration with invalid token for wrapper whitelist |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_wrapper_whitelist.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_wrapper_whitelist.ini |
| 7 | sp.allow_broken_configuration=Off | 8 | sp.allow_broken_configuration=Off |
diff --git a/src/tests/broken_configuration/broken_conf_wrong_quotes.phpt b/src/tests/broken_configuration/broken_conf_wrong_quotes.phpt index b61cf3f..3753989 100644 --- a/src/tests/broken_configuration/broken_conf_wrong_quotes.phpt +++ b/src/tests/broken_configuration/broken_conf_wrong_quotes.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Configuration line with too many quotes | 2 | Configuration line with too many quotes |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_wrong_quotes.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_wrong_quotes.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][error][log] There is an issue with th | |||
| 11 | Fatal error: [snuffleupagus][0.0.0.0][error][log] There is an issue with the parsing of '"\)': it doesn't look like a valid string on line 1 in Unknown on line 0 | 12 | Fatal error: [snuffleupagus][0.0.0.0][error][log] There is an issue with the parsing of '"\)': it doesn't look like a valid string on line 1 in Unknown on line 0 |
| 12 | 13 | ||
| 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 14 | Could not startup. \ No newline at end of file | 15 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_conf_wrong_type.phpt b/src/tests/broken_configuration/broken_conf_wrong_type.phpt index 32e8499..b204968 100644 --- a/src/tests/broken_configuration/broken_conf_wrong_type.phpt +++ b/src/tests/broken_configuration/broken_conf_wrong_type.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken conf with wrong type | 2 | Broken conf with wrong type |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_conf_wrong_type.ini | 7 | sp.configuration_file={PWD}/config/broken_conf_wrong_type.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/broken_configuration/broken_regexp.phpt b/src/tests/broken_configuration/broken_regexp.phpt index 3d06ba1..83c7103 100644 --- a/src/tests/broken_configuration/broken_regexp.phpt +++ b/src/tests/broken_configuration/broken_regexp.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken regexp | 2 | Broken regexp |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/broken_regexp.ini | 7 | sp.configuration_file={PWD}/config/broken_regexp.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Failed to compile '^$[': miss | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] '.value_r()' is expecting a valid regexp, and not '"^$["' on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] '.value_r()' is expecting a valid regexp, and not '"^$["' on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/broken_configuration/broken_unmatching_brackets.phpt b/src/tests/broken_configuration/broken_unmatching_brackets.phpt index 46c81f9..ba14ff3 100644 --- a/src/tests/broken_configuration/broken_unmatching_brackets.phpt +++ b/src/tests/broken_configuration/broken_unmatching_brackets.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Broken configuration - unmatching brackets | 2 | Broken configuration - unmatching brackets |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_unmatching_brackets.ini | 7 | sp.configuration_file={PWD}/config/config_unmatching_brackets.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid `]` position. in Unkn | |||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value 'arr[b]]]]]' for `param` on line 1 in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid value 'arr[b]]]]]' for `param` on line 1 in Unknown on line 0 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 17 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 17 | Could not startup. \ No newline at end of file | 18 | Could not startup. |
diff --git a/src/tests/config_typo3.phpt b/src/tests/config_typo3.phpt index 6545d07..bae7686 100644 --- a/src/tests/config_typo3.phpt +++ b/src/tests/config_typo3.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Rules for Typo3 | 2 | Rules for Typo3 |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/../../config/typo3.rules | 7 | sp.configuration_file={PWD}/../../config/typo3.rules |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/cookies_encryption/encrypt_cookies2.phpt b/src/tests/cookies_encryption/encrypt_cookies2.phpt index 18c6b41..b71aaa9 100644 --- a/src/tests/cookies_encryption/encrypt_cookies2.phpt +++ b/src/tests/cookies_encryption/encrypt_cookies2.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Cookie encryption in ipv4 | 2 | Cookie encryption in ipv4 |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_encrypted_regexp_cookies.ini | 7 | sp.configuration_file={PWD}/config/config_encrypted_regexp_cookies.ini |
| 7 | --COOKIE-- | 8 | --COOKIE-- |
diff --git a/src/tests/cookies_encryption/encrypt_cookies4.phpt b/src/tests/cookies_encryption/encrypt_cookies4.phpt index da694e5..fa36756 100644 --- a/src/tests/cookies_encryption/encrypt_cookies4.phpt +++ b/src/tests/cookies_encryption/encrypt_cookies4.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Cookie encryption in ipv6 | 2 | Cookie encryption in ipv6 |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_encrypted_cookies.ini | 7 | sp.configuration_file={PWD}/config/config_encrypted_cookies.ini |
| 7 | --COOKIE-- | 8 | --COOKIE-- |
diff --git a/src/tests/cookies_encryption/encrypt_regexp_cookies2.phpt b/src/tests/cookies_encryption/encrypt_regexp_cookies2.phpt index 18c6b41..b71aaa9 100644 --- a/src/tests/cookies_encryption/encrypt_regexp_cookies2.phpt +++ b/src/tests/cookies_encryption/encrypt_regexp_cookies2.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Cookie encryption in ipv4 | 2 | Cookie encryption in ipv4 |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_encrypted_regexp_cookies.ini | 7 | sp.configuration_file={PWD}/config/config_encrypted_regexp_cookies.ini |
| 7 | --COOKIE-- | 8 | --COOKIE-- |
diff --git a/src/tests/cookies_encryption/setcookie.phpt b/src/tests/cookies_encryption/setcookie.phpt index 87a72c6..4e86984 100644 --- a/src/tests/cookies_encryption/setcookie.phpt +++ b/src/tests/cookies_encryption/setcookie.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Set cookies. | 2 | Set cookies. |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_encrypted_cookies.ini | 7 | sp.configuration_file={PWD}/config/config_encrypted_cookies.ini |
| 7 | --COOKIE-- | 8 | --COOKIE-- |
diff --git a/src/tests/disable_function/disabled_function_echo.phpt b/src/tests/disable_function/disabled_function_echo.phpt index 5b66880..147fac8 100644 --- a/src/tests/disable_function/disabled_function_echo.phpt +++ b/src/tests/disable_function/disabled_function_echo.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Echo hooking | 2 | Echo hooking |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_echo.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_echo.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -16,4 +17,4 @@ test("oops"); | |||
| 16 | --CLEAN-- | 17 | --CLEAN-- |
| 17 | --EXPECTF-- | 18 | --EXPECTF-- |
| 18 | qwerty | 19 | qwerty |
| 19 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'echo' in %a/disabled_function_echo.php on line 3 \ No newline at end of file | 20 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'echo' in %a/disabled_function_echo.php on line 3 |
diff --git a/src/tests/disable_function/disabled_function_echo_2.phpt b/src/tests/disable_function/disabled_function_echo_2.phpt index 60cc2f7..53355e9 100644 --- a/src/tests/disable_function/disabled_function_echo_2.phpt +++ b/src/tests/disable_function/disabled_function_echo_2.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Echo hooking | 2 | Echo hooking |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_echo.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_echo.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -12,4 +13,4 @@ echo "1", "oops"; | |||
| 12 | --CLEAN-- | 13 | --CLEAN-- |
| 13 | --EXPECTF-- | 14 | --EXPECTF-- |
| 14 | qwe1 | 15 | qwe1 |
| 15 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'echo' in %a/disabled_function_echo_2.php on line 3 \ No newline at end of file | 16 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'echo' in %a/disabled_function_echo_2.php on line 3 |
diff --git a/src/tests/disable_function/disabled_function_echo_local_var.phpt b/src/tests/disable_function/disabled_function_echo_local_var.phpt index 3a886f2..a614f1f 100644 --- a/src/tests/disable_function/disabled_function_echo_local_var.phpt +++ b/src/tests/disable_function/disabled_function_echo_local_var.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Echo hooking | 2 | Echo hooking |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_echo.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_echo.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -18,4 +19,4 @@ test(); | |||
| 18 | --EXPECTF-- | 19 | --EXPECTF-- |
| 19 | 3 | 20 | 3 |
| 20 | 21 | ||
| 21 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'echo' in %a/disabled_function_echo_local_var.php on line 3 \ No newline at end of file | 22 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'echo' in %a/disabled_function_echo_local_var.php on line 3 |
diff --git a/src/tests/disable_function/disabled_function_ensure_client_valid_certs.phpt b/src/tests/disable_function/disabled_function_ensure_client_valid_certs.phpt index 9872374..6197e68 100644 --- a/src/tests/disable_function/disabled_function_ensure_client_valid_certs.phpt +++ b/src/tests/disable_function/disabled_function_ensure_client_valid_certs.phpt | |||
| @@ -5,6 +5,7 @@ Disable functions - Ensure that client certificates validation can't be disabled | |||
| 5 | if (!extension_loaded("snuffleupagus")) { print("skip"); } | 5 | if (!extension_loaded("snuffleupagus")) { print("skip"); } |
| 6 | if (!extension_loaded("curl")) { print("skip"); } | 6 | if (!extension_loaded("curl")) { print("skip"); } |
| 7 | ?> | 7 | ?> |
| 8 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 8 | --EXTENSIONS-- | 9 | --EXTENSIONS-- |
| 9 | curl | 10 | curl |
| 10 | --INI-- | 11 | --INI-- |
diff --git a/src/tests/disable_function/disabled_function_ensure_client_valid_certs_curl_multi_setopt.phpt b/src/tests/disable_function/disabled_function_ensure_client_valid_certs_curl_multi_setopt.phpt index 45ae95e..c469e94 100644 --- a/src/tests/disable_function/disabled_function_ensure_client_valid_certs_curl_multi_setopt.phpt +++ b/src/tests/disable_function/disabled_function_ensure_client_valid_certs_curl_multi_setopt.phpt | |||
| @@ -5,6 +5,7 @@ Disable functions - Ensure that client certificates validation can't be disabled | |||
| 5 | if (!extension_loaded("snuffleupagus")) { print("skip"); } | 5 | if (!extension_loaded("snuffleupagus")) { print("skip"); } |
| 6 | if (!extension_loaded("curl")) { print("skip"); } | 6 | if (!extension_loaded("curl")) { print("skip"); } |
| 7 | ?> | 7 | ?> |
| 8 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 8 | --EXTENSIONS-- | 9 | --EXTENSIONS-- |
| 9 | curl | 10 | curl |
| 10 | --INI-- | 11 | --INI-- |
diff --git a/src/tests/disable_function/disabled_function_ensure_client_valid_certs_curl_setopt_array.phpt b/src/tests/disable_function/disabled_function_ensure_client_valid_certs_curl_setopt_array.phpt index 93ed020..fec94c5 100644 --- a/src/tests/disable_function/disabled_function_ensure_client_valid_certs_curl_setopt_array.phpt +++ b/src/tests/disable_function/disabled_function_ensure_client_valid_certs_curl_setopt_array.phpt | |||
| @@ -5,6 +5,7 @@ Disable functions - Ensure that client certificates validation can't be disabled | |||
| 5 | if (!extension_loaded("snuffleupagus")) { print("skip"); } | 5 | if (!extension_loaded("snuffleupagus")) { print("skip"); } |
| 6 | if (!extension_loaded("curl")) { print("skip"); } | 6 | if (!extension_loaded("curl")) { print("skip"); } |
| 7 | ?> | 7 | ?> |
| 8 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 8 | --EXTENSIONS-- | 9 | --EXTENSIONS-- |
| 9 | curl | 10 | curl |
| 10 | --INI-- | 11 | --INI-- |
diff --git a/src/tests/disable_function/disabled_function_ensure_server_valid_certs.phpt b/src/tests/disable_function/disabled_function_ensure_server_valid_certs.phpt index 6e027de..354d3db 100644 --- a/src/tests/disable_function/disabled_function_ensure_server_valid_certs.phpt +++ b/src/tests/disable_function/disabled_function_ensure_server_valid_certs.phpt | |||
| @@ -5,6 +5,7 @@ Disable functions - Ensure that server certificates validation can't be disabled | |||
| 5 | if (!extension_loaded("snuffleupagus")) { print("skip"); } | 5 | if (!extension_loaded("snuffleupagus")) { print("skip"); } |
| 6 | if (!extension_loaded("curl")) { print("skip"); } | 6 | if (!extension_loaded("curl")) { print("skip"); } |
| 7 | ?> | 7 | ?> |
| 8 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 8 | --EXTENSIONS-- | 9 | --EXTENSIONS-- |
| 9 | curl | 10 | curl |
| 10 | --INI-- | 11 | --INI-- |
diff --git a/src/tests/disable_function/disabled_function_ensure_server_valid_certs_curl_multi_setopt.phpt b/src/tests/disable_function/disabled_function_ensure_server_valid_certs_curl_multi_setopt.phpt index 32013b5..7c03c7e 100644 --- a/src/tests/disable_function/disabled_function_ensure_server_valid_certs_curl_multi_setopt.phpt +++ b/src/tests/disable_function/disabled_function_ensure_server_valid_certs_curl_multi_setopt.phpt | |||
| @@ -5,6 +5,7 @@ Disable functions - Ensure that server certificates validation can't be disabled | |||
| 5 | if (!extension_loaded("snuffleupagus")) { print("skip"); } | 5 | if (!extension_loaded("snuffleupagus")) { print("skip"); } |
| 6 | if (!extension_loaded("curl")) { print("skip"); } | 6 | if (!extension_loaded("curl")) { print("skip"); } |
| 7 | ?> | 7 | ?> |
| 8 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 8 | --EXTENSIONS-- | 9 | --EXTENSIONS-- |
| 9 | curl | 10 | curl |
| 10 | --INI-- | 11 | --INI-- |
diff --git a/src/tests/disable_function/disabled_function_ensure_server_valid_certs_curl_setopt_array.phpt b/src/tests/disable_function/disabled_function_ensure_server_valid_certs_curl_setopt_array.phpt index ec0528a..f6f63ba 100644 --- a/src/tests/disable_function/disabled_function_ensure_server_valid_certs_curl_setopt_array.phpt +++ b/src/tests/disable_function/disabled_function_ensure_server_valid_certs_curl_setopt_array.phpt | |||
| @@ -5,6 +5,7 @@ Disable functions - Ensure that server certificates validation can't be disabled | |||
| 5 | if (!extension_loaded("snuffleupagus")) { echo("skip"); } | 5 | if (!extension_loaded("snuffleupagus")) { echo("skip"); } |
| 6 | if (!extension_loaded("curl")) { echo("skip"); } | 6 | if (!extension_loaded("curl")) { echo("skip"); } |
| 7 | ?> | 7 | ?> |
| 8 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 8 | --EXTENSIONS-- | 9 | --EXTENSIONS-- |
| 9 | curl | 10 | curl |
| 10 | --INI-- | 11 | --INI-- |
diff --git a/src/tests/disable_function/disabled_function_local_var.phpt b/src/tests/disable_function/disabled_function_local_var.phpt index c28fd8c..fb4b7a1 100644 --- a/src/tests/disable_function/disabled_function_local_var.phpt +++ b/src/tests/disable_function/disabled_function_local_var.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on a local variable | 2 | Disable functions - match on a local variable |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_function_local_var_10.phpt b/src/tests/disable_function/disabled_function_local_var_10.phpt index eefb161..b9c9491 100644 --- a/src/tests/disable_function/disabled_function_local_var_10.phpt +++ b/src/tests/disable_function/disabled_function_local_var_10.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on a local variable | 2 | Disable functions - match on a local variable |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -42,4 +43,4 @@ array(2) { | |||
| 42 | } | 43 | } |
| 43 | } | 44 | } |
| 44 | 45 | ||
| 45 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_10.php on line 7 \ No newline at end of file | 46 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_10.php on line 7 |
diff --git a/src/tests/disable_function/disabled_function_local_var_2.phpt b/src/tests/disable_function/disabled_function_local_var_2.phpt index 076c3c5..b073f8b 100644 --- a/src/tests/disable_function/disabled_function_local_var_2.phpt +++ b/src/tests/disable_function/disabled_function_local_var_2.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on a local variable | 2 | Disable functions - match on a local variable |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_function_local_var_3.phpt b/src/tests/disable_function/disabled_function_local_var_3.phpt index f404682..0bb3074 100644 --- a/src/tests/disable_function/disabled_function_local_var_3.phpt +++ b/src/tests/disable_function/disabled_function_local_var_3.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on a local variable | 2 | Disable functions - match on a local variable |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_function_local_var_4.phpt b/src/tests/disable_function/disabled_function_local_var_4.phpt index f290a8b..7aa5e0c 100644 --- a/src/tests/disable_function/disabled_function_local_var_4.phpt +++ b/src/tests/disable_function/disabled_function_local_var_4.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on a local variable | 2 | Disable functions - match on a local variable |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_local_var_2.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_local_var_2.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -54,4 +55,4 @@ test(); | |||
| 54 | Valeur: valeur de a | 55 | Valeur: valeur de a |
| 55 | Valeur: valeur de apres | 56 | Valeur: valeur de apres |
| 56 | 57 | ||
| 57 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_4.php on line 36 \ No newline at end of file | 58 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_4.php on line 36 |
diff --git a/src/tests/disable_function/disabled_function_local_var_5.phpt b/src/tests/disable_function/disabled_function_local_var_5.phpt index 7e592cd..dec1140 100644 --- a/src/tests/disable_function/disabled_function_local_var_5.phpt +++ b/src/tests/disable_function/disabled_function_local_var_5.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on a local variable | 2 | Disable functions - match on a local variable |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_function_local_var_6.phpt b/src/tests/disable_function/disabled_function_local_var_6.phpt index b2a16bf..71fe777 100644 --- a/src/tests/disable_function/disabled_function_local_var_6.phpt +++ b/src/tests/disable_function/disabled_function_local_var_6.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on a local variable | 2 | Disable functions - match on a local variable |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -29,4 +30,4 @@ class test_object { | |||
| 29 | --EXPECTF-- | 30 | --EXPECTF-- |
| 30 | Valeur: no good | 31 | Valeur: no good |
| 31 | 32 | ||
| 32 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_6.php on line 4 \ No newline at end of file | 33 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_6.php on line 4 |
diff --git a/src/tests/disable_function/disabled_function_local_var_7.phpt b/src/tests/disable_function/disabled_function_local_var_7.phpt index e15a430..2a074c8 100644 --- a/src/tests/disable_function/disabled_function_local_var_7.phpt +++ b/src/tests/disable_function/disabled_function_local_var_7.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on a local variable | 2 | Disable functions - match on a local variable |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -29,4 +30,4 @@ class test_object { | |||
| 29 | --EXPECTF-- | 30 | --EXPECTF-- |
| 30 | Valeur: qwerty | 31 | Valeur: qwerty |
| 31 | 32 | ||
| 32 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_7.php on line 4 \ No newline at end of file | 33 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_7.php on line 4 |
diff --git a/src/tests/disable_function/disabled_function_local_var_8.phpt b/src/tests/disable_function/disabled_function_local_var_8.phpt index 4f1b4c5..65b4b35 100644 --- a/src/tests/disable_function/disabled_function_local_var_8.phpt +++ b/src/tests/disable_function/disabled_function_local_var_8.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on a local variable | 2 | Disable functions - match on a local variable |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -18,4 +19,4 @@ namespace asd { | |||
| 18 | --EXPECTF-- | 19 | --EXPECTF-- |
| 19 | Valeur: qwerty | 20 | Valeur: qwerty |
| 20 | 21 | ||
| 21 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_8.php on line 8 \ No newline at end of file | 22 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_8.php on line 8 |
diff --git a/src/tests/disable_function/disabled_function_local_var_9.phpt b/src/tests/disable_function/disabled_function_local_var_9.phpt index eddb1ea..dd86d21 100644 --- a/src/tests/disable_function/disabled_function_local_var_9.phpt +++ b/src/tests/disable_function/disabled_function_local_var_9.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on a local variable | 2 | Disable functions - match on a local variable |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -18,4 +19,4 @@ namespace asd { | |||
| 18 | --EXPECTF-- | 19 | --EXPECTF-- |
| 19 | Valeur: asdfgh | 20 | Valeur: asdfgh |
| 20 | 21 | ||
| 21 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_9.php on line 8 \ No newline at end of file | 22 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_9.php on line 8 |
diff --git a/src/tests/disable_function/disabled_function_local_var_const.phpt b/src/tests/disable_function/disabled_function_local_var_const.phpt index a0912d9..1a2767b 100644 --- a/src/tests/disable_function/disabled_function_local_var_const.phpt +++ b/src/tests/disable_function/disabled_function_local_var_const.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on a constant | 2 | Disable functions - match on a constant |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_local_var_const.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_local_var_const.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ define("MY_CONST", $a); | |||
| 11 | strtoupper("test"); | 12 | strtoupper("test"); |
| 12 | ?> | 13 | ?> |
| 13 | --EXPECTF-- | 14 | --EXPECTF-- |
| 14 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_const.php on line 4 \ No newline at end of file | 15 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_const.php on line 4 |
diff --git a/src/tests/disable_function/disabled_function_local_var_crash.phpt b/src/tests/disable_function/disabled_function_local_var_crash.phpt index f36b2c7..d29fcdc 100644 --- a/src/tests/disable_function/disabled_function_local_var_crash.phpt +++ b/src/tests/disable_function/disabled_function_local_var_crash.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on a local variable | 2 | Disable functions - match on a local variable |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_local_var.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_function_local_var_obj.phpt b/src/tests/disable_function/disabled_function_local_var_obj.phpt index 684933a..80b83cc 100644 --- a/src/tests/disable_function/disabled_function_local_var_obj.phpt +++ b/src/tests/disable_function/disabled_function_local_var_obj.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on a local variable | 2 | Disable functions - match on a local variable |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_local_var_obj.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_local_var_obj.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_function_param.phpt b/src/tests/disable_function/disabled_function_param.phpt index bbf05f0..fe673d8 100644 --- a/src/tests/disable_function/disabled_function_param.phpt +++ b/src/tests/disable_function/disabled_function_param.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on a param | 2 | Disable functions - match on a param |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_param.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_param.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -17,4 +18,4 @@ qweqwe(Array(2)); | |||
| 17 | --EXPECTF-- | 18 | --EXPECTF-- |
| 18 | OK | 19 | OK |
| 19 | 20 | ||
| 20 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'qweqwe', because its argument '$asd' content (2) matched a rule in %a/disabled_function_param.php on line 3 \ No newline at end of file | 21 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'qweqwe', because its argument '$asd' content (2) matched a rule in %a/disabled_function_param.php on line 3 |
diff --git a/src/tests/disable_function/disabled_function_super_global_var.phpt b/src/tests/disable_function/disabled_function_super_global_var.phpt index 6232e19..1a3d0ad 100644 --- a/src/tests/disable_function/disabled_function_super_global_var.phpt +++ b/src/tests/disable_function/disabled_function_super_global_var.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on a super global | 2 | Disable functions - match on a super global |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_super_global_var.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_super_global_var.ini |
| 7 | --GET-- | 8 | --GET-- |
diff --git a/src/tests/disable_function/disabled_functions.phpt b/src/tests/disable_function/disabled_functions.phpt index cda7c20..1434053 100644 --- a/src/tests/disable_function/disabled_functions.phpt +++ b/src/tests/disable_function/disabled_functions.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions | 2 | Disable functions |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_functions.ini | 7 | sp.configuration_file={PWD}/config/disabled_functions.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_callback_called_file_r.phpt b/src/tests/disable_function/disabled_functions_callback_called_file_r.phpt index ec75d74..464af87 100644 --- a/src/tests/disable_function/disabled_functions_callback_called_file_r.phpt +++ b/src/tests/disable_function/disabled_functions_callback_called_file_r.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions by matching on the filename_r where the callback function is called, and not defined | 2 | Disable functions by matching on the filename_r where the callback function is called, and not defined |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_callback_called_file_r.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_callback_called_file_r.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_called_file_r.phpt b/src/tests/disable_function/disabled_functions_called_file_r.phpt index dde26f7..e592359 100644 --- a/src/tests/disable_function/disabled_functions_called_file_r.phpt +++ b/src/tests/disable_function/disabled_functions_called_file_r.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions by matching on the filename_r where the function is called, and not defined | 2 | Disable functions by matching on the filename_r where the function is called, and not defined |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_called_file_r.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_called_file_r.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_drop_include.phpt b/src/tests/disable_function/disabled_functions_drop_include.phpt index 975168e..014a627 100644 --- a/src/tests/disable_function/disabled_functions_drop_include.phpt +++ b/src/tests/disable_function/disabled_functions_drop_include.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable function, bug : https://github.com/jvoisin/snuffleupagus/issues/181 | 2 | Disable function, bug : https://github.com/jvoisin/snuffleupagus/issues/181 |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_functions_drop_include.ini | 7 | sp.configuration_file={PWD}/config/disabled_functions_drop_include.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_drop_include_simulation.phpt b/src/tests/disable_function/disabled_functions_drop_include_simulation.phpt index 0a693be..97e1569 100644 --- a/src/tests/disable_function/disabled_functions_drop_include_simulation.phpt +++ b/src/tests/disable_function/disabled_functions_drop_include_simulation.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable function, bug : https://github.com/jvoisin/snuffleupagus/issues/181 | 2 | Disable function, bug : https://github.com/jvoisin/snuffleupagus/issues/181 |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_functions_drop_include_simulation.ini | 7 | sp.configuration_file={PWD}/config/disabled_functions_drop_include_simulation.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_eval_filename.phpt b/src/tests/disable_function/disabled_functions_eval_filename.phpt index 61757a3..eb714e5 100644 --- a/src/tests/disable_function/disabled_functions_eval_filename.phpt +++ b/src/tests/disable_function/disabled_functions_eval_filename.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - eval | 2 | Disable functions - eval |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_eval_filename.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_eval_filename.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ eval('$var = 1337 + 1337;'); | |||
| 11 | print("Variable: $var\n"); | 12 | print("Variable: $var\n"); |
| 12 | ?> | 13 | ?> |
| 13 | --EXPECTF-- | 14 | --EXPECTF-- |
| 14 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'eval' in %a/disabled_functions_eval_filename.php(3) : eval()'d code on line 1 \ No newline at end of file | 15 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'eval' in %a/disabled_functions_eval_filename.php(3) : eval()'d code on line 1 |
diff --git a/src/tests/disable_function/disabled_functions_filename_r.phpt b/src/tests/disable_function/disabled_functions_filename_r.phpt index f6b1538..a636675 100644 --- a/src/tests/disable_function/disabled_functions_filename_r.phpt +++ b/src/tests/disable_function/disabled_functions_filename_r.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - filename regexp | 2 | Disable functions - filename regexp |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_filename_r.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_filename_r.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -12,4 +13,4 @@ shell_exec("echo 43"); | |||
| 12 | --EXPECTF-- | 13 | --EXPECTF-- |
| 13 | 42 | 14 | 42 |
| 14 | 15 | ||
| 15 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'shell_exec' in %a/disabled_functions_filename_r.php on line 3 \ No newline at end of file | 16 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'shell_exec' in %a/disabled_functions_filename_r.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_include_once.phpt b/src/tests/disable_function/disabled_functions_include_once.phpt index 57cb5a1..93a6491 100644 --- a/src/tests/disable_function/disabled_functions_include_once.phpt +++ b/src/tests/disable_function/disabled_functions_include_once.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - include_once | 2 | Disable functions - include_once |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_include.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_include.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_include_simulation.phpt b/src/tests/disable_function/disabled_functions_include_simulation.phpt index 53ea2a4..d88e823 100644 --- a/src/tests/disable_function/disabled_functions_include_simulation.phpt +++ b/src/tests/disable_function/disabled_functions_include_simulation.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - Include (simulation) | 2 | Disable functions - Include (simulation) |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_include.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_include.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_local_var_array.phpt b/src/tests/disable_function/disabled_functions_local_var_array.phpt index f9f2d36..4790148 100644 --- a/src/tests/disable_function/disabled_functions_local_var_array.phpt +++ b/src/tests/disable_function/disabled_functions_local_var_array.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on an array value buried in several levels | 2 | Disable functions - match on an array value buried in several levels |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_local_var_array.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_local_var_array.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -18,4 +19,4 @@ foo($a); | |||
| 18 | --EXPECTF-- | 19 | --EXPECTF-- |
| 19 | cccc | 20 | cccc |
| 20 | 21 | ||
| 21 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo' in %a/disabled_functions_local_var_array.php on line 3 \ No newline at end of file | 22 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo' in %a/disabled_functions_local_var_array.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_local_var_array_key.phpt b/src/tests/disable_function/disabled_functions_local_var_array_key.phpt index c585ab3..d11ae7e 100644 --- a/src/tests/disable_function/disabled_functions_local_var_array_key.phpt +++ b/src/tests/disable_function/disabled_functions_local_var_array_key.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on an array value buried in several levels | 2 | Disable functions - match on an array value buried in several levels |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_local_var_array_key.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_local_var_array_key.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -18,4 +19,4 @@ foo($a); | |||
| 18 | --EXPECTF-- | 19 | --EXPECTF-- |
| 19 | cccc | 20 | cccc |
| 20 | 21 | ||
| 21 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo' in %a/disabled_functions_local_var_array_key.php on line 3 \ No newline at end of file | 22 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo' in %a/disabled_functions_local_var_array_key.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_local_var_array_not_array.phpt b/src/tests/disable_function/disabled_functions_local_var_array_not_array.phpt index 6a62074..627e7ca 100644 --- a/src/tests/disable_function/disabled_functions_local_var_array_not_array.phpt +++ b/src/tests/disable_function/disabled_functions_local_var_array_not_array.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions | 2 | Disable functions |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_local_var_array_not_array.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_local_var_array_not_array.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_method.phpt b/src/tests/disable_function/disabled_functions_method.phpt index 5f287ad..b41c74d 100644 --- a/src/tests/disable_function/disabled_functions_method.phpt +++ b/src/tests/disable_function/disabled_functions_method.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions | 2 | Disable functions |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_method.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_method.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -24,4 +25,4 @@ $c->method2("paf"); | |||
| 24 | $c->method3("pouet"); | 25 | $c->method3("pouet"); |
| 25 | ?> | 26 | ?> |
| 26 | --EXPECTF-- | 27 | --EXPECTF-- |
| 27 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'AwesomeClass::method1' in %a/disabled_functions_method.php on line 4 \ No newline at end of file | 28 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'AwesomeClass::method1' in %a/disabled_functions_method.php on line 4 |
diff --git a/src/tests/disable_function/disabled_functions_name_r.phpt b/src/tests/disable_function/disabled_functions_name_r.phpt index db2efbf..b910e65 100644 --- a/src/tests/disable_function/disabled_functions_name_r.phpt +++ b/src/tests/disable_function/disabled_functions_name_r.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions | 2 | Disable functions |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_name_r.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_name_r.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -13,4 +14,4 @@ system("echo 1337"); | |||
| 13 | 42 | 14 | 42 |
| 14 | 1337 | 15 | 1337 |
| 15 | 16 | ||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'system', because the function returned '1337', which matched a rule in %a/disabled_functions_name_r.php on line 3 \ No newline at end of file | 17 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'system', because the function returned '1337', which matched a rule in %a/disabled_functions_name_r.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_name_regexp_type.phpt b/src/tests/disable_function/disabled_functions_name_regexp_type.phpt index bf916d2..25ac2b3 100644 --- a/src/tests/disable_function/disabled_functions_name_regexp_type.phpt +++ b/src/tests/disable_function/disabled_functions_name_regexp_type.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions | 2 | Disable functions |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_name_regexp_type.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_name_regexp_type.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -14,4 +15,4 @@ echo strcmp([1], "pouet") . "\n"; | |||
| 14 | 0 | 15 | 0 |
| 15 | -1 | 16 | -1 |
| 16 | 17 | ||
| 17 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strcmp', because its argument 'str1' content (?) matched a rule in %a/disabled_functions_name_regexp_type.php on line 4 \ No newline at end of file | 18 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strcmp', because its argument 'str1' content (?) matched a rule in %a/disabled_functions_name_regexp_type.php on line 4 |
diff --git a/src/tests/disable_function/disabled_functions_name_type.phpt b/src/tests/disable_function/disabled_functions_name_type.phpt index c7971ee..8d70eaa 100644 --- a/src/tests/disable_function/disabled_functions_name_type.phpt +++ b/src/tests/disable_function/disabled_functions_name_type.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions | 2 | Disable functions |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_name_type.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_name_type.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -12,4 +13,4 @@ echo strcmp([1,23], "pouet") . "\n"; | |||
| 12 | --EXPECTF-- | 13 | --EXPECTF-- |
| 13 | 0 | 14 | 0 |
| 14 | 15 | ||
| 15 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strcmp', because its argument '$str1' content (ARRAY) matched a rule in %a/disabled_functions_name_type.php on line 3 \ No newline at end of file | 16 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strcmp', because its argument '$str1' content (ARRAY) matched a rule in %a/disabled_functions_name_type.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_nul_byte.phpt b/src/tests/disable_function/disabled_functions_nul_byte.phpt index ae9ead2..2bf26ab 100644 --- a/src/tests/disable_function/disabled_functions_nul_byte.phpt +++ b/src/tests/disable_function/disabled_functions_nul_byte.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions with nul byte | 2 | Disable functions with nul byte |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_nul_byte.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_nul_byte.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -11,4 +12,4 @@ system("id"); | |||
| 11 | 12 | ||
| 12 | ?> | 13 | ?> |
| 13 | --EXPECTF-- | 14 | --EXPECTF-- |
| 14 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system', because its argument '$command' content (0id) matched a rule in %a/disabled_functions_nul_byte.php on line 2 \ No newline at end of file | 15 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system', because its argument '$command' content (0id) matched a rule in %a/disabled_functions_nul_byte.php on line 2 |
diff --git a/src/tests/disable_function/disabled_functions_param.phpt b/src/tests/disable_function/disabled_functions_param.phpt index aa661e2..f384401 100644 --- a/src/tests/disable_function/disabled_functions_param.phpt +++ b/src/tests/disable_function/disabled_functions_param.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions | 2 | Disable functions |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_param.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -15,4 +16,4 @@ strcmp("bla", "ble"); | |||
| 15 | strncmp("bla", "ble", 2); | 16 | strncmp("bla", "ble", 2); |
| 16 | ?> | 17 | ?> |
| 17 | --EXPECTF-- | 18 | --EXPECTF-- |
| 18 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system', because its argument '$command' content (id) matched the rule '1' in %a/disabled_functions_param.php on line 2 \ No newline at end of file | 19 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system', because its argument '$command' content (id) matched the rule '1' in %a/disabled_functions_param.php on line 2 |
diff --git a/src/tests/disable_function/disabled_functions_param_allow.phpt b/src/tests/disable_function/disabled_functions_param_allow.phpt index cba8455..ac257e4 100644 --- a/src/tests/disable_function/disabled_functions_param_allow.phpt +++ b/src/tests/disable_function/disabled_functions_param_allow.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - allow | 2 | Disable functions - allow |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param_allow.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_param_allow.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -12,4 +13,4 @@ system("id"); | |||
| 12 | --EXPECTF-- | 13 | --EXPECTF-- |
| 13 | win | 14 | win |
| 14 | 15 | ||
| 15 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/disabled_functions_param_allow.php on line 3 \ No newline at end of file | 16 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/disabled_functions_param_allow.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_param_array.phpt b/src/tests/disable_function/disabled_functions_param_array.phpt index 30b11c1..7194548 100644 --- a/src/tests/disable_function/disabled_functions_param_array.phpt +++ b/src/tests/disable_function/disabled_functions_param_array.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions | 2 | Disable functions |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -22,4 +23,4 @@ foo($a); | |||
| 22 | test1 | 23 | test1 |
| 23 | abcde | 24 | abcde |
| 24 | 25 | ||
| 25 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument '$arr' content (abcd) matched the rule '1' in %a/disabled_functions_param_array.php on line 3 \ No newline at end of file | 26 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument '$arr' content (abcd) matched the rule '1' in %a/disabled_functions_param_array.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_param_array_deref.phpt b/src/tests/disable_function/disabled_functions_param_array_deref.phpt index a10c648..c8c9732 100644 --- a/src/tests/disable_function/disabled_functions_param_array_deref.phpt +++ b/src/tests/disable_function/disabled_functions_param_array_deref.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions | 2 | Disable functions |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -23,4 +24,4 @@ foo($a); | |||
| 23 | eee | 24 | eee |
| 24 | abcdef | 25 | abcdef |
| 25 | 26 | ||
| 26 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument '$arr' content (abcdef) matched the rule '2' in %a/disabled_functions_param_array_deref.php on line 3 \ No newline at end of file | 27 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument '$arr' content (abcdef) matched the rule '2' in %a/disabled_functions_param_array_deref.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_param_array_no_value.phpt b/src/tests/disable_function/disabled_functions_param_array_no_value.phpt index 778ec24..d31cef9 100644 --- a/src/tests/disable_function/disabled_functions_param_array_no_value.phpt +++ b/src/tests/disable_function/disabled_functions_param_array_no_value.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - matching on an array's variable only | 2 | Disable functions - matching on an array's variable only |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -20,4 +21,4 @@ foo($a); | |||
| 20 | --EXPECTF-- | 21 | --EXPECTF-- |
| 21 | cccc | 22 | cccc |
| 22 | 23 | ||
| 23 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument '$arr' content (aaa) matched the rule '3' in %a/disabled_functions_param_array_no_value.php on line 3 \ No newline at end of file | 24 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument '$arr' content (aaa) matched the rule '3' in %a/disabled_functions_param_array_no_value.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_param_array_r.phpt b/src/tests/disable_function/disabled_functions_param_array_r.phpt index ceace9c..89ecb75 100644 --- a/src/tests/disable_function/disabled_functions_param_array_r.phpt +++ b/src/tests/disable_function/disabled_functions_param_array_r.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on an array using regexp | 2 | Disable functions - match on an array using regexp |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param_r_array.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_param_r_array.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -18,4 +19,4 @@ foo($a); | |||
| 18 | --EXPECTF-- | 19 | --EXPECTF-- |
| 19 | cccc | 20 | cccc |
| 20 | 21 | ||
| 21 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument 'arr' content (ARRAY) matched the rule '1' in %a/disabled_functions_param_array_r.php on line 3 \ No newline at end of file | 22 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument 'arr' content (ARRAY) matched the rule '1' in %a/disabled_functions_param_array_r.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_param_array_several_levels.phpt b/src/tests/disable_function/disabled_functions_param_array_several_levels.phpt index 3f713ad..7d0adeb 100644 --- a/src/tests/disable_function/disabled_functions_param_array_several_levels.phpt +++ b/src/tests/disable_function/disabled_functions_param_array_several_levels.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on an array value buried in several levels | 2 | Disable functions - match on an array value buried in several levels |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -18,4 +19,4 @@ foo($a); | |||
| 18 | --EXPECTF-- | 19 | --EXPECTF-- |
| 19 | cccc | 20 | cccc |
| 20 | 21 | ||
| 21 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument '$arr' content (ARRAY) matched the rule '4' in %a/disabled_functions_param_array_several_levels.php on line 3 \ No newline at end of file | 22 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument '$arr' content (ARRAY) matched the rule '4' in %a/disabled_functions_param_array_several_levels.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_param_array_several_levels_int.phpt b/src/tests/disable_function/disabled_functions_param_array_several_levels_int.phpt index 3f35444..ecf1fb1 100644 --- a/src/tests/disable_function/disabled_functions_param_array_several_levels_int.phpt +++ b/src/tests/disable_function/disabled_functions_param_array_several_levels_int.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on an array value buried in several levels | 2 | Disable functions - match on an array value buried in several levels |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -18,4 +19,4 @@ foo($a); | |||
| 18 | --EXPECTF-- | 19 | --EXPECTF-- |
| 19 | cccc | 20 | cccc |
| 20 | 21 | ||
| 21 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument '$arr' content (ARRAY) matched the rule '4' in %a/disabled_functions_param_array_several_levels_int.php on line 3 \ No newline at end of file | 22 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument '$arr' content (ARRAY) matched the rule '4' in %a/disabled_functions_param_array_several_levels_int.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_param_array_several_levels_keys.phpt b/src/tests/disable_function/disabled_functions_param_array_several_levels_keys.phpt index af6731b..6d8cbb0 100644 --- a/src/tests/disable_function/disabled_functions_param_array_several_levels_keys.phpt +++ b/src/tests/disable_function/disabled_functions_param_array_several_levels_keys.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on an array value buried in several levels | 2 | Disable functions - match on an array value buried in several levels |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -18,4 +19,4 @@ foo($a); | |||
| 18 | --EXPECTF-- | 19 | --EXPECTF-- |
| 19 | cccc | 20 | cccc |
| 20 | 21 | ||
| 21 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument '$arr' content (ARRAY) matched the rule '5' in %a/disabled_functions_param_array_several_levels_keys.php on line 3 \ No newline at end of file | 22 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument '$arr' content (ARRAY) matched the rule '5' in %a/disabled_functions_param_array_several_levels_keys.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_param_array_several_levels_keys_int.phpt b/src/tests/disable_function/disabled_functions_param_array_several_levels_keys_int.phpt index 7e9627e..fef5364 100644 --- a/src/tests/disable_function/disabled_functions_param_array_several_levels_keys_int.phpt +++ b/src/tests/disable_function/disabled_functions_param_array_several_levels_keys_int.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on an array value buried in several levels | 2 | Disable functions - match on an array value buried in several levels |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -18,4 +19,4 @@ foo($a); | |||
| 18 | --EXPECTF-- | 19 | --EXPECTF-- |
| 19 | cccc | 20 | cccc |
| 20 | 21 | ||
| 21 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument '$arr' content (ARRAY) matched the rule '6' in %a/disabled_functions_param_array_several_levels_keys_int.php on line 3 \ No newline at end of file | 22 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument '$arr' content (ARRAY) matched the rule '6' in %a/disabled_functions_param_array_several_levels_keys_int.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_param_broken_line.phpt b/src/tests/disable_function/disabled_functions_param_broken_line.phpt index a372314..806816d 100644 --- a/src/tests/disable_function/disabled_functions_param_broken_line.phpt +++ b/src/tests/disable_function/disabled_functions_param_broken_line.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on a specific line - broken configuration | 2 | Disable functions - match on a specific line - broken configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_functions_broken_line.ini | 7 | sp.configuration_file={PWD}/config/disabled_functions_broken_line.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_param_int.phpt b/src/tests/disable_function/disabled_functions_param_int.phpt index c49e25e..d681b3e 100644 --- a/src/tests/disable_function/disabled_functions_param_int.phpt +++ b/src/tests/disable_function/disabled_functions_param_int.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions | 2 | Disable functions |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param_int.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_param_int.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -19,4 +20,4 @@ foobar("10"); | |||
| 19 | --EXPECTF-- | 20 | --EXPECTF-- |
| 20 | 1 | 21 | 1 |
| 21 | 22 | ||
| 22 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foobar', because its argument '$id' content (42) matched a rule in %a/disabled_functions_param_int.php on line 3 \ No newline at end of file | 23 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foobar', because its argument '$id' content (42) matched a rule in %a/disabled_functions_param_int.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_param_invalid_pos.phpt b/src/tests/disable_function/disabled_functions_param_invalid_pos.phpt index bafe50a..e409300 100644 --- a/src/tests/disable_function/disabled_functions_param_invalid_pos.phpt +++ b/src/tests/disable_function/disabled_functions_param_invalid_pos.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on argument's position | 2 | Disable functions - match on argument's position |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_functions_invalid_pos.ini | 7 | sp.configuration_file={PWD}/config/disabled_functions_invalid_pos.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_param_pos2.phpt b/src/tests/disable_function/disabled_functions_param_pos2.phpt index 6854147..bfe71ee 100644 --- a/src/tests/disable_function/disabled_functions_param_pos2.phpt +++ b/src/tests/disable_function/disabled_functions_param_pos2.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - match on argument's position, not the first time | 2 | Disable functions - match on argument's position, not the first time |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_functions_pos.ini | 7 | sp.configuration_file={PWD}/config/disabled_functions_pos.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -10,4 +11,4 @@ strtoupper("od"); | |||
| 10 | strtoupper("id"); | 11 | strtoupper("id"); |
| 11 | ?> | 12 | ?> |
| 12 | --EXPECTF-- | 13 | --EXPECTF-- |
| 13 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper', because its argument 'str' content (id) matched the rule 'strlen array' in %a/disabled_functions_param_pos2.php on line 3 \ No newline at end of file | 14 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper', because its argument 'str' content (id) matched the rule 'strlen array' in %a/disabled_functions_param_pos2.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_param_r.phpt b/src/tests/disable_function/disabled_functions_param_r.phpt index f919581..f30fca9 100644 --- a/src/tests/disable_function/disabled_functions_param_r.phpt +++ b/src/tests/disable_function/disabled_functions_param_r.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions | 2 | Disable functions |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param_r.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_param_r.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -10,4 +11,4 @@ system("id"); | |||
| 10 | system("echo win"); | 11 | system("echo win"); |
| 11 | ?> | 12 | ?> |
| 12 | --EXPECTF-- | 13 | --EXPECTF-- |
| 13 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system', because its argument 'command' content (id) matched a rule in %a/disabled_functions_param_r.php on line 2 \ No newline at end of file | 14 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system', because its argument 'command' content (id) matched a rule in %a/disabled_functions_param_r.php on line 2 |
diff --git a/src/tests/disable_function/disabled_functions_param_str_representation.phpt b/src/tests/disable_function/disabled_functions_param_str_representation.phpt index f56c457..179ce93 100644 --- a/src/tests/disable_function/disabled_functions_param_str_representation.phpt +++ b/src/tests/disable_function/disabled_functions_param_str_representation.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - casting various types to string internally | 2 | Disable functions - casting various types to string internally |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param_str_representation.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_param_str_representation.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_parse_class.phpt b/src/tests/disable_function/disabled_functions_parse_class.phpt index e62fe40..487bd51 100644 --- a/src/tests/disable_function/disabled_functions_parse_class.phpt +++ b/src/tests/disable_function/disabled_functions_parse_class.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - Parsing of an Object as a return value of a function | 2 | Disable functions - Parsing of an Object as a return value of a function |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_functions_ret.ini | 7 | sp.configuration_file={PWD}/config/disabled_functions_ret.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_regexp_multiple.phpt b/src/tests/disable_function/disabled_functions_regexp_multiple.phpt index 5f8b151..ca7263a 100644 --- a/src/tests/disable_function/disabled_functions_regexp_multiple.phpt +++ b/src/tests/disable_function/disabled_functions_regexp_multiple.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions | 2 | Disable functions |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_functions_regexp.ini | 7 | sp.configuration_file={PWD}/config/disabled_functions_regexp.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_require.phpt b/src/tests/disable_function/disabled_functions_require.phpt index df2b2f0..0050d51 100644 --- a/src/tests/disable_function/disabled_functions_require.phpt +++ b/src/tests/disable_function/disabled_functions_require.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - Require | 2 | Disable functions - Require |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_require.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_require.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_require_allow.phpt b/src/tests/disable_function/disabled_functions_require_allow.phpt index 7ab29aa..dac7a1e 100644 --- a/src/tests/disable_function/disabled_functions_require_allow.phpt +++ b/src/tests/disable_function/disabled_functions_require_allow.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - Require (allow) | 2 | Disable functions - Require (allow) |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_require_allow.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_require_allow.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_require_once.phpt b/src/tests/disable_function/disabled_functions_require_once.phpt index 7356c08..f6ed729 100644 --- a/src/tests/disable_function/disabled_functions_require_once.phpt +++ b/src/tests/disable_function/disabled_functions_require_once.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - require_once | 2 | Disable functions - require_once |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_require.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_require.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_require_simulation.phpt b/src/tests/disable_function/disabled_functions_require_simulation.phpt index fa1523c..625feee 100644 --- a/src/tests/disable_function/disabled_functions_require_simulation.phpt +++ b/src/tests/disable_function/disabled_functions_require_simulation.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - Require (simulation) | 2 | Disable functions - Require (simulation) |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_require.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_require.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_ret.phpt b/src/tests/disable_function/disabled_functions_ret.phpt index be5e946..56da217 100644 --- a/src/tests/disable_function/disabled_functions_ret.phpt +++ b/src/tests/disable_function/disabled_functions_ret.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions check on `ret`. | 2 | Disable functions check on `ret`. |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_functions_ret.ini | 7 | sp.configuration_file={PWD}/config/disabled_functions_ret.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -10,4 +11,4 @@ echo strpos("pouet", "p"); | |||
| 10 | echo stripos("pouet", "p"); | 11 | echo stripos("pouet", "p"); |
| 11 | ?> | 12 | ?> |
| 12 | --EXPECTF-- | 13 | --EXPECTF-- |
| 13 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'strpos', because the function returned '0', which matched a rule in %a/disabled_functions_ret.php on line 2 \ No newline at end of file | 14 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'strpos', because the function returned '0', which matched a rule in %a/disabled_functions_ret.php on line 2 |
diff --git a/src/tests/disable_function/disabled_functions_ret2.phpt b/src/tests/disable_function/disabled_functions_ret2.phpt index 8070b08..ede465d 100644 --- a/src/tests/disable_function/disabled_functions_ret2.phpt +++ b/src/tests/disable_function/disabled_functions_ret2.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions check on `ret`. | 2 | Disable functions check on `ret`. |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_functions_ret.ini | 7 | sp.configuration_file={PWD}/config/disabled_functions_ret.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -9,4 +10,4 @@ sp.configuration_file={PWD}/config/disabled_functions_ret.ini | |||
| 9 | echo stripos("pouet", "p"); | 10 | echo stripos("pouet", "p"); |
| 10 | ?> | 11 | ?> |
| 11 | --EXPECTF-- | 12 | --EXPECTF-- |
| 12 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'stripos', because the function returned '0', which matched a rule in %a/disabled_functions_ret2.php on line 2 \ No newline at end of file | 13 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'stripos', because the function returned '0', which matched a rule in %a/disabled_functions_ret2.php on line 2 |
diff --git a/src/tests/disable_function/disabled_functions_ret3.phpt b/src/tests/disable_function/disabled_functions_ret3.phpt index 744ec78..fd97694 100644 --- a/src/tests/disable_function/disabled_functions_ret3.phpt +++ b/src/tests/disable_function/disabled_functions_ret3.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions check on `ret`. | 2 | Disable functions check on `ret`. |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_functions_ret.ini | 7 | sp.configuration_file={PWD}/config/disabled_functions_ret.ini |
| 7 | memory_limit=-1 | 8 | memory_limit=-1 |
| @@ -20,4 +21,4 @@ echo("We're at the end of the execution.\n"); | |||
| 20 | --EXPECTF-- | 21 | --EXPECTF-- |
| 21 | We're in function `a`. | 22 | We're in function `a`. |
| 22 | 23 | ||
| 23 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'Bob::a', because the function returned '2', which matched a rule in %a/disabled_functions_ret3.php on line 9 \ No newline at end of file | 24 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'Bob::a', because the function returned '2', which matched a rule in %a/disabled_functions_ret3.php on line 9 |
diff --git a/src/tests/disable_function/disabled_functions_ret_val_rx.phpt b/src/tests/disable_function/disabled_functions_ret_val_rx.phpt index e756d30..e575af9 100644 --- a/src/tests/disable_function/disabled_functions_ret_val_rx.phpt +++ b/src/tests/disable_function/disabled_functions_ret_val_rx.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions ret val rx | 2 | Disable functions ret val rx |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_functions_retval_rx.ini | 7 | sp.configuration_file={PWD}/config/disabled_functions_retval_rx.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -12,4 +13,4 @@ echo str_repeat("fufufu",1); | |||
| 12 | --EXPECTF-- | 13 | --EXPECTF-- |
| 13 | fufu | 14 | fufu |
| 14 | 15 | ||
| 15 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'str_repeat', because the function returned 'fufufu', which matched a rule in %a/disabled_functions_ret_val_rx.php on line 3 \ No newline at end of file | 16 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'str_repeat', because the function returned 'fufufu', which matched a rule in %a/disabled_functions_ret_val_rx.php on line 3 |
diff --git a/src/tests/disable_function/disabled_functions_runtime.phpt b/src/tests/disable_function/disabled_functions_runtime.phpt index 3d74b40..60c5697 100644 --- a/src/tests/disable_function/disabled_functions_runtime.phpt +++ b/src/tests/disable_function/disabled_functions_runtime.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - runtime inclusion | 2 | Disable functions - runtime inclusion |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_param_runtime.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_param_runtime.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_functions_upper.phpt b/src/tests/disable_function/disabled_functions_upper.phpt index e3878f0..cdc998a 100644 --- a/src/tests/disable_function/disabled_functions_upper.phpt +++ b/src/tests/disable_function/disabled_functions_upper.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - uppercase | 2 | Disable functions - uppercase |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_functions.ini | 7 | sp.configuration_file={PWD}/config/disabled_functions.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -13,4 +14,4 @@ vaR_DUmp("this is a super test"); | |||
| 13 | echo sTRPOs("pouet", "o"); | 14 | echo sTRPOs("pouet", "o"); |
| 14 | ?> | 15 | ?> |
| 15 | --EXPECTF-- | 16 | --EXPECTF-- |
| 16 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/disabled_functions_upper.php on line 2 \ No newline at end of file | 17 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/disabled_functions_upper.php on line 2 |
diff --git a/src/tests/disable_function/disabled_functions_variadic.phpt b/src/tests/disable_function/disabled_functions_variadic.phpt index 7658ec8..f364ea3 100644 --- a/src/tests/disable_function/disabled_functions_variadic.phpt +++ b/src/tests/disable_function/disabled_functions_variadic.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable functions - support for variadic functions | 2 | Disable functions - support for variadic functions |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_disabled_functions_variadic.ini | 7 | sp.configuration_file={PWD}/config/config_disabled_functions_variadic.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/disable_function/disabled_native_functions_indirect.phpt b/src/tests/disable_function/disabled_native_functions_indirect.phpt index 1539db3..df585c7 100644 --- a/src/tests/disable_function/disabled_native_functions_indirect.phpt +++ b/src/tests/disable_function/disabled_native_functions_indirect.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disabled native functions, called indirectly | 2 | Disabled native functions, called indirectly |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_functions.ini | 7 | sp.configuration_file={PWD}/config/disabled_functions.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -9,4 +10,4 @@ sp.configuration_file={PWD}/config/disabled_functions.ini | |||
| 9 | array_map('system', [1,2,3,4]); | 10 | array_map('system', [1,2,3,4]); |
| 10 | ?> | 11 | ?> |
| 11 | --EXPECTF-- | 12 | --EXPECTF-- |
| 12 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/disabled_native_functions_indirect.php on line 2 \ No newline at end of file | 13 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/disabled_native_functions_indirect.php on line 2 |
diff --git a/src/tests/global_strict/global_strict.phpt b/src/tests/global_strict/global_strict.phpt index e06721c..07dc979 100644 --- a/src/tests/global_strict/global_strict.phpt +++ b/src/tests/global_strict/global_strict.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Global strict mode | 2 | Global strict mode |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/global_strict.ini | 7 | sp.configuration_file={PWD}/config/global_strict.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/global_strict/global_strict_disabled.phpt b/src/tests/global_strict/global_strict_disabled.phpt index ca3ddfa..c948444 100644 --- a/src/tests/global_strict/global_strict_disabled.phpt +++ b/src/tests/global_strict/global_strict_disabled.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Global strict mode | 2 | Global strict mode |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/global_strict_disabled.ini | 7 | sp.configuration_file={PWD}/config/global_strict_disabled.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/harden_rand/harden_rand_noargs.phpt b/src/tests/harden_rand/harden_rand_noargs.phpt index dc7d832..9abbffa 100644 --- a/src/tests/harden_rand/harden_rand_noargs.phpt +++ b/src/tests/harden_rand/harden_rand_noargs.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Harden rand without any arguments | 2 | Harden rand without any arguments |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/harden_rand.ini | 7 | sp.configuration_file={PWD}/config/harden_rand.ini |
| 7 | We should fix this | 8 | We should fix this |
diff --git a/src/tests/inexistent_conf_file.phpt b/src/tests/inexistent_conf_file.phpt index 78f37a6..cd10665 100644 --- a/src/tests/inexistent_conf_file.phpt +++ b/src/tests/inexistent_conf_file.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Check for snuffleupagus presence | 2 | Check for snuffleupagus presence |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/unexistent_configuration_file.ini | 7 | sp.configuration_file={PWD}/config/unexistent_configuration_file.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -12,4 +13,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] Could not open configura | |||
| 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Could not open configuration file %a/config/unexistent_configuration_file.ini : No such file or directory in Unknown on line 0 | 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Could not open configuration file %a/config/unexistent_configuration_file.ini : No such file or directory in Unknown on line 0 |
| 13 | 14 | ||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 15 | Could not startup. \ No newline at end of file | 16 | Could not startup. |
diff --git a/src/tests/inexistent_conf_file_list.phpt b/src/tests/inexistent_conf_file_list.phpt index 705fcbf..6cac934 100644 --- a/src/tests/inexistent_conf_file_list.phpt +++ b/src/tests/inexistent_conf_file_list.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Non-existent configuration file in a list | 2 | Non-existent configuration file in a list |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/../../config/default.rules,{PWD}/non_existent_configuration_file | 7 | sp.configuration_file={PWD}/../../config/default.rules,{PWD}/non_existent_configuration_file |
| 7 | --FILE-- | 8 | --FILE-- |
| @@ -12,4 +13,4 @@ PHP Fatal error: [snuffleupagus][0.0.0.0][config][log] Could not open configura | |||
| 12 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Could not open configuration file %a/non_existent_configuration_file : No such file or directory in Unknown on line 0 | 13 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Could not open configuration file %a/non_existent_configuration_file : No such file or directory in Unknown on line 0 |
| 13 | 14 | ||
| 14 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 | 15 | Fatal error: [snuffleupagus][0.0.0.0][config][log] Invalid configuration file in Unknown on line 0 |
| 15 | Could not startup. \ No newline at end of file | 16 | Could not startup. |
diff --git a/src/tests/phpinfo_presence.phpt b/src/tests/phpinfo_presence.phpt index c1388ed..7ac9d10 100644 --- a/src/tests/phpinfo_presence.phpt +++ b/src/tests/phpinfo_presence.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Unserialize fail | 2 | Unserialize fail |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/../../config/default.rules | 7 | sp.configuration_file={PWD}/../../config/default.rules |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/rips_configuration.phpt b/src/tests/rips_configuration.phpt index 7c197e5..f0930ee 100644 --- a/src/tests/rips_configuration.phpt +++ b/src/tests/rips_configuration.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Shipped configuration (rips) | 2 | Shipped configuration (rips) |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/../../config/rips.rules | 7 | sp.configuration_file={PWD}/../../config/rips.rules |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/shipped_configuration.phpt b/src/tests/shipped_configuration.phpt index b171304..f567b08 100644 --- a/src/tests/shipped_configuration.phpt +++ b/src/tests/shipped_configuration.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Shipped configuration | 2 | Shipped configuration |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/../../config/default.rules | 7 | sp.configuration_file={PWD}/../../config/default.rules |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/sloppy_comparison/sloppy_comparison_array_disabled.phpt b/src/tests/sloppy_comparison/sloppy_comparison_array_disabled.phpt index e8cd77b..e292f5e 100644 --- a/src/tests/sloppy_comparison/sloppy_comparison_array_disabled.phpt +++ b/src/tests/sloppy_comparison/sloppy_comparison_array_disabled.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Sloppy comparison in_array disabled | 2 | Sloppy comparison in_array disabled |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.allow_broken_configuration=On | 7 | sp.allow_broken_configuration=On |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/sloppy_comparison/sloppy_comparison_array_keys_disabled.phpt b/src/tests/sloppy_comparison/sloppy_comparison_array_keys_disabled.phpt index 8841b4c..3cc02c2 100644 --- a/src/tests/sloppy_comparison/sloppy_comparison_array_keys_disabled.phpt +++ b/src/tests/sloppy_comparison/sloppy_comparison_array_keys_disabled.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Sloppy comparison array_keys disabled | 2 | Sloppy comparison array_keys disabled |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.allow_broken_configuration=On | 7 | sp.allow_broken_configuration=On |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/sloppy_comparison/sloppy_comparison_array_search_disabled.phpt b/src/tests/sloppy_comparison/sloppy_comparison_array_search_disabled.phpt index bee3752..2da4a17 100644 --- a/src/tests/sloppy_comparison/sloppy_comparison_array_search_disabled.phpt +++ b/src/tests/sloppy_comparison/sloppy_comparison_array_search_disabled.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Sloppy comparison array_search disabled | 2 | Sloppy comparison array_search disabled |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.allow_broken_configuration=On | 7 | sp.allow_broken_configuration=On |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/sloppy_comparison/sloppy_comparison_disable.phpt b/src/tests/sloppy_comparison/sloppy_comparison_disable.phpt index e42c919..cdcd9a8 100644 --- a/src/tests/sloppy_comparison/sloppy_comparison_disable.phpt +++ b/src/tests/sloppy_comparison/sloppy_comparison_disable.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Sloppy comparison | 2 | Sloppy comparison |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.allow_broken_configuration=On | 7 | sp.allow_broken_configuration=On |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/stream_wrapper/stream_wrapper.phpt b/src/tests/stream_wrapper/stream_wrapper.phpt index 3336ef6..5a1dab7 100644 --- a/src/tests/stream_wrapper/stream_wrapper.phpt +++ b/src/tests/stream_wrapper/stream_wrapper.phpt | |||
| @@ -5,6 +5,7 @@ Stream wrapper | |||
| 5 | if (!extension_loaded("snuffleupagus")) print "skip snuffleupagus extension missing"; | 5 | if (!extension_loaded("snuffleupagus")) print "skip snuffleupagus extension missing"; |
| 6 | if (!extension_loaded("openssl")) print "skip openssl extension missing"; | 6 | if (!extension_loaded("openssl")) print "skip openssl extension missing"; |
| 7 | ?> | 7 | ?> |
| 8 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 8 | --INI-- | 9 | --INI-- |
| 9 | sp.configuration_file={PWD}/config/config_stream_wrapper.ini | 10 | sp.configuration_file={PWD}/config/config_stream_wrapper.ini |
| 10 | --FILE-- | 11 | --FILE-- |
diff --git a/src/tests/stream_wrapper/stream_wrapper_register.phpt b/src/tests/stream_wrapper/stream_wrapper_register.phpt index 39514e9..a3ffb2e 100644 --- a/src/tests/stream_wrapper/stream_wrapper_register.phpt +++ b/src/tests/stream_wrapper/stream_wrapper_register.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Stream wrapper | 2 | Stream wrapper |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_stream_wrapper_register.ini | 7 | sp.configuration_file={PWD}/config/config_stream_wrapper_register.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt b/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt index 5a11c8f..73090ff 100644 --- a/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt +++ b/src/tests/stream_wrapper/stream_wrapper_without_openssl.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Stream wrapper, without a dependency on openssl | 2 | Stream wrapper, without a dependency on openssl |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_stream_wrapper.ini | 7 | sp.configuration_file={PWD}/config/config_stream_wrapper.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/strict_mode/strict_mode_enabled.phpt b/src/tests/strict_mode/strict_mode_enabled.phpt index c511f9a..a986987 100644 --- a/src/tests/strict_mode/strict_mode_enabled.phpt +++ b/src/tests/strict_mode/strict_mode_enabled.phpt | |||
| @@ -11,7 +11,7 @@ sp.configuration_file={PWD}/config/config_strict_mode_enabled.ini | |||
| 11 | ini_set('display_errors', 1); | 11 | ini_set('display_errors', 1); |
| 12 | ?> | 12 | ?> |
| 13 | --EXPECTF-- | 13 | --EXPECTF-- |
| 14 | Fatal error: Uncaught TypeError: ini_set() expects parameter 2 to be string, %s given in %s/tests/strict_mode/strict_mode_enabled.php:%d | 14 | Fatal error: Uncaught TypeError: ini_set()%s given in %s/tests/strict_mode/strict_mode_enabled.php:%d |
| 15 | Stack trace: | 15 | Stack trace: |
| 16 | #0 %s/tests/strict_mode/strict_mode_enabled.php(2): ini_set('display_errors', 1) | 16 | #0 %s/tests/strict_mode/strict_mode_enabled.php(2): ini_set('display_errors', 1) |
| 17 | #1 {main} | 17 | #1 {main} |
diff --git a/src/tests/unserialize/unserialize_wrong_call.phpt b/src/tests/unserialize/unserialize_wrong_call.phpt index 729d020..a6fe140 100644 --- a/src/tests/unserialize/unserialize_wrong_call.phpt +++ b/src/tests/unserialize/unserialize_wrong_call.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Unserialize ok, but called with the wrong numeber of aguments | 2 | Unserialize ok, but called with the wrong numeber of aguments |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/config_serialize.ini | 7 | sp.configuration_file={PWD}/config/config_serialize.ini |
| 7 | --FILE-- | 8 | --FILE-- |
diff --git a/src/tests/xxe/disable_xxe_dom.phpt b/src/tests/xxe/disable_xxe_dom.phpt index 58467f7..99ed572 100644 --- a/src/tests/xxe/disable_xxe_dom.phpt +++ b/src/tests/xxe/disable_xxe_dom.phpt | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | --TEST-- | 1 | --TEST-- |
| 2 | Disable XXE | 2 | Disable XXE, in php8 |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus") || !extension_loaded("dom")) print("skip"); ?> | 4 | <?php if (!extension_loaded("snuffleupagus") || !extension_loaded("dom")) print("skip"); ?> |
| 5 | <?php if (PHP_VERSION_ID < 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disable_xxe.ini | 7 | sp.configuration_file={PWD}/config/disable_xxe.ini |
| 7 | --EXTENSIONS-- | 8 | --EXTENSIONS-- |
| @@ -42,28 +43,33 @@ $dom->loadXML($xml, LIBXML_DTDATTR|LIBXML_DTDLOAD|LIBXML_NOENT); | |||
| 42 | printf("without xxe: %s", $dom->getElementsByTagName('testing')->item(0)->nodeValue); | 43 | printf("without xxe: %s", $dom->getElementsByTagName('testing')->item(0)->nodeValue); |
| 43 | 44 | ||
| 44 | ?> | 45 | ?> |
| 46 | --CLEAN-- | ||
| 47 | <?php | ||
| 48 | $dir = __DIR__; | ||
| 49 | unlink($dir . "content.xml"); | ||
| 50 | unlink($dir . "content.txt"); | ||
| 51 | ?> | ||
| 45 | --EXPECTF-- | 52 | --EXPECTF-- |
| 46 | Warning: DOMDocument::loadXML(): I/O warning : failed to load external entity "file://%a/content.txt" in %a/disable_xxe_dom.php on line %d | 53 | Deprecated: Function libxml_disable_entity_loader() is deprecated in %s/tests/xxe/disable_xxe_dom.php on line %d |
| 47 | 54 | ||
| 48 | Warning: DOMDocument::loadXML(): Failure to process entity foo in Entity, line: %d in %a/disable_xxe_dom.php on line %d | 55 | Warning: DOMDocument::loadXML(): I/O warning : failed to load external entity "file://%s/tests/xxe/content.txt" in /var/www/html/snuffleupagus/src/tests/xxe/disable_xxe_dom.php on line %d |
| 49 | 56 | ||
| 50 | Warning: DOMDocument::loadXML(): Entity 'foo' not defined in Entity, line: %d in %a/disable_xxe_dom.php on line %d | 57 | Warning: DOMDocument::loadXML(): Failure to process entity foo in Entity, line: 6 in %s/tests/xxe/disable_xxe_dom.php on line %d |
| 51 | 58 | ||
| 52 | Notice: Trying to get property %a in %a/disable_xxe_dom.php on line %d | 59 | Warning: DOMDocument::loadXML(): Entity 'foo' not defined in Entity, line: 6 in %s/tests/xxe/disable_xxe_dom.php on line %d |
| 60 | |||
| 61 | Warning: Attempt to read property "nodeValue" on null in %s/tests/xxe/disable_xxe_dom.php on line %d | ||
| 53 | libxml_disable_entity to true: | 62 | libxml_disable_entity to true: |
| 54 | 63 | ||
| 55 | Warning: DOMDocument::loadXML(): I/O warning : failed to load external entity "file://%a/content.txt" in %a/disable_xxe_dom.php on line %d | 64 | Deprecated: Function libxml_disable_entity_loader() is deprecated in %s/tests/xxe/disable_xxe_dom.php on line %d |
| 65 | |||
| 66 | Warning: DOMDocument::loadXML(): I/O warning : failed to load external entity "file://%s/tests/xxe/content.txt" in /var/www/html/snuffleupagus/src/tests/xxe/disable_xxe_dom.php on line %d | ||
| 56 | 67 | ||
| 57 | Warning: DOMDocument::loadXML(): Failure to process entity foo in Entity, line: %d in %a/disable_xxe_dom.php on line %d | 68 | Warning: DOMDocument::loadXML(): Failure to process entity foo in Entity, line: 6 in %s/tests/xxe/disable_xxe_dom.php on line %d |
| 58 | 69 | ||
| 59 | Warning: DOMDocument::loadXML(): Entity 'foo' not defined in Entity, line: %d in %a/disable_xxe_dom.php on line %d | 70 | Warning: DOMDocument::loadXML(): Entity 'foo' not defined in Entity, line: 6 in %s/tests/xxe/disable_xxe_dom.php on line %d |
| 60 | 71 | ||
| 61 | Notice: Trying to get property %a in %a/disable_xxe_dom.php on line %d | 72 | Warning: Attempt to read property "nodeValue" on null in %s/tests/xxe/disable_xxe_dom.php on line %d |
| 62 | libxml_disable_entity to false: | 73 | libxml_disable_entity to false: |
| 63 | without xxe: foo | 74 | |
| 64 | --CLEAN-- | 75 | Deprecated: Function libxml_disable_entity_loader() is deprecated in %s/tests/xxe/disable_xxe_dom.php on line %d |
| 65 | <?php | ||
| 66 | $dir = __DIR__; | ||
| 67 | unlink($dir . "content.xml"); | ||
| 68 | unlink($dir . "content.txt"); | ||
| 69 | ?> | ||
diff --git a/src/tests/xxe/disable_xxe_dom_disabled.phpt b/src/tests/xxe/disable_xxe_dom_disabled.phpt index fe88d76..493f5a3 100644 --- a/src/tests/xxe/disable_xxe_dom_disabled.phpt +++ b/src/tests/xxe/disable_xxe_dom_disabled.phpt | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Disable XXE | 2 | Disable XXE |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus") || !extension_loaded("dom")) print("skip"); ?> | 4 | <?php if (!extension_loaded("snuffleupagus") || !extension_loaded("dom")) print("skip"); ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disable_xxe_disable.ini | 7 | sp.configuration_file={PWD}/config/disable_xxe_disable.ini |
| 7 | --EXTENSIONS-- | 8 | --EXTENSIONS-- |
diff --git a/src/tests/xxe/disable_xxe_dom_disabled_php8.phpt b/src/tests/xxe/disable_xxe_dom_disabled_php8.phpt new file mode 100644 index 0000000..c0db7fc --- /dev/null +++ b/src/tests/xxe/disable_xxe_dom_disabled_php8.phpt | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | --TEST-- | ||
| 2 | Disable XXE in php8 | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus") || !extension_loaded("dom")) print("skip"); ?> | ||
| 5 | <?php if (PHP_VERSION_ID < 80000) print "skip"; ?> | ||
| 6 | --INI-- | ||
| 7 | sp.configuration_file={PWD}/config/disable_xxe_disable.ini | ||
| 8 | --EXTENSIONS-- | ||
| 9 | dom | ||
| 10 | --FILE-- | ||
| 11 | <?php | ||
| 12 | $dir = __DIR__; | ||
| 13 | $content = '<content>WARNING, external entity loaded!</content>'; | ||
| 14 | file_put_contents($dir . '/content.txt', $content); | ||
| 15 | |||
| 16 | $xml = <<<EOD | ||
| 17 | <?xml version="1.0"?> | ||
| 18 | <!DOCTYPE root | ||
| 19 | [ | ||
| 20 | <!ENTITY foo SYSTEM "file://$dir/content.txt"> | ||
| 21 | ]> | ||
| 22 | <test><testing>&foo;</testing></test> | ||
| 23 | EOD; | ||
| 24 | |||
| 25 | file_put_contents($dir . '/content.xml', $xml); | ||
| 26 | |||
| 27 | libxml_disable_entity_loader(true); | ||
| 28 | $dom = new DOMDocument('1.0'); | ||
| 29 | $dom->loadXML($xml, LIBXML_DTDATTR|LIBXML_DTDLOAD|LIBXML_NOENT); | ||
| 30 | printf("libxml_disable_entity to true: %s\n", $dom->getElementsByTagName('testing')->item(0)->nodeValue); | ||
| 31 | |||
| 32 | libxml_disable_entity_loader(false); | ||
| 33 | $dom = new DOMDocument('1.0'); | ||
| 34 | $dom->loadXML($xml, LIBXML_DTDATTR|LIBXML_DTDLOAD|LIBXML_NOENT); | ||
| 35 | printf("libxml_disable_entity to false: %s\n", $dom->getElementsByTagName('testing')->item(0)->nodeValue); | ||
| 36 | |||
| 37 | $xml = "<test><testing>foo</testing></test>"; | ||
| 38 | file_put_contents('content.xml', $xml); | ||
| 39 | |||
| 40 | libxml_disable_entity_loader(false); | ||
| 41 | $dom = new DOMDocument('1.0'); | ||
| 42 | $dom->loadXML($xml, LIBXML_DTDATTR|LIBXML_DTDLOAD|LIBXML_NOENT); | ||
| 43 | printf("without xxe: %s", $dom->getElementsByTagName('testing')->item(0)->nodeValue); | ||
| 44 | |||
| 45 | ?> | ||
| 46 | --CLEAN-- | ||
| 47 | <?php | ||
| 48 | $dir = __DIR__; | ||
| 49 | unlink($dir . "/content.xml"); | ||
| 50 | unlink($dir . "/content.txt"); | ||
| 51 | ?> | ||
| 52 | --EXPECTF-- | ||
| 53 | Deprecated: Function libxml_disable_entity_loader() is deprecated in %s/tests/xxe/disable_xxe_dom_disabled.php on line %d | ||
| 54 | libxml_disable_entity to true: WARNING, external entity loaded! | ||
| 55 | |||
| 56 | Deprecated: Function libxml_disable_entity_loader() is deprecated in %s/tests/xxe/disable_xxe_dom_disabled.php on line %d | ||
| 57 | libxml_disable_entity to false: WARNING, external entity loaded! | ||
| 58 | |||
| 59 | Deprecated: Function libxml_disable_entity_loader() is deprecated in %s/tests/xxe/disable_xxe_dom_disabled.php on line %d | ||
| 60 | |||
diff --git a/src/tests/xxe/disable_xxe_xml_parse.phpt b/src/tests/xxe/disable_xxe_xml_parse.phpt index b6dec2d..6b48bea 100644 --- a/src/tests/xxe/disable_xxe_xml_parse.phpt +++ b/src/tests/xxe/disable_xxe_xml_parse.phpt | |||
| @@ -8,6 +8,7 @@ Disable XXE in xml_parse | |||
| 8 | echo "skip because the `xml` extension isn't loaded"; | 8 | echo "skip because the `xml` extension isn't loaded"; |
| 9 | } | 9 | } |
| 10 | ?> | 10 | ?> |
| 11 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 11 | --EXTENSIONS-- | 12 | --EXTENSIONS-- |
| 12 | xml | 13 | xml |
| 13 | --INI-- | 14 | --INI-- |
diff --git a/src/tests/xxe/disable_xxe_xml_parse_php8.phpt b/src/tests/xxe/disable_xxe_xml_parse_php8.phpt new file mode 100644 index 0000000..4a8622a --- /dev/null +++ b/src/tests/xxe/disable_xxe_xml_parse_php8.phpt | |||
| @@ -0,0 +1,106 @@ | |||
| 1 | --TEST-- | ||
| 2 | Disable XXE in xml_parse, in php8 | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php | ||
| 5 | if (!extension_loaded("snuffleupagus")) { | ||
| 6 | echo "skip because snuffleupagus isn't loaded"; | ||
| 7 | } elseif (!extension_loaded("xml")) { | ||
| 8 | echo "skip because the `xml` extension isn't loaded"; | ||
| 9 | } | ||
| 10 | ?> | ||
| 11 | <?php if (PHP_VERSION_ID < 80000) print "skip"; ?> | ||
| 12 | --EXTENSIONS-- | ||
| 13 | xml | ||
| 14 | --INI-- | ||
| 15 | sp.configuration_file={PWD}/config/disable_xxe.ini | ||
| 16 | --FILE-- | ||
| 17 | <?php | ||
| 18 | $dir = __DIR__; | ||
| 19 | $content = 'WARNING, external entity loaded!'; | ||
| 20 | file_put_contents('content.txt', $content); | ||
| 21 | |||
| 22 | $xml = <<<EOD | ||
| 23 | <?xml version="1.0"?> | ||
| 24 | <!DOCTYPE root | ||
| 25 | [ | ||
| 26 | <!ENTITY foo SYSTEM "file://$dir/content.txt"> | ||
| 27 | ]> | ||
| 28 | <test><testing>&foo;</testing></test> | ||
| 29 | EOD; | ||
| 30 | |||
| 31 | file_put_contents('content.xml', $xml); | ||
| 32 | |||
| 33 | function create_parser() { | ||
| 34 | $parser = xml_parser_create(); | ||
| 35 | xml_set_element_handler( | ||
| 36 | $parser, | ||
| 37 | function($parser, $name, array $attributes) { | ||
| 38 | var_dump($name); | ||
| 39 | echo "\n"; | ||
| 40 | var_dump($attributes); | ||
| 41 | }, | ||
| 42 | function($parser, $name) { | ||
| 43 | var_dump($name); | ||
| 44 | } | ||
| 45 | ); | ||
| 46 | |||
| 47 | xml_set_character_data_handler( | ||
| 48 | $parser, | ||
| 49 | function ($parser, $text){ | ||
| 50 | echo 'text' . $text; | ||
| 51 | } | ||
| 52 | ); | ||
| 53 | |||
| 54 | return $parser; | ||
| 55 | } | ||
| 56 | |||
| 57 | libxml_disable_entity_loader(true); | ||
| 58 | $parser = create_parser(); | ||
| 59 | $doc = xml_parse($parser, $xml, true); | ||
| 60 | xml_parser_free($parser); | ||
| 61 | |||
| 62 | libxml_disable_entity_loader(false); | ||
| 63 | $parser = create_parser(); | ||
| 64 | $doc = xml_parse($parser, $xml, true); | ||
| 65 | xml_parser_free($parser); | ||
| 66 | |||
| 67 | $xml = "<test><testing>foo</testing></test>"; | ||
| 68 | file_put_contents('content.xml', $xml); | ||
| 69 | $parser = create_parser(); | ||
| 70 | $doc = xml_parse($parser, $xml, true); | ||
| 71 | xml_parser_free($parser); | ||
| 72 | |||
| 73 | --EXPECTF-- | ||
| 74 | Deprecated: Function libxml_disable_entity_loader() is deprecated in %s/tests/xxe/disable_xxe_xml_parse.php on line 41 | ||
| 75 | string(4) "TEST" | ||
| 76 | |||
| 77 | array(0) { | ||
| 78 | } | ||
| 79 | string(7) "TESTING" | ||
| 80 | |||
| 81 | array(0) { | ||
| 82 | } | ||
| 83 | string(7) "TESTING" | ||
| 84 | string(4) "TEST" | ||
| 85 | |||
| 86 | Deprecated: Function libxml_disable_entity_loader() is deprecated in %s/tests/xxe/disable_xxe_xml_parse.php on line 46 | ||
| 87 | string(4) "TEST" | ||
| 88 | |||
| 89 | array(0) { | ||
| 90 | } | ||
| 91 | string(7) "TESTING" | ||
| 92 | |||
| 93 | array(0) { | ||
| 94 | } | ||
| 95 | string(7) "TESTING" | ||
| 96 | string(4) "TEST" | ||
| 97 | string(4) "TEST" | ||
| 98 | |||
| 99 | array(0) { | ||
| 100 | } | ||
| 101 | string(7) "TESTING" | ||
| 102 | |||
| 103 | array(0) { | ||
| 104 | } | ||
| 105 | textfoostring(7) "TESTING" | ||
| 106 | |||
