summaryrefslogtreecommitdiff
path: root/Zend/tests/constant_expressions_exceptions_001.phpt
blob: 279db24372d24c1e7fac38c184ac4ac7e5533a69 (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Constant Expressions with unsupported operands 001
--FILE--
<?php
const T = array(1,2) - array(0);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: Unsupported operand types: array - array in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d