source: src/router/php7/Zend/tests/this_as_parameter.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 188 bytes
Line 
1--TEST--
2$this as parameter
3--FILE--
4<?php
5function foo($this) {
6        var_dump($this);
7}
8foo(5);
9?>
10--EXPECTF--
11Fatal error: Cannot use $this as parameter in %sthis_as_parameter.php on line 2
Note: See TracBrowser for help on using the repository browser.