Code
- html.php ➔ html_wikilink()
- html.php ➔ html_login()
- html.php ➔ html_secedit()
- html.php ➔ html_secedit_button()
- html.php ➔ html_secedit_get_button()
- html.php ➔ html_topbtn()
- html.php ➔ html_btn()
- html.php ➔ html_showrev()
- html.php ➔ html_show()
- html.php ➔ html_draft()
- html.php ➔ html_hilight()
- html.php ➔ html_hilight_callback()
- html.php ➔ html_locked()
- html.php ➔ html_revisions()
- html.php ➔ html_recent()
- html.php ➔ html_index()
- html.php ➔ html_list_index()
- html.php ➔ html_li_index()
- html.php ➔ html_li_default()
- html.php ➔ html_buildlist()
- html.php ➔ html_backlinks()
- html.php ➔ html_diff_head()
- html.php ➔ html_diff()
- html.php ➔ html_diff_navigation()
- html.php ➔ html_diff_navigationlink()
- html.php ➔ html_insert_softbreaks()
- html.php ➔ html_softbreak_callback()
- html.php ➔ html_conflict()
- html.php ➔ html_msgarea()
- html.php ➔ html_register()
- html.php ➔ html_updateprofile()
- html.php ➔ html_edit()
- html.php ➔ html_edit_form()
- html.php ➔ html_minoredit()
- html.php ➔ html_debug()
- html.php ➔ html_resendpwd()
- html.php ➔ html_TOC()
- html.php ➔ html_list_toc()
- html.php ➔ html_mktocitem()
- html.php ➔ html_form()
- html.php ➔ html_form_output()
- html.php ➔ html_flashobject()
- html.php ➔ html_tabs()
- html.php ➔ html_tab()
- html.php ➔ html_sizechange()
- html.php ➔ html_denied()
Let’s assume that you have a directory layout like this:
and let’s assume the following content of
Bar.php
:If both files
OtherDir/Foo.php
andSomeDir/Foo.php
are loaded in the same runtime, you will see a PHP error such as the following:PHP Fatal error: Cannot use SomeDir\Foo as Foo because the name is already in use in OtherDir/Foo.php
However, as
OtherDir/Foo.php
does not necessarily have to be loaded and the error is only triggered if it is loaded beforeOtherDir/Bar.php
, this problem might go unnoticed for a while. In order to prevent this error from surfacing, you must import the namespace with a different alias: