Created
June 26, 2011 12:59
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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