Skip to content

Instantly share code, notes, and snippets.

@stnvh

stnvh/crash.php Secret

Created December 8, 2014 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stnvh/e050c86ed2aa284a1668 to your computer and use it in GitHub Desktop.
Save stnvh/e050c86ed2aa284a1668 to your computer and use it in GitHub Desktop.
<?php
public function Crash() {
$test = array('Foo', 'Bar', 'Baz');
# When calling an exception handler without a catch within a foreach loop, it kills httpd
foreach($test as $a) {
try {
echo 'goodbye apache';
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment