mirror of
https://github.com/php/php-src.git
synced 2024-09-28 21:36:12 +00:00
12 lines
188 B
Plaintext
12 lines
188 B
Plaintext
|
--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
|