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