1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/Zend/tests/static_variables_closure_bind.phpt
2023-05-24 20:17:31 +02:00

15 lines
224 B
PHP

--TEST--
Static variable can't override bound closure variables
--FILE--
<?php
$a = null;
function () use (&$a) {
static $a;
};
?>
--EXPECTF--
Fatal error: Duplicate declaration of static variable $a in %s on line %d