1--TEST-- 2ZE2 factory and singleton, test 3 3--FILE-- 4<?php 5class test { 6 7 protected function __construct($x) { 8 } 9} 10 11$obj = new test; 12 13echo "Done\n"; 14?> 15--EXPECTF-- 16Fatal error: Uncaught Error: Call to protected test::__construct() from invalid context in %s:%d 17Stack trace: 18#0 {main} 19 thrown in %s on line %d 20