1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00
Files
archived-php-src/Zend/tests/bug81631.phpt

15 lines
306 B
PHP

--TEST--
Bug #81631: ::class with dynamic class name may yield wrong line number
--FILE--
<?php
$a = 0;
var_dump($b::class);
?>
--EXPECTF--
Warning: Undefined variable $b in %s on line 3
Fatal error: Uncaught TypeError: Cannot use "::class" on null in %s:3
Stack trace:
#0 {main}
thrown in %s on line 3