/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
php-8.5.0beta2
tests/basic/021.phpt
45 строк
941 B
Björn Tantau
Fix #77372: Retain full path of files for directory uploads (#6917)
14 май 2021, 12:43
Не верифицирован
14 май 2021, 12:43
d764f1d
Код
Авторство
О чём код?
--TEST-- Bug #37276 (problems witch $_POST array) --INI-- file_uploads=1 upload_tmp_dir=. --POST_RAW-- Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737 -----------------------------20896060251896012921717172737 Content-Disposition: form-data; name="submitter" testname -----------------------------20896060251896012921717172737 Content-Disposition: form-data; name="pics"; filename="bug37276.txt" Content-Type: text/plain bug37276 -----------------------------20896060251896012921717172737-- --FILE-- <?php var_dump($_FILES); var_dump($_POST); ?> --EXPECTF-- array(1) { ["pics"]=> array(6) { ["name"]=> string(12) "bug37276.txt" ["full_path"]=> string(12) "bug37276.txt" ["type"]=> string(10) "text/plain" ["tmp_name"]=> string(%d) "%s" ["error"]=> int(0) ["size"]=> int(9) } } array(1) { ["submitter"]=> string(8) "testname" }