mirror of
https://github.com/php/php-src.git
synced 2026-03-30 20:22:36 +02:00
commit2d3cac9e00Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 11:54:47 2018 +0300 Fixed static property access commit31786ee272Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 11:05:29 2018 +0300 Avoid duplicate checks commit5ae502b979Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 10:39:17 2018 +0300 Optimization commit82c17f0e8aAuthor: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 09:26:50 2018 +0300 Removed unused zend_duplicate_property_info() commitba53d1d0ddMerge:eacc11b8fdc4b14370cfAuthor: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 09:24:13 2018 +0300 Merge branch 'master' into shadow * master: 7.0.33 next Sync NEWS [ci skip] add NEWS for 76582 Enforce ordering of property compare in object comparisons Fixed wrong assertion Skip test on unsuitable env commiteacc11b8fdAuthor: Dmitry Stogov <dmitry@zend.com> Date: Mon Sep 10 13:12:39 2018 +0300 Fixed failure of ext/spl/tests/array_017.phpt commit62d1871430Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Sep 10 11:55:07 2018 +0300 Fixed issues commit1d37e3a40eMerge:d6c3f098b61e550e6f7eAuthor: Dmitry Stogov <dmitry@zend.com> Date: Mon Sep 10 10:21:20 2018 +0300 Merge branch 'master' into shadow * master: Update NEWS Fix for bug #76582 Fix ssl stream reneg limit test to print only after first renegotiation Make a copy unconditionally Fix memory leak in pcre cache Remove not needed checking for <errno.h> Remove HAVE_ASSERT_H Add test for bug #76850 Fixed bug #76850 Exit code mangled by set locale/preg_match Remove empty PHP tags from test Fix #75273: php_zlib_inflate_filter() may not update bytes_consumed Fix PCRE2 exclusion and remove dead libs in Makefile.gcov Report mem leaks to stderr if no Win debugger is present Use combined assignment contanation operator Fixed bug #76796 Support fixed address mmap without replacement commitd6c3f098b6Author: Dmitry Stogov <dmitry@zend.com> Date: Fri Sep 7 13:56:30 2018 +0300 Get rid of ZEND_ACC_SHADOW
35 lines
496 B
PHP
35 lines
496 B
PHP
--TEST--
|
|
Bug #70873 (Regression on private static properties access)
|
|
--FILE--
|
|
<?php
|
|
|
|
class A {
|
|
private static $x = 1;
|
|
}
|
|
|
|
class B extends A {
|
|
function bar() {
|
|
var_dump(self::$x);
|
|
}
|
|
};
|
|
|
|
class C extends A {
|
|
function bar() {
|
|
var_dump(A::$x);
|
|
}
|
|
};
|
|
|
|
|
|
$a = new B;
|
|
$a->bar();
|
|
|
|
$b = new C;
|
|
$b->bar();
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Cannot access private property B::$x in %sbug70873.php:%d
|
|
Stack trace:
|
|
#0 %sbug70873.php(%d): B->bar()
|
|
#1 {main}
|
|
thrown in %sbug70873.php on line %d
|