summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2015-06-25 12:15:04 +0800
committerXuefer <xuefer@gmail.com>2015-07-03 13:06:29 +0800
commitc3ed03701bfae835550d610291fadbbe1a414066 (patch)
tree930f465face4d0a6e9ed6c316015b1df0bfe1004 /devel
parentb1c2e3462d757f6978428038ea63a79aaa9d2546 (diff)
downloadxcache-c3ed03701bfae835550d610291fadbbe1a414066.tar.gz
xcache-c3ed03701bfae835550d610291fadbbe1a414066.zip
sample: remove \ from namespace sample
Diffstat (limited to 'devel')
-rw-r--r--devel/sample.cpp.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/devel/sample.cpp.php b/devel/sample.cpp.php
index fa7ad61..db767ff 100644
--- a/devel/sample.cpp.php
+++ b/devel/sample.cpp.php
@@ -17,9 +17,6 @@
#if PHP_VERSION >= 530
namespace ns;
-#define _Exception \Exception
-#else
-#define _Exception Exception
#endif
abstract class ClassName
@@ -181,10 +178,10 @@ abstract class ClassName
#if PHP_VERSION >= 500
try {
- throw new _Exception();
- new _Exception();
+ throw new Exception();
+ new Exception();
}
- catch (_Exception $e) {
+ catch (Exception $e) {
}
#endif