Bug #79862 [Ver->Csd]: Public non-static property in child should take priority over private static

From: Date: Wed, 15 Jul 2020 13:01:22 +0000
Subject: Bug #79862 [Ver->Csd]: Public non-static property in child should take priority over private static
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228069@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79862&edit=1 ID: 79862 Updated by: nikic@php.net Reported by: changochen1 at gmail dot com Summary: Public non-static property in child should take priority over private static -Status: Verified +Status: Closed Type: Bug Package: Scripting Engine problem PHP Version: 7.4 Assigned To: nikic Block user comment: N Private report: N New Comment: Automatic comment on behalf of nikita.ppv@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=e8430b592f977a8aaccf13f3213ff0d987388d13 Log: Fixed bug #79862 Previous Comments: ------------------------------------------------------------------------ [2020-07-15 04:55:20] changochen1 at gmail dot com Description: ------------ LOG: --- php: /home/yongheng/php_clean/Zend/zend_hash.c:756: zval *_zend_hash_add_or_update_i(HashTable *, zend_string *, zval *, uint32_t): Assertion `(flag & (1<<3)) == 0' failed. [1] 41947 abort ~/php_clean/bld/sapi/cli/php -f php_poc39.php --- Test script: --------------- <? class a { private static $b ; function __construct () { $this -> b = 'basemember' ; } } class c extends a { public $b ; } new c ; ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79862&edit=1

« previous php.bugs (#228069) next »