summaryrefslogtreecommitdiff
path: root/Zend/tests/bug76754.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug76754.phpt')
-rw-r--r--Zend/tests/bug76754.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Zend/tests/bug76754.phpt b/Zend/tests/bug76754.phpt
new file mode 100644
index 0000000000..424f1fbffc
--- /dev/null
+++ b/Zend/tests/bug76754.phpt
@@ -0,0 +1,18 @@
+--TEST--
+Bug #76754 (parent private constant in extends class memory leak)
+--INI--
+opcache.enable=0
+opcache.enable_cli=0
+--FILE--
+<?php
+
+class FOO
+{
+ private const FOO = 'BAR';
+}
+
+class BAR extends FOO { }
+?>
+okey
+--EXPECT--
+okey