summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-09-11 17:20:03 +0000
committerXuefer <xuefer@gmail.com>2014-09-11 17:20:03 +0000
commit70ad55bed731a1eb4059cb959f877ae0c06362f2 (patch)
tree7114f5e5ad42347bdb910143d757be6e072e7ddc /devel
parentd2ed93ed41f439b5f9dfaf13cef64b053cae0cd0 (diff)
downloadxcache-70ad55bed731a1eb4059cb959f877ae0c06362f2.tar.gz
xcache-70ad55bed731a1eb4059cb959f877ae0c06362f2.zip
update sample
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1529 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'devel')
-rw-r--r--devel/include.php0
-rw-r--r--devel/include_once.php0
-rw-r--r--devel/require.php0
-rw-r--r--devel/require_once.php0
-rw-r--r--devel/sample.cpp.php18
5 files changed, 11 insertions, 7 deletions
diff --git a/devel/include.php b/devel/include.php
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/devel/include.php
diff --git a/devel/include_once.php b/devel/include_once.php
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/devel/include_once.php
diff --git a/devel/require.php b/devel/require.php
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/devel/require.php
diff --git a/devel/require_once.php b/devel/require_once.php
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/devel/require_once.php
diff --git a/devel/sample.cpp.php b/devel/sample.cpp.php
index b3f4674..6fe624d 100644
--- a/devel/sample.cpp.php
+++ b/devel/sample.cpp.php
@@ -26,6 +26,10 @@ abstract class ClassName
{
#if PHP_VERSION >= 500
const CONST_VALUE = 'A constant value';
+ const file = __FILE__;
+#if PHP_VERSION >= 530
+ const dir = __DIR__;
+#endif
/** doc */
static public $static = array(
@@ -288,9 +292,9 @@ abstract class ClassName
$a = $b && $c;
$a = $b || $c;
#if PHP_VERSION >= 530
- echo $this::CONST_VALUE;
- echo $object::CONST_VALUE;
- echo CONST_VALUE;
+ echo $this::CONST_VALUE, PHP_EOL;
+ echo $object::CONST_VALUE, PHP_EOL;
+ echo CONST_VALUE, PHP_EOL;
$this::method();
$object::method();
$a = $b ?: $d;
@@ -649,10 +653,10 @@ while ($a) {
$a = false;
}
-require 'require.php';
-require_once 'require_once.php';
-include 'include.php';
-include_once 'include_once.php';
+require 'devel/require.php';
+require_once 'devel/require_once.php';
+include 'devel/include.php';
+include_once 'devel/include_once.php';
echo __FILE__;
#if PHP_VERSION >= 530
echo __DIR__;