Browse Source

fix sample

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1527 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
master
Xuefer 7 years ago
parent
commit
d2ed93ed41
  1. 15
      devel/sample.cpp.php

15
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';

Loading…
Cancel
Save