]> granicus.if.org Git - php/commitdiff
test for bug #61011
authorXinchen Hui <laruence@php.net>
Sat, 25 Feb 2012 03:14:16 +0000 (03:14 +0000)
committerXinchen Hui <laruence@php.net>
Sat, 25 Feb 2012 03:14:16 +0000 (03:14 +0000)
Zend/tests/bug61011.phpt [new file with mode: 0644]

diff --git a/Zend/tests/bug61011.phpt b/Zend/tests/bug61011.phpt
new file mode 100644 (file)
index 0000000..e93ac17
--- /dev/null
@@ -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