diff --git a/Zend/tests/bug41075.phpt b/Zend/tests/bug41075.phpt new file mode 100644 index 00000000000..ddeb7cc0c38 --- /dev/null +++ b/Zend/tests/bug41075.phpt @@ -0,0 +1,31 @@ +--TEST-- +Bug #41075(memleak when creating default object caused exception) +--FILE-- +blah->prop = "string"; + var_dump($this->blah); + } +} + +$t = new test; +try { + $t->foo(); +} catch (Exception $e) { + var_dump($e->getMessage()); +} + +echo "Done\n"; +?> +--EXPECTF-- +string(40) "Creating default object from empty value" +Done