summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-09-11 17:09:30 +0000
committerXuefer <xuefer@gmail.com>2014-09-11 17:09:30 +0000
commitd2ed93ed41f439b5f9dfaf13cef64b053cae0cd0 (patch)
tree2f2da3ba58863b9de15d92f56ba7da2f8757909a /devel
parentaa0709e71ab81e89b21b4244c6923b6aadc45a3a (diff)
downloadxcache-d2ed93ed41f439b5f9dfaf13cef64b053cae0cd0.tar.gz
xcache-d2ed93ed41f439b5f9dfaf13cef64b053cae0cd0.zip
fix sample
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1527 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'devel')
-rw-r--r--devel/sample.cpp.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/devel/sample.cpp.php b/devel/sample.cpp.php
index 7a90d8c..b3f4674 100644
--- a/devel/sample.cpp.php
+++ b/devel/sample.cpp.php
@@ -18,6 +18,8 @@
namespace ns;
#define _Exception \Exception
+#else
+#define _Exception Exception
#endif
abstract class ClassName
@@ -233,6 +235,14 @@ abstract class ClassName
$a ^= $b;
$a = 'a' . 'b';
$a = 'a' . 'abc';
+ $a = __FILE__;
+#if PHP_VERSION >= 530
+ $a = __DIR__;
+#endif
+ $a = 'a' . __FILE__;
+#if PHP_VERSION >= 530
+ $a = 'a' . __DIR__;
+#endif
@f1();
print('1');
$array = array('index' => 1);
@@ -304,11 +314,11 @@ abstract class ClassName
}
#endif
}
+#if PHP_VERSION >= 500
public function __destruct()
{
}
-#if PHP_VERSION >= 500
/** doc */
abstract public function abstractMethod();
@@ -644,6 +654,9 @@ require_once 'require_once.php';
include 'include.php';
include_once 'include_once.php';
echo __FILE__;
+#if PHP_VERSION >= 530
+echo __DIR__;
+#endif
echo __LINE__;
#if PHP_VERSION >= 530
echo 'goto a';