summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorBen Fuhrmannek2021-11-30 19:48:11 +0100
committerBen Fuhrmannek2021-11-30 19:48:11 +0100
commitbb07f43600028ac137ba56bd86cb2321d8e11e81 (patch)
tree1077d716417ab50a96e87c7ee13c2e87c4325824 /src/tests
parent6095651e2caa729ff56ae5a53c908b09e5f7dc29 (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.phpt6
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
8sp.configuration_file={PWD}/config/config_strict_mode_enabled.ini 8sp.configuration_file={PWD}/config/config_strict_mode_enabled.ini
9--FILE-- 9--FILE--
10<?php 10<?php
11ini_set('display_errors', 1); 11ini_get(23);
12?> 12?>
13--EXPECTF-- 13--EXPECTF--
14Fatal error: Uncaught TypeError: ini_set()%s given in %s/tests/strict_mode/strict_mode_enabled.php:%d 14Fatal error: Uncaught TypeError: ini_get()%s given in %s/tests/strict_mode/strict_mode_enabled.php:%d
15Stack trace: 15Stack 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