Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

12
  • 1
    \$\begingroup\$ Since you can have severel levels of output buffering, the second one does not work. Often, while(ob_get_level()) ob_end_flush(); is used in frameworks to flush all output buffers that may have been left open accidently. \$\endgroup\$ Commented Oct 18, 2015 at 18:35
  • 10
    \$\begingroup\$ Why am I not surprised that PHP ended up towards the top of the vote-chart :) \$\endgroup\$
    – MonkeyZeus
    Commented Oct 20, 2015 at 20:47
  • 60
    \$\begingroup\$ This shouldn't even throw any error, since there isn't enough memory for that. LOL'ed at that :) \$\endgroup\$ Commented Oct 28, 2015 at 16:21
  • 5
    \$\begingroup\$ Isn't PHP basically unusable to start off with? :P \$\endgroup\$
    – user69654
    Commented Jul 20, 2017 at 12:44
  • 1
    \$\begingroup\$ The first answer is invalid because the user code isn't actually executed. \$\endgroup\$ Commented Aug 21, 2019 at 2:55