Code
- common.php ➔ preg_quote_cb()
- common.php ➔ hsc()
- common.php ➔ blank()
- common.php ➔ ptln()
- common.php ➔ stripctl()
- common.php ➔ getSecurityToken()
- common.php ➔ checkSecurityToken()
- common.php ➔ formSecurityToken()
- common.php ➔ basicinfo()
- common.php ➔ pageinfo()
- common.php ➔ jsinfo()
- common.php ➔ mediainfo()
- common.php ➔ buildURLparams()
- common.php ➔ buildAttributes()
- common.php ➔ breadcrumbs()
- common.php ➔ idfilter()
- common.php ➔ wl()
- common.php ➔ exportlink()
- common.php ➔ ml()
- common.php ➔ script()
- common.php ➔ checkwordblock()
- common.php ➔ clientIP()
- common.php ➔ clientismobile()
- common.php ➔ link_isinterwiki()
- common.php ➔ gethostsbyaddrs()
- common.php ➔ checklock()
- common.php ➔ lock()
- common.php ➔ unlock()
- common.php ➔ cleanText()
- common.php ➔ formText()
- common.php ➔ rawLocale()
- common.php ➔ rawWiki()
- common.php ➔ pageTemplate()
- common.php ➔ parsePageTemplate()
- common.php ➔ rawWikiSlices()
- common.php ➔ con()
- common.php ➔ detectExternalEdit()
- common.php ➔ saveWikiText()
- common.php ➔ saveOldRevision()
- common.php ➔ notify()
- common.php ➔ getGoogleQuery()
- common.php ➔ filesize_h()
- common.php ➔ datetime_h()
- common.php ➔ dformat()
- common.php ➔ date_iso8601()
- common.php ➔ obfuscate()
- common.php ➔ unslash()
- common.php ➔ php_to_byte()
- common.php ➔ shorten()
- common.php ➔ editorinfo()
- common.php ➔ userlink()
- common.php ➔ license_img()
- common.php ➔ is_mem_available()
- common.php ➔ send_redirect()
- common.php ➔ valid_input_set()
- common.php ➔ get_doku_pref()
- common.php ➔ set_doku_pref()
- common.php ➔ stripsourcemaps()
- common.php ➔ inlineSVG()
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: