1--TEST-- 2Bug #76300: Unserialize of extended protected member broken 3--FILE-- 4<?php 5class Base { 6 private $id; 7 public function __construct($id) 8 { 9 $this->id = $id; 10 } 11} 12class Derived extends Base { 13 protected $id; 14 public function __construct($id) 15 { 16 parent::__construct($id + 20); 17 $this->id = $id; 18 } 19} 20$a = new Derived(44); 21$s = serialize($a); 22$u = unserialize($s); 23print_r($u); 24?> 25--EXPECT-- 26Derived Object 27( 28 [id:Base:private] => 64 29 [id:protected] => 44 30) 31