From: Hartmut Holzgraefe Date: Thu, 10 Feb 2005 22:55:52 +0000 (+0000) Subject: test case for Bug #30266 X-Git-Tag: RELEASE_0_2_2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c6b600a90731651285a22c3fef3fae49e1b8f36;p=php test case for Bug #30266 --- diff --git a/ext/xml/tests/bug30266.phpt b/ext/xml/tests/bug30266.phpt new file mode 100644 index 0000000000..ebc0a270c7 --- /dev/null +++ b/ext/xml/tests/bug30266.phpt @@ -0,0 +1,48 @@ +--TEST-- +Bug #30266 (Invalid opcode 137/1/8) +--FILE-- +dummy = "b"; + throw new Exception("ex"); + } + + function endHandler($XmlParser, $tag) + { + } +} + +$p1 = new Xml_Parser(); +try { + $p1->parse(''); +} catch (Exception $e) { + echo "OK\n"; +} +?> +--EXPECT-- +OK