]> granicus.if.org Git - php/commit
Fix detection of code outside namespace
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 21 Sep 2020 10:37:44 +0000 (12:37 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 21 Sep 2020 10:37:44 +0000 (12:37 +0200)
commitc5f93d191e2bf5a9def069cf9701b5eb6e297a74
tree7d0f822aacc7344e492f7007e7aeb1386c908e57
parentef9ab9159b409c6d3ea184b4ba88764d85c4133b
Fix detection of code outside namespace

Due to improvements to early binding, the opcode based check is
no longer accurate. Reuse the syntactic check we're already using
for declares instead.
Zend/tests/attributes/004_name_resolution.phpt
Zend/tests/function_outside_namespace.phpt [new file with mode: 0644]
Zend/tests/type_declarations/confusable_type_warning.phpt
Zend/zend_compile.c