diff options
| author | Ben Fuhrmannek | 2021-11-30 19:48:11 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2021-11-30 19:48:11 +0100 |
| commit | bb07f43600028ac137ba56bd86cb2321d8e11e81 (patch) | |
| tree | 1077d716417ab50a96e87c7ee13c2e87c4325824 /src/tests | |
| parent | 6095651e2caa729ff56ae5a53c908b09e5f7dc29 (diff) | |
fixed test case for PHP 8.1.
ini_set argument types changed with PHP 8.1, so the test is using ini_get now.
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/strict_mode/strict_mode_enabled.phpt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/strict_mode/strict_mode_enabled.phpt b/src/tests/strict_mode/strict_mode_enabled.phpt index a986987..a78a604 100644 --- a/src/tests/strict_mode/strict_mode_enabled.phpt +++ b/src/tests/strict_mode/strict_mode_enabled.phpt | |||
| @@ -8,11 +8,11 @@ if (!extension_loaded("snuffleupagus")) print "skip snuffleupagus extension miss | |||
| 8 | sp.configuration_file={PWD}/config/config_strict_mode_enabled.ini | 8 | sp.configuration_file={PWD}/config/config_strict_mode_enabled.ini |
| 9 | --FILE-- | 9 | --FILE-- |
| 10 | <?php | 10 | <?php |
| 11 | ini_set('display_errors', 1); | 11 | ini_get(23); |
| 12 | ?> | 12 | ?> |
| 13 | --EXPECTF-- | 13 | --EXPECTF-- |
| 14 | Fatal error: Uncaught TypeError: ini_set()%s given in %s/tests/strict_mode/strict_mode_enabled.php:%d | 14 | Fatal error: Uncaught TypeError: ini_get()%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_get(23) |
| 17 | #1 {main} | 17 | #1 {main} |
| 18 | thrown in %s/tests/strict_mode/strict_mode_enabled.php on line 2 | 18 | thrown in %s/tests/strict_mode/strict_mode_enabled.php on line 2 |
