Test: /Zend/tests/bug79862.phpt - Version 7.4.6        

Bug #79862 Public non-static property in child should take priority over private static
Submitted: 2020-07-15 04:55:20 Modified: 2020-07-15 10:42:33
From: changochen1 Assigned: nikic
Status: Closed Package: Scripting Engine problem
PHP Version: 7.4 OS:

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

Count Diff
3 (60%)
001+ Notice: Accessing static property c::$prop1 as non static in %s/bug79862.php on line 11 002+ 003+ Notice: Accessing static property c::$prop2 as non static in %s/bug79862.php on line 12 004+ 008- object(c)#1 (6) { 010- int(1) 012+ object(c)#1 (8) { 012- int(2) 014+ NULL 016+ NULL 021+ ["prop1"]=> 022+ int(1) 023+ ["prop2"]=> 024+ int(2)
2 (40%)
001+ Notice: Accessing static property c::$prop1 as non static in %s/bug79862.php on line 11 002+ php: /home/travis/build/acquia/php-src/Zend/zend_hash.c:734: _zend_hash_add_or_update_i: Assertion `(flag & (1<<3)) == 0' failed. 003+ Aborted (core dumped) 001- Notice: Accessing static property c::$prop5 as non static in %s on line %d 003- Notice: Accessing static property c::$prop6 as non static in %s on line %d 005+ Termsig=6 004- NULL 005- NULL 006- NULL 007- NULL 008- object(c)#1 (6) { 009- ["prop1"]=> 010- int(1) 011- ["prop2":protected]=> 012- int(2) 013- ["prop3":"a":private]=> 014- int(3) 015- ["prop4":"a":private]=> 016- int(4) 017- ["prop5"]=> 018- int(5) 019- ["prop6"]=> 020- int(6) 021- }