summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli_server.c
diff options
context:
space:
mode:
authorPhilip Hofstetter <phofstetter@sensational.ch>2013-10-02 08:35:02 +0200
committerNikita Popov <nikic@php.net>2013-10-04 17:25:46 +0200
commit96cc419924c38874f9e2f2e5ccf3cd0430d90f43 (patch)
treef882771e8ca08d6dde7789bbd0ff76721c255ac3 /sapi/cli/php_cli_server.c
parent8973390541faaadfdfc0f838421f037060188e5e (diff)
downloadphp-git-96cc419924c38874f9e2f2e5ccf3cd0430d90f43.tar.gz
Fix bug #65667: ftp_nb_continue produces segfault
the idea behind ftp_nb_get is for it to be followed by multiple calls to ftp_nb_continue in order to download a file piece-by-piece. As such, it's unwise to close the stream used to write the downloaded data to when the file hasn't been completely downloaded within the first call to ftp_nb_get. This regression was added in a93a462dcefd62e07963dd2da506fbb3409c88b5 and this patch restores the behavior that was seen pre-patch.
Diffstat (limited to 'sapi/cli/php_cli_server.c')
0 files changed, 0 insertions, 0 deletions