blob: 8f746d7d5414e018d3ae0cde4bfde0e80b79e875 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--TEST--
Global strict mode
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
<?php if (PHP_VERSION_ID >= 80000) print "skip Not implemented in PHP 8+"; ?>
--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
|