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

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

update php

File size: 208 bytes
Line 
1--TEST--
2Assign to $this leaks when $this not defined
3--FILE--
4<?php
5
6try {
7        $this->a = new stdClass;
8} catch (Error $e) { echo $e->getMessage(), "\n"; }
9
10?>
11--EXPECT--
12Using $this when not in object context
Note: See TracBrowser for help on using the repository browser.