Test: /Zend/tests/bug44141.phpt - Version 7.4.0-dev        

Bug #44141 private parent constructor callable through static function
Submitted: 2008-02-17 06:09:31 Modified: 2008-02-21 13:57:33
From: B.Steinbrink Assigned: dmitry
Status: Closed Package: Class/Object related
PHP Version: 5.2.5 OS: Debian Linux

There are 2 different diffs reported by users for this test.

Count Diff
28 (93%)
001+ Parse error: syntax error, unexpected 'Y' (T_LOGICAL_AND), expecting identifier (T_STRING) in %s/bug44141.php on line 11
001- Fatal error: Uncaught Error: Call to private X::__construct() from context 'Y' in %sbug44141.php:15
002- Stack trace:
003- #0 %s(%d): Y::cheat(5)
004- #1 {main}
005- thrown in %sbug44141.php on line 15
2 (7%)
003+ #0 %s/bug44141.php(19): Y::cheat()
003- #0 %s(%d): Y::cheat(5)