[php-src] PR #17327: Fix GH-16800: ftp functions can abort with EINTR

From: Date: Thu, 02 Jan 2025 21:11:48 +0000
Subject: [php-src] PR #17327: Fix GH-16800: ftp functions can abort with EINTR
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-30202@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17327 Author: nielsdos This adds wrappers around recv(), send(), and php_pollfd_for_ms() to handle EINTR. This is a bit hard to test on its own, but it is testable manually using the following script: ```php pcntl_signal(SIGUSR1, function() { var_dump(func_get_args()); }, false); var_dump(getmypid()); sleep(10); $ftp = ftp_connect('127.0.0.1'); ftp_login($ftp, 'user', 'pass'); ftp_put($ftp, 'testfile', 'testfile'); ``` in combination with an infinite while loop that sends SIGUSR1 to the process.

« previous php.git-pulls (#30202) next »