Dumped enums are missing a leading \, leading to issues when within a namespace (see test output without code fix - namespace will be ns1\ns2 rather than ns2).
Not sure if the latter lines of the test (with the attribute and eval()) belong in Dumper.dump().enum.phpt, a new test, or if it's even necessary - simply placing the test in a namespace is enough to catch the bug.
Dumped enums are missing a leading
\
, leading to issues when within a namespace (see test output without code fix - namespace will be ns1\ns2 rather than ns2).Not sure if the latter lines of the test (with the attribute and eval()) belong in Dumper.dump().enum.phpt, a new test, or if it's even necessary - simply placing the test in a namespace is enough to catch the bug.