2494ce49b5
Classes need to take up space in the alias map (according to zend). Suprisingly, functions and constants don't. When importing a duplicate, zend doesn't do anything and just continues, and we currently overwrite the symbol. Should I match zend on this, or is the fact that we both continue working good enough?
15 linhas
173 B
PHP
15 linhas
173 B
PHP
<?php
|
|
|
|
namespace A;
|
|
const CO = "a";
|
|
function f() { return "a"; }
|
|
|
|
namespace B;
|
|
const CO = "b";
|
|
function f() { return "b"; }
|
|
|
|
use A\f;
|
|
use A\CO;
|
|
var_dump(f());
|
|
var_dump(CO);
|