Bug #70873 [Asn->Csd]: Regression on private static properties access

From: Date: Sat, 07 Nov 2015 14:51:04 +0000
Subject: Bug #70873 [Asn->Csd]: Regression on private static properties access
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197101@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70873&edit=1

 ID:                 70873
 Updated by:         laruence@php.net
 Reported by:        marcio@php.net
 Summary:            Regression on private static properties access
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            Scripting Engine problem
 PHP Version:        7.0.0RC6
 Assigned To:        bwoebi
 Block user comment: N
 Private report:     N

 New Comment:

Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=2d8d97cee25b632b21d4740c0c7c077196603e9d
Log: Fixed bug #70873 (Regression on private static properties access)


Previous Comments:
------------------------------------------------------------------------
[2015-11-06 20:19:25] marcio@php.net

Description:
------------
It seems that since PHP7 alpha it's possible to access private static properties of upper
classes. This is an unwanted regression https://3v4l.org/4XheY

Currently on master, the same example has a failing assertion and a segfault:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
php: php/Zend/zend_object_handlers.c:279: zend_verify_property_access: Assertion
`property_info->flags & 0x200' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff5ea5877 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56        return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);

Expected result:
----------------
Same error as php 5.6: Fatal error: Cannot access property B::$x in /in/4XheY on line 9

Actual result:
--------------
On RC6 it's possible to access the private static property from the upper class.
On master it causes a segfault.


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=70873&edit=1


Thread (2 messages)

« previous php.bugs (#197101) next »