xref: /php-src/Zend/tests/gh14961.phpt (revision b368db20)
1--TEST--
2GH-14961: Comment between -> and keyword
3--FILE--
4<?php
5
6class C {
7    public $class = C::class;
8}
9
10$c = new C();
11$c->/* comment */class = 42;
12var_dump($c->/** doc comment */class);
13var_dump($c->
14    // line comment
15    class);
16var_dump($c->
17    # hash comment
18    class);
19var_dump($c?->/* comment */class);
20
21?>
22--EXPECT--
23int(42)
24int(42)
25int(42)
26int(42)
27