src/Debug/Internal.php
private function logRequest()
    {
        $this->logRequestHeaders();
        if ($this->debug->getCfg('logEnvInfo.cookies')) {
            $cookieVals = $_COOKIE;
            \ksort($cookieVals, SORT_NATURAL);
            $this->debug->log('$_COOKIE', $cookieVals);
        }
        // don't expect a request body for these methods
        $noBody = !isset($_SERVER['REQUEST_METHOD'])
            || \in_array($_SERVER['REQUEST_METHOD'], array('CONNECT','GET','HEAD','OPTIONS','TRACE'));
        if ($this->debug->getCfg('logEnvInfo.post') && !$noBody) {
            if ($_POST) {
                $this->debug->log('$_POST', $_POST);
            } else {
                $input = \file_get_contents('php://input');
                if ($input) {
                    $this->debug->log('php://input', $input);
                } elseif (isset($_SERVER['REQUEST_METHOD']) && empty($_FILES)) {
                    $this->debug->warn($_SERVER['REQUEST_METHOD'].' request with no body');
                }
            }
            if (!empty($_FILES)) {
                $this->debug->log('$_FILES', $_FILES);
            }
        }
    }
private function logRequest()
    {
        $this->logRequestHeaders();
        if ($this->debug->getCfg('logEnvInfo.cookies')) {
            $cookieVals = $_COOKIE;
            \ksort($cookieVals, SORT_NATURAL);
            $this->debug->log('$_COOKIE', $cookieVals);
        }
        // don't expect a request body for these methods
        $noBody = !isset($_SERVER['REQUEST_METHOD'])
            || \in_array($_SERVER['REQUEST_METHOD'], array('CONNECT','GET','HEAD','OPTIONS','TRACE'));
        if ($this->debug->getCfg('logEnvInfo.post') && !$noBody) {
            if ($_POST) {
                $this->debug->log('$_POST', $_POST);
            } else {
                $input = \file_get_contents('php://input');
                if ($input) {
                    $this->debug->log('php://input', $input);
                } elseif (isset($_SERVER['REQUEST_METHOD']) && empty($_FILES)) {
                    $this->debug->warn($_SERVER['REQUEST_METHOD'].' request with no body');
                }
            }
            if (!empty($_FILES)) {
                $this->debug->log('$_FILES', $_FILES);
            }
        }
    }
private function logRequest ( ) { $ this -> logRequestHeaders ( ) ; if ( $ this -> debug -> getCfg ( 'logEnvInfo.cookies' ) ) { $ cookieVals = $ _COOKIE ; \ ksort ( $ cookieVals , SORT_NATURAL ) ; $ this -> debug -> log ( '$_COOKIE' , $ cookieVals ) ; } // don't expect a request body for these methods $ noBody = ! isset ( $ _SERVER [ 'REQUEST_METHOD' ] ) || \ in_array ( $ _SERVER [ 'REQUEST_METHOD' ] , array ( 'CONNECT' , 'GET' , 'HEAD' , 'OPTIONS' , 'TRACE' ) ) ; if ( $ this -> debug -> getCfg ( 'logEnvInfo.post' ) && ! $ noBody ) { if ( $ _POST ) { $ this -> debug -> log ( '$_POST' , $ _POST ) ; } else { $ input = \ file_get_contents ( 'php://input' ) ; if ( $ input ) { $ this -> debug -> log ( 'php://input' , $ input ) ; } elseif ( isset ( $ _SERVER [ 'REQUEST_METHOD' ] ) && empty ( $ _FILES ) ) { $ this -> debug -> warn ( $ _SERVER [ 'REQUEST_METHOD' ] . ' request with no body' ) ; } } if ( ! empty ( $ _FILES ) ) { $ this -> debug -> log ( '$_FILES' , $ _FILES ) ; } } }
Log Cookie, Post, & Files data

@return void
Log Cookie Post & Files data