com php-src: Add test: unmangling private properties in anon class instances: Zend/tests/anon/012.phpt
| From: | Joe Watkins | Date: | Thu, 06 Aug 2015 16:56:05 +0000 |
| Subject: | com php-src: Add test: unmangling private properties in anon class instances: Zend/tests/anon/012.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88597@lists.php.net to get a copy of this message | ||
Commit: de5d4d7b420adbee043fd3272d7c6d4949b095ea
Author: Steven Hilder <stevehilder@yahoo.co.uk> Thu, 6 Aug 2015 16:55:54 +0000
Parents: 7ecb761818c3adc7a650385a950a453867267248
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=de5d4d7b420adbee043fd3272d7c6d4949b095ea
Log:
Add test: unmangling private properties in anon class instances
Changed paths:
A Zend/tests/anon/012.phpt
Diff:
diff --git a/Zend/tests/anon/012.phpt b/Zend/tests/anon/012.phpt
new file mode 100644
index 0000000..d82f237
--- /dev/null
+++ b/Zend/tests/anon/012.phpt
@@ -0,0 +1,11 @@
+--TEST--
+Ensure correct unmangling of private property names for anonymous class instances
+--FILE--
+<?php
+var_dump(new class { private $foo; });
+?>
+--EXPECT--
+object(class@anonymous)#1 (1) {
+ ["foo":"class@anonymous":private]=>
+ NULL
+}