Browse Source

sample: remove \ from namespace sample

master
Xuefer 5 years ago
parent
commit
c3ed03701b
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      devel/sample.cpp.php

+ 3
- 6
devel/sample.cpp.php View File

@ -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


Loading…
Cancel
Save