]> granicus.if.org Git - php/commitdiff
Add test to make sure that (self::class)::method() is not forwarding LSB
authorMichael Voříšek <mvorisek@mvorisek.cz>
Fri, 27 Mar 2020 10:53:37 +0000 (11:53 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 30 Mar 2020 13:26:19 +0000 (15:26 +0200)
Related with Bug #79419.

Closes GH-5310.

Zend/tests/lsb_021.phpt

index a99ea4dd222cf840022c6d77d42c00c486523e8f..2e5b41844101beb1034f284e70b5e69797aaa935 100644 (file)
@@ -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