Guest User

PHP 5.3.* seg fault

a guest
Oct 20th, 2014
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. <?php
  2. namespace NamespaceOne {
  3.         class Test {
  4.                 public function test(){
  5.                         $test = new Test;
  6.                         $test->standard_function(Other::static_function());
  7.                 }
  8.  
  9.                 public function standard_function($test){}
  10.         }
  11. }
  12.  
  13. namespace NamespaceTwo {
  14.         class Other {
  15.                 public static function static_function(){}
  16.         }
  17. }
  18.  
  19. namespace {
  20.         function simple(){
  21.                 throw new Exception;
  22.         }
  23.  
  24.         spl_autoload_register('simple');
  25.         $test = new \NamespaceOne\Test;
  26.         $test->test();
  27. }
Advertisement
Add Comment
Please, Sign In to add comment