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
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php