✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ premium290.web-hosting.com ​🇻​♯➤ 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 63.250.38.37 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.102
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/php84/usr/share/pear/test/XML_Util/tests//Bug18343Tests.php
<?php

/**
 * Bug #18343 "Entities in file names decoded during packaging"
 *
 * No matter what flags are given to createTagFromArray(),
 * an attribute must *always* be at least ENTITIES_XML encoded.
 *
 * @link https://pear.php.net/bugs/bug.php?id=18343
 */
class Bug18343Tests extends AbstractUnitTests
{
    private $tagArray = array(
        "qname"      => "install",
        "attributes" => array(
            "as"    => "Horde/Feed/fixtures/lexicon/http-p.moreover.com-cgi-local-page%2Fo=rss&s=Newsweek",
            "name"  => "test/Horde/Feed/fixtures/lexicon/http-p.moreover.com-cgi-local-page%2Fo=rss&s=Newsweek",
        )
    );

    public function getFlagsToTest()
    {
        new XML_Util(); // for constants to be declared

        return array(
            array('no flag', null),
            array('false', false),
            array('ENTITIES_NONE', XML_UTIL_ENTITIES_NONE),
            array('ENTITIES_XML', XML_UTIL_ENTITIES_XML),
            array('ENTITIES_XML_REQUIRED', XML_UTIL_ENTITIES_XML_REQUIRED),
            array('ENTITIES_HTML', XML_UTIL_ENTITIES_HTML),
            array('REPLACE_ENTITIES', XML_UTIL_REPLACE_ENTITIES),
        );
    }

    /**
     * @dataProvider getFlagsToTest()
     */
    public function testCreateTagFromArrayForBug18343($key, $flag)
    {
        // all flags for the candidate input should return the same result
        $expected =
<<< EOF
<install as="Horde/Feed/fixtures/lexicon/http-p.moreover.com-cgi-local-page%2Fo=rss&amp;s=Newsweek" name="test/Horde/Feed/fixtures/lexicon/http-p.moreover.com-cgi-local-page%2Fo=rss&amp;s=Newsweek" />
EOF;
        $this->assertEquals($expected, XML_Util::createTagFromArray($this->tagArray, $flag), "Failed bugcheck for $key.");
    }
}


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
12 May 2025 6.10 PM
root / root
0755
AbstractUnitTests.php
0.414 KB
12 May 2025 6.10 PM
root / root
0644
ApiVersionTests.php
0.216 KB
12 May 2025 6.10 PM
root / root
0644
AttributesToStringTests.php
7.521 KB
12 May 2025 6.10 PM
root / root
0644
Bug18343Tests.php
1.701 KB
12 May 2025 6.10 PM
root / root
0644
Bug21177Tests.php
1.029 KB
12 May 2025 6.10 PM
root / root
0644
Bug21184Tests.php
0.439 KB
12 May 2025 6.10 PM
root / root
0644
Bug4950Tests.php
0.712 KB
12 May 2025 6.10 PM
root / root
0644
Bug5392Tests.php
0.749 KB
12 May 2025 6.10 PM
root / root
0644
CollapseEmptyTagsTests.php
4.251 KB
12 May 2025 6.10 PM
root / root
0644
CreateCDataSectionTests.php
0.354 KB
12 May 2025 6.10 PM
root / root
0644
CreateCommentTests.php
0.332 KB
12 May 2025 6.10 PM
root / root
0644
CreateEndElementTests.php
0.599 KB
12 May 2025 6.10 PM
root / root
0644
CreateStartElementTests.php
5.283 KB
12 May 2025 6.10 PM
root / root
0644
CreateTagFromArrayTests.php
13.176 KB
12 May 2025 6.10 PM
root / root
0644
CreateTagTests.php
7.791 KB
12 May 2025 6.10 PM
root / root
0644
GetDocTypeDeclarationTests.php
1.737 KB
12 May 2025 6.10 PM
root / root
0644
GetXmlDeclarationTests.php
1.137 KB
12 May 2025 6.10 PM
root / root
0644
IsValidNameTests.php
1.937 KB
12 May 2025 6.10 PM
root / root
0644
RaiseErrorTests.php
0.438 KB
12 May 2025 6.10 PM
root / root
0644
ReplaceEntitiesTests.php
4.22 KB
12 May 2025 6.10 PM
root / root
0644
ReverseEntitiesTests.php
4.209 KB
12 May 2025 6.10 PM
root / root
0644
SplitQualifiedNameTests.php
0.819 KB
12 May 2025 6.10 PM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF