Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Deletes a file
<?php unlink(string $filename, ?resource $context = null): bool
<?php             throw new Exception('Unable to unzip vendor archive.');

        }



        unlink(self::DOWNLOAD_FILE_PATH);



        self::updateComposerAutoloading();

    }
<?php         );



        if (file_exists($downloadPath)) {

            unlink($downloadPath);

        }



        $fp = fopen($downloadPath, 'w');
<?php             throw new Exception('Unable to unzip vendor archive.');

        }



        unlink(self::DOWNLOAD_FILE_PATH);



        self::updateComposerAutoloading();

    }
<?php         );



        if (file_exists($downloadPath)) {

            unlink($downloadPath);

        }



        $fp = fopen($downloadPath, 'w');
<?php             throw new Exception('Unable to unzip vendor archive.');

        }



        unlink(self::DOWNLOAD_FILE_PATH);



        self::updateComposerAutoloading();

    }
<?php         );



        if (file_exists($downloadPath)) {

            unlink($downloadPath);

        }



        $fp = fopen($downloadPath, 'w');
<?php     {


        if (! file_exists(self::PID_FILE)) {

            unlink(self::SOCKET);

            return;

        }
<?php         if ($pid <= 0) {

            echo "PHP-FPM's PID file contained an invalid PID, assuming PHP-FPM isn't running.\n";

            unlink(self::SOCKET);

            unlink(self::PID_FILE);

            return;

        }
<?php         if ($pid <= 0) {

            echo "PHP-FPM's PID file contained an invalid PID, assuming PHP-FPM isn't running.\n";

            unlink(self::SOCKET);

            unlink(self::PID_FILE);

            return;

        }
<?php         if (posix_getpgid($pid) === false) {


            unlink(self::SOCKET);

            unlink(self::PID_FILE);

            return;

        }
<?php         if (posix_getpgid($pid) === false) {


            unlink(self::SOCKET);

            unlink(self::PID_FILE);

            return;

        }
<?php         if ($pid === posix_getpid()) {

            unlink(self::SOCKET);

            unlink(self::PID_FILE);

            return;

        }
<?php         if ($pid === posix_getpid()) {

            unlink(self::SOCKET);

            unlink(self::PID_FILE);

            return;

        }
<?php         $result = posix_kill($pid, self::SIGTERM);

        if ($result === false) {

            echo "PHP-FPM's PID file contained a PID that doesn't exist, assuming PHP-FPM isn't running.\n";

            unlink(self::SOCKET);

            unlink(self::PID_FILE);

            return;

        }
<?php         if ($result === false) {

            echo "PHP-FPM's PID file contained a PID that doesn't exist, assuming PHP-FPM isn't running.\n";

            unlink(self::SOCKET);

            unlink(self::PID_FILE);

            return;

        }

        $this->waitUntilStopped($pid);