xref: /PHP-7.4/Zend/tests/this_in_extract.phpt (revision e080fb6d)
1--TEST--
2$this re-assign in extract()
3--FILE--
4<?php
5function foo() {
6    try {
7        extract(["this"=>42, "a"=>24]);
8    } catch (Error $e) {
9        echo $e->getMessage(), "\n";
10    }
11    var_dump($a);
12}
13foo();
14?>
15--EXPECTF--
16Cannot re-assign $this
17
18Notice: Undefined variable: a in %s on line %d
19NULL
20