Allow nested namespaces with sane behavior
commit010a6a45471bcaa03efd01f6573a3198ea830fd2
authorPaul Bissonnette <paulbiss@fb.com>
Tue, 11 Nov 2014 20:29:35 +0000 (11 12:29 -0800)
committerhhvm-bot <hhvm-bot@fb.com>
Tue, 11 Nov 2014 20:30:39 +0000 (11 12:30 -0800)
treea91f3d2f112b094855d8863b964347e57bd747d5
parenta8fb0ebe80984232a64cdfdcbe14dbc4503a46bc
Allow nested namespaces with sane behavior

Summary: Continue to allow nested namespaces but make the behavior logical by
concatenating nested namespace names. (See new test for example)

Fixes #2260

Reviewed By: @JoelMarcey

Differential Revision: D1669100

Signature: t1:1669100:1415682581:f0d3b408e2751af398081ea3ea6bf72742c14144
hphp/compiler/parser/parser.cpp
hphp/compiler/parser/parser.h
hphp/test/slow/namespace/nested-ns.php [new file with mode: 0644]
hphp/test/slow/namespace/nested-ns.php.expect [new file with mode: 0644]