]> granicus.if.org Git - php/commitdiff
add test
authorAntony Dovgal <tony2001@php.net>
Tue, 15 Aug 2006 08:58:24 +0000 (08:58 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 15 Aug 2006 08:58:24 +0000 (08:58 +0000)
Zend/tests/bug38461.phpt [new file with mode: 0644]

diff --git a/Zend/tests/bug38461.phpt b/Zend/tests/bug38461.phpt
new file mode 100644 (file)
index 0000000..281d999
--- /dev/null
@@ -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