php-src/Zend/tests/constant_expressions_exceptions_002.phpt
Nikita Popov cdaf35033d Improve "unsupported operands" error
By mentioning the operand types. We can do that now, as the
original operand types now remain available.

Closes GH-5330.
2020-04-01 11:26:43 +02:00

15 lines
357 B
PHP

--TEST--
Constant Expressions with unsupported operands 002
--FILE--
<?php
try {
require("constant_expressions_exceptions.inc");
} catch (Error $e) {
echo "\nException: " . $e->getMessage() . " in " , $e->getFile() . " on line " . $e->getLine() . "\n";
}
?>
DONE
--EXPECTF--
Exception: Unsupported operand types: array - array in %s on line %d
DONE