Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Bug #72771. FTPS to FTP downgrade not allowed when server doesn't support AUTH TL..
Decoded Output download
--TEST--
Bug #72771. FTPS to FTP downgrade not allowed when server doesn't support AUTH TLS or AUTH SSL.
--EXTENSIONS--
openssl
--SKIPIF--
<?php
if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
if (!function_exists('pcntl_fork')) die("skip pcntl_fork() not available.");
?>
--FILE--
<?php
require __DIR__ . "/../../../ftp/tests/server.inc";
$path="ftps://127.0.0.1:" . $port."/";
$ds=opendir($path, $context);
var_dump($ds);
?>
--EXPECTF--
Warning: opendir(ftps://127.0.0.1:%d/): Failed to open directory: Server doesn't support FTPS. in %s on line %d
bool(false)
Did this file decode correctly?
Original Code
--TEST--
Bug #72771. FTPS to FTP downgrade not allowed when server doesn't support AUTH TLS or AUTH SSL.
--EXTENSIONS--
openssl
--SKIPIF--
<?php
if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
if (!function_exists('pcntl_fork')) die("skip pcntl_fork() not available.");
?>
--FILE--
<?php
require __DIR__ . "/../../../ftp/tests/server.inc";
$path="ftps://127.0.0.1:" . $port."/";
$ds=opendir($path, $context);
var_dump($ds);
?>
--EXPECTF--
Warning: opendir(ftps://127.0.0.1:%d/): Failed to open directory: Server doesn't support FTPS. in %s on line %d
bool(false)
Function Calls
stream_get_wrappers | 1 |
Stats
MD5 | 3143b157313a919d802eecb21902edf2 |
Eval Count | 0 |
Decode Time | 86 ms |