From: Michael Voříšek Date: Fri, 27 Mar 2020 10:53:37 +0000 (+0100) Subject: Add test to make sure that (self::class)::method() is not forwarding LSB X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c82b832f6b67b1e8b1d7c196540c4b19c709c04;p=php Add test to make sure that (self::class)::method() is not forwarding LSB Related with Bug #79419. Closes GH-5310. --- diff --git a/Zend/tests/lsb_021.phpt b/Zend/tests/lsb_021.phpt index a99ea4dd22..2e5b418441 100644 --- a/Zend/tests/lsb_021.phpt +++ b/Zend/tests/lsb_021.phpt @@ -24,6 +24,10 @@ class B extends A { B::test(); call_user_func("B::test"); call_user_func(array("B", "test")); + + (self::class)::test(); + call_user_func(self::class . "::test"); + call_user_func(array(self::class, "test")); } } @@ -48,3 +52,6 @@ A B B B +B +B +B