Bug #67385 [Opn->Nab]: Static property value on trait copied to object if set before class definition.

From: Date: Thu, 05 Jun 2014 17:21:57 +0000
Subject: Bug #67385 [Opn->Nab]: Static property value on trait copied to object if set before class definition.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186074@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67385&edit=1 ID: 67385 Updated by: requinix@php.net Reported by: arjen at react dot com Summary: Static property value on trait copied to object if set before class definition. -Status: Open +Status: Not a bug Type: Bug Package: Scripting Engine problem Operating System: Linux PHP Version: 5.5.13 Block user comment: N Private report: N New Comment: Traits are not inheritance. B was composed of trait A before $_a was set. C came after it was set. Next time please follow the instructions for creating bug reports. Posting a link for the description and test script is not enough. http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2014-06-05 13:31:53] arjen at react dot com Description: ------------ See http://3v4l.org/nP4Pj Test script: --------------- See http://3v4l.org/nP4Pj ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67385&edit=1

« previous php.bugs (#186074) next »