mirror of
https://github.com/php/php-src.git
synced 2026-04-19 22:11:12 +02:00
19 lines
309 B
PHP
19 lines
309 B
PHP
--TEST--
|
|
$this in catch
|
|
--FILE--
|
|
<?php
|
|
class C {
|
|
function foo() {
|
|
try {
|
|
throw new Exception();
|
|
} catch (Exception $this) {
|
|
}
|
|
var_dump($this);
|
|
}
|
|
}
|
|
$obj = new C;
|
|
$obj->foo();
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot re-assign $this in %sthis_in_catch.php on line 6
|