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

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 325 bytes
Line 
1--TEST--
2Live range of ZEND_NEW must be assigned to correct variable
3--FILE--
4<?php
5
6class Foo {
7    public static function test() {
8        self::$property = new self;
9    }
10}
11
12try {
13    Foo::test();
14} catch (Error $e) {
15    echo $e->getMessage(), "\n";
16}
17
18?>
19--EXPECT--
20Access to undeclared static property: Foo::$property
Note: See TracBrowser for help on using the repository browser.