• Barry Margolin (github)

    string(5)"frist"

  • (nodebb) in reply to Barry Margolin

    I thought I was frist but I'll throw an exception for you.

  • (nodebb) in reply to cellocgw
    catch (Throwable $cellocgw) {
        ob_start(); // start buffer capture
        
        echo("You're secnod, I'm thrid"); // Take huge steaming dump
    
        $ob = ob_get_contents(); // put the buffer into a variable
        
        ob_end_clean(); // end capture
        
        error_log($ob); 
    }
    
  • NotAThingThatHappens (unregistered)

    "Who's On First ?"

  • (nodebb)

    TRWTF is WordPress, and/or PHP, and/or all of the above.

    If only folks had come up with better ways to do web development since PHP. Sorry, bad traumatic memories.

  • LZ79LRU (unregistered)

    TRWTF is web development, period.

    Seriously the entire thing is a fractal WTF.

  • (nodebb)

    the output buffer is the funny part for me, because var_dump() has a boolean as the second parameter, when set to true it just returns the output instead of echoing it.

  • sssssssss (unregistered)
    Comment held for moderation.

Leave a comment on “PHP Error Logging”

Log In or post as a guest

Replying to comment #:

« Return to Article