File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug64821.1.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:17 2013 UTC (11 years, 8 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

    1: --TEST--
    2: Bug #64821 Custom Exceptions crash when internal properties overridden (variation 1)
    3: --FILE--
    4: <?php
    5: 
    6: class a extends exception {
    7: 	public function __construct() {
    8: 		$this->message = NULL;
    9: 		$this->string  = NULL;
   10: 		$this->code    = array();
   11: 		$this->line = "hello";
   12: 	}
   13: }
   14: 
   15: throw new a;
   16: 
   17: ?>
   18: --EXPECTF--
   19: Fatal error: Uncaught exception 'a' in %s:0
   20: Stack trace:
   21: #0 {main}
   22:   thrown in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>