summaryrefslogtreecommitdiff
path: root/Zend/tests/varSyntax/static_prop_on_expr_class.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/varSyntax/static_prop_on_expr_class.phpt')
-rw-r--r--Zend/tests/varSyntax/static_prop_on_expr_class.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/varSyntax/static_prop_on_expr_class.phpt b/Zend/tests/varSyntax/static_prop_on_expr_class.phpt
new file mode 100644
index 0000000000..d17b6cdb0b
--- /dev/null
+++ b/Zend/tests/varSyntax/static_prop_on_expr_class.phpt
@@ -0,0 +1,13 @@
+--TEST--
+Accessing a static property on a statically evaluable class expression
+--FILE--
+<?php
+
+class A {
+ public static $b = 42;
+}
+var_dump(('A' . (string) '')::$b);
+
+?>
+--EXPECT--
+int(42)