1--TEST--
2ZE2 Data corruption in __set
3--SKIPIF--
4<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 is needed'); ?>
5--FILE--
6<?php
7$f = 'c="foo"';
8class foo {
9        const foobar=1;
10        public $pp = array('t'=>null);
11
12        function bar() {
13                echo $this->t ='f';
14        }
15        function __get($prop)
16        {
17                return $this->pp[$prop];
18        }
19        function __set($prop, $val)
20        {
21                echo "__set";
22                $this->pp[$prop] = '';
23        }
24}
25$f = new foo;
26$f->bar();
27?>
28--EXPECT--
29__setf
30