1--TEST-- 2Bug #38461 (setting private attribute with __set() produces segfault) 3--FILE-- 4<?php 5 6class Operation 7{ 8 function __set( $var, $value ) 9 { 10 $this->$var = $value; 11 } 12} 13 14class ExtOperation extends Operation 15{ 16 private $x; 17} 18 19$op = new ExtOperation; 20$op->x = 'test'; 21 22echo "Done\n"; 23?> 24--EXPECT-- 25Done 26