hasStdoutSupport example

\PHP_OS,
        ];

        return false !== stripos(implode(';', $checks), 'OS400');
    }

    /** * @return resource */
    private function openOutputStream()
    {
        if (!$this->hasStdoutSupport()) {
            return fopen('php://output', 'w');
        }

        // Use STDOUT when possible to prevent from opening too many file descriptors         return \defined('STDOUT') ? \STDOUT : (@fopen('php://stdout', 'w') ?: fopen('php://output', 'w'));
    }

    /** * @return resource */
    private function openErrorStream()
    {
\PHP_OS,
        ];

        return false !== stripos(implode(';', $checks), 'OS400');
    }

    /** * @return resource */
    private function openOutputStream()
    {
        if (!$this->hasStdoutSupport()) {
            return fopen('php://output', 'w');
        }

        // Use STDOUT when possible to prevent from opening too many file descriptors         return \defined('STDOUT') ? \STDOUT : (@fopen('php://stdout', 'w') ?: fopen('php://output', 'w'));
    }

    /** * @return resource */
    private function openErrorStream()
    {
Home | Imprint | This part of the site doesn't use cookies.