mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
36935e42ea
Closes GH-5312
20 lines
307 B
PHP
20 lines
307 B
PHP
--TEST--
|
|
$this re-assign in extract()
|
|
--FILE--
|
|
<?php
|
|
function foo() {
|
|
try {
|
|
extract(["this"=>42, "a"=>24]);
|
|
} catch (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
var_dump($a);
|
|
}
|
|
foo();
|
|
?>
|
|
--EXPECTF--
|
|
Cannot re-assign $this
|
|
|
|
Warning: Undefined variable $a in %s on line %d
|
|
NULL
|