Edit report at https://bugs.php.net/bug.php?id=60558&edit=1
ID: 60558 Updated by: larue...@php.net Reported by: larue...@php.net Summary: Invalid read and writes Status: Open Type: Bug Package: Scripting Engine problem PHP Version: 5.4.0RC3 Block user comment: N Private report: N New Comment: seems something wrong with the refcount of zval in traits's default_properties_table[i]. but I have not figured out what's going wrong. A more simple test: <?php trait A { private $hello = 0; } class BaseWithTPropB{ use A; } class SubclassB extends BaseWithTPropB { use A; } $b = new SubClassB; var_dump($b); ?> plz run valgrind like: USE_ZEND_ALLOC=0 valgrind --db-attach=yes --leak-check=full php test.php Previous Comments: ------------------------------------------------------------------------ [2011-12-19 04:53:11] larue...@php.net Gron, ignore the assigment, I just want to get your attention, so let's diag this one again :) thanks ------------------------------------------------------------------------ [2011-12-19 04:07:46] larue...@php.net found while diagnosing #60536 ------------------------------------------------------------------------ [2011-12-19 04:05:56] larue...@php.net Description: ------------ Valgrind complains about invalid read and writes in the tests: http://dev.daylessday.org/diff/bug60536_001.mem http://dev.daylessday.org/diff/bug60536_003.mem So the problem is definitely not fixed yet. Test script: --------------- http://dev.daylessday.org/diff/bug60536_001.mem http://dev.daylessday.org/diff/bug60536_003.mem ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60558&edit=1