php-src/Zend/tests/line_const_in_array.phpt

22 lines
187 B
Plaintext
Raw Normal View History

2014-10-13 02:54:45 +08:00
--TEST--
Use of __LINE__ in arrays
--FILE--
<?php
var_dump([
__LINE__,
__LINE__,
__LINE__,
]);
?>
--EXPECT--
array(3) {
[0]=>
int(4)
[1]=>
int(5)
[2]=>
int(6)
}