<?php
  error_reporting(E_ALL);

  class Object {
    function __construct($args= NULL) {
      echo "Object::__construct("; var_export($args); echo ")\n";
    }
  }

  class Exception extends Object {
    var
      $message;
      
    function __construct($message) {
      echo "Exception::__construct("; var_export($message); echo ")\n";
      $this->message= $message;
      parent::__construct();
    }
  }

  class IOException extends Exception {
    // Remove comments before "function __construct" 
    // to see the difference between patched and unpatched ZE2
    // function __construct($message) { parent::__construct($message); }
  }
  
  $e= new IOException('file not found');
  echo '===> Result: '; var_dump($e);
?>
