Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Binary-safe file write
Alias fputs
<?php fwrite(resource $stream, string $data, ?int $length = null): int|false
<?php         $exitCode = $application->runTest(realpath(trim($testPath)));



        fwrite($statusFile, (string) $exitCode);

        fflush($statusFile);

    }

})();
<?php             $teamcityProgress = $this->tailMultiple($teamcityFiles);



            if ($this->teamcityLogFileHandle !== null) {

                fwrite($this->teamcityLogFileHandle, $teamcityProgress);

            }

        }
<?php             $teamcityProgress = $this->tailMultiple($teamcityFiles);



            if ($this->teamcityLogFileHandle !== null) {

                fwrite($this->teamcityLogFileHandle, $teamcityProgress);

                $resource = $this->teamcityLogFileHandle;

                $this->teamcityLogFileHandle = null;

                fclose($resource);