summaryrefslogtreecommitdiff
path: root/Zend/tests/bug38461.phpt
blob: 6f571876b8e9e06afbbce12a976834afb0a05d48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Bug #38461 (setting private attribute with __set() produces segfault)
--FILE--
<?php

class Operation
{
    function __set( $var, $value )
    {
        $this->$var = $value;
    }
}

class ExtOperation extends Operation
{
    private $x;
}

$op = new ExtOperation;
$op->x = 'test';

echo "Done\n";
?>
--EXPECT--
Done