svn: /php/php-src/trunk/Zend/tests/ bug61011.phpt

From: Date: Sat, 25 Feb 2012 03:14:16 +0000
Subject: svn: /php/php-src/trunk/Zend/tests/ bug61011.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-67713@lists.php.net to get a copy of this message
laruence Sat, 25 Feb 2012 03:14:16 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=323486 Log: test for bug #61011 Bug: https://bugs.php.net/61011 (Assigned) Crash when an exception is thrown by __autoload accessing a static property Changed paths: A php/php-src/trunk/Zend/tests/bug61011.phpt Added: php/php-src/trunk/Zend/tests/bug61011.phpt =================================================================== --- php/php-src/trunk/Zend/tests/bug61011.phpt (rev 0) +++ php/php-src/trunk/Zend/tests/bug61011.phpt 2012-02-25 03:14:16 UTC (rev 323486) @@ -0,0 +1,17 @@ +--TEST-- +Bug #61011 (Crash when an exception is thrown by __autoload accessing a static property) +--XFAILD-- +#61011 have not been fixed yet +--FILE-- +<?php +function __autoload($class) { + throw new Exception($class); +} + +try { +NoExistsClass::$property; +} catch (Exception $e) { +} +echo 'okey'; +--EXPECT-- +okey

« previous php.cvs (#67713) next »