mirror of
https://github.com/php/php-src.git
synced 2026-03-25 16:52:18 +01:00
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
|