mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
0b1d750d91
Closes GH-9301
15 lines
224 B
PHP
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
|