Bug #60369 [Opn->Ver]: Crash with static property in trait

From: Date: Wed, 23 Nov 2011 20:37:43 +0000
Subject: Bug #60369 [Opn->Ver]: Crash with static property in trait
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-165463@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60369&edit=1 ID: 60369 Updated by: gron@php.net Reported by: vrana@php.net Summary: Crash with static property in trait -Status: Open +Status: Verified Type: Bug Package: Class/Object related Operating System: Windows 7 PHP Version: 5.4.0RC1 -Assigned To: +Assigned To: gron Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2011-11-23 20:35:18] vrana@php.net Description: ------------ PHP crashes when there is a static property defined in a trait plus there is a normal property of the same name in a class using this trait. Test script: --------------- <?php trait PropertiesTrait { static $same = true; } class Properties { use PropertiesTrait; public $same = true; } ?> Expected result: ---------------- Exit code: 0 Actual result: -------------- Exit code: -1073741819 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60369&edit=1

« previous php.bugs (#165463) next »