summaryrefslogtreecommitdiff
path: root/Zend/tests/assert/bug70208.phpt
blob: ec9325334cb184636e8f786b6cc65631b8479203 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Bug #70208 (scope information must be preserved with assert())
--FILE--
<?php

function non_class_scope() {
	return true;
}

class test {
	protected $prop = 1;

	public function __construct() {
		assert('non_class_scope();');
		var_dump($this->prop);
	}
}

new test;

?>
--EXPECT--
int(1)