Skip to content

Instantly share code, notes, and snippets.

@gr4y
Created June 26, 2011 12:59
Show Gist options
  • Select an option

  • Save gr4y/1047595 to your computer and use it in GitHub Desktop.

Select an option

Save gr4y/1047595 to your computer and use it in GitHub Desktop.
this creates an nasty zend_mm_heap corrupted message in apache error log and an nice Segmentation fault.
<?php
class View {
/**
* render the view
*/
public function render() {
if($this->vars)
@extract($this->vars);
if( !file_exists( $this->viewFile ) ) return;
require ( $this->viewFile );
}
public function render($viewPath, $vars) {
var_dump($viewPath);
var_dump($vars);
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment