From 2c6b600a90731651285a22c3fef3fae49e1b8f36 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Thu, 10 Feb 2005 22:55:52 +0000 Subject: [PATCH] test case for Bug #30266 --- ext/xml/tests/bug30266.phpt | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 ext/xml/tests/bug30266.phpt 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 -- 2.50.1