xref: /PHP-8.3/Zend/tests/this_in_extract.phpt (revision 36935e42)
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
18Warning: Undefined variable $a in %s on line %d
19NULL
20