summaryrefslogtreecommitdiff
path: root/src/tests/global_strict.phpt
blob: e06721c5723c8db663e9cf7b94202bca7f76740f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Global strict mode
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/global_strict.ini
--FILE--
<?php 
strcmp("pouet", []);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: strcmp() expects parameter 2 to be string, array given in %a/global_strict.php:2
Stack trace:
#0 %a/global_strict.php(2): strcmp('pouet', Array)
#1 {main}
  thrown in %a/global_strict.php on line 2