mirror of
https://github.com/php/php-src.git
synced 2026-04-18 05:21:02 +02:00
This is a re-application of the original match against master. The patch was originally applied to master, then reverted from there, incorrectly applied to PHP-8.0, reverted from there due to ABI break, and now lands on master again. We can only hope that it does not get reverted again ;)
20 lines
4.3 KiB
PHP
20 lines
4.3 KiB
PHP
--TEST--
|
|
Bug #80901 (Info leak in ftp extension)
|
|
--EXTENSIONS--
|
|
ftp
|
|
pcntl
|
|
--FILE--
|
|
<?php
|
|
$bug80901 = true;
|
|
require 'server.inc';
|
|
|
|
$ftp = ftp_connect("127.0.0.1", $port);
|
|
if (!$ftp) die("Couldn't connect to the server");
|
|
var_dump(ftp_login($ftp, 'user', 'pass'));
|
|
ftp_systype($ftp);
|
|
?>
|
|
--EXPECTF--
|
|
bool(true)
|
|
|
|
Warning: ftp_systype(): **************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** in %s on line %d
|