From 0158af37338297de9dd066abd7e4bc04be6d95f6 Mon Sep 17 00:00:00 2001 From: Xuefer Date: Mon, 16 Sep 2013 15:07:37 +0000 Subject: [PATCH] update decompile sample git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1373 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- mod_disassembler/sample.cpp.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mod_disassembler/sample.cpp.php b/mod_disassembler/sample.cpp.php index f635d67..fa1923a 100644 --- a/mod_disassembler/sample.cpp.php +++ b/mod_disassembler/sample.cpp.php @@ -30,12 +30,15 @@ abstract class ClassName 1 => 'str', CONST_VALUE => CONST_VALUE ); + static public $static2 = array(self::CONST_VALUE => self::CONST_VALUE); /** doc */ static public $public_static = array(2, 'str'); /** doc */ static private $private_static = array(2, 'str'); + static private $private_static2 = array(self::CONST_VALUE => self::CONST_VALUE); /** doc */ static protected $protected_static = array(2, 'str'); + static protected $protected_static2 = array(self::CONST_VALUE => self::CONST_VALUE); /** doc */ public $property = array( array('array'), @@ -576,7 +579,7 @@ echo preg_replace_callback('~-([a-z])~', function($match) { return strtoupper($match[1]); }, 'hello-world'); $greet = function($name) { - printf("Hello %s\r\n", $name); + printf('Hello %s' . "\r\n" . '', $name); }; $greet('World'); $greet('PHP');