summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_param_str_representation_php8.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/disable_function/disabled_functions_param_str_representation_php8.phpt')
-rw-r--r--src/tests/disable_function/disabled_functions_param_str_representation_php8.phpt26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_functions_param_str_representation_php8.phpt b/src/tests/disable_function/disabled_functions_param_str_representation_php8.phpt
new file mode 100644
index 0000000..aa5782b
--- /dev/null
+++ b/src/tests/disable_function/disabled_functions_param_str_representation_php8.phpt
@@ -0,0 +1,26 @@
1--TEST--
2Disable functions - casting various types to string internally in php8
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
5<?php if (PHP_VERSION_ID < 80000) print "skip"; ?>
6--INI--
7sp.configuration_file={PWD}/config/config_disabled_functions_param_str_representation_php8.ini
8--FILE--
9<?php
10echo var_export(true) . "\n";
11echo var_export(false) . "\n";
12echo var_export(null) . "\n";
13echo var_export(1) . "\n";
14echo var_export(1.0) . "\n";
15function f(&$a) {
16 echo var_export($a) . "\n";
17}
18$a = 123; f($a);
19?>
20--EXPECTF--
21true
22false
23NULL
241
251.0
26123