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

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

update php

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