php-src/Zend/tests/this_as_parameter.phpt
2020-02-03 22:52:20 +01:00

12 lines
191 B
PHP

--TEST--
$this as parameter
--FILE--
<?php
function foo($this) {
var_dump($this);
}
foo(5);
?>
--EXPECTF--
Fatal error: Cannot use $this as parameter in %sthis_as_parameter.php on line 2