diff options
author | Antony Dovgal <tony2001@php.net> | 2006-08-15 08:58:40 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-08-15 08:58:40 +0000 |
commit | 4ad05e0e0fde74da4226f47ca241f4ab5c2f055a (patch) | |
tree | 722463d9d7f6cfe6b6b1c7d5979f00f11e38563c /Zend/tests/bug38461.phpt | |
parent | c3209b53d2ca94ea9f48bcc8d4f77df0ebae90f8 (diff) | |
download | php-git-4ad05e0e0fde74da4226f47ca241f4ab5c2f055a.tar.gz |
add test
Diffstat (limited to 'Zend/tests/bug38461.phpt')
-rw-r--r-- | Zend/tests/bug38461.phpt | 25 |
1 files changed, 25 insertions, 0 deletions
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-- +<?php + +class Operation +{ + function __set( $var, $value ) + { + $this->$var = $value; + } +} + +class ExtOperation extends Operation +{ + private $x; +} + +$op = new ExtOperation; +$op->x = 'test'; + +echo "Done\n"; +?> +--EXPECT-- +Done |