summaryrefslogtreecommitdiff
path: root/src/tests/strict_mode/strict_mode_enabled.phpt
blob: c511f9af93c1a1da0091e208ab0e0ee9e91ddeb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Strict mode enabled
--SKIPIF--
<?php
if (!extension_loaded("snuffleupagus")) print "skip snuffleupagus extension missing";
?>
--INI--
sp.configuration_file={PWD}/config/config_strict_mode_enabled.ini
--FILE--
<?php 
ini_set('display_errors', 1);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: ini_set() expects parameter 2 to be string, %s given in %s/tests/strict_mode/strict_mode_enabled.php:%d
Stack trace:
#0 %s/tests/strict_mode/strict_mode_enabled.php(2): ini_set('display_errors', 1)
#1 {main}
  thrown in %s/tests/strict_mode/strict_mode_enabled.php on line 2