From: Antony Dovgal Date: Tue, 15 Aug 2006 08:58:40 +0000 (+0000) Subject: add test X-Git-Tag: php-5.2.0RC2~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ad05e0e0fde74da4226f47ca241f4ab5c2f055a;p=php add test --- diff --git a/Zend/tests/bug38461.phpt b/Zend/tests/bug38461.phpt new file mode 100644 index 0000000000..281d999019 --- /dev/null +++ b/Zend/tests/bug38461.phpt @@ -0,0 +1,25 @@ +--TEST-- +Bug #38461 (setting private attribute with __set() produces segfault) +--FILE-- +$var = $value; + } +} + +class ExtOperation extends Operation +{ + private $x; +} + +$op = new ExtOperation; +$op->x = 'test'; + +echo "Done\n"; +?> +--EXPECT-- +Done