Changeset 70ad55b in git


Ignore:
Timestamp:
2014-09-11T17:20:03Z (3 years ago)
Author:
Xuefer <xuefer@…>
Branches:
master, trunk
Children:
46d274f
Parents:
d2ed93e
Message:

update sample

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1529 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

Location:
devel
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • devel/sample.cpp.php

    rd2ed93e r70ad55b  
    2727#if PHP_VERSION >= 500
    2828    const CONST_VALUE = 'A constant value';
     29    const file = __FILE__;
     30#if PHP_VERSION >= 530
     31    const dir = __DIR__;
     32#endif
    2933
    3034    /** doc */
     
    289293        $a = $b || $c;
    290294#if PHP_VERSION >= 530
    291         echo $this::CONST_VALUE;
    292         echo $object::CONST_VALUE;
    293         echo CONST_VALUE;
     295        echo $this::CONST_VALUE, PHP_EOL;
     296        echo $object::CONST_VALUE, PHP_EOL;
     297        echo CONST_VALUE, PHP_EOL;
    294298        $this::method();
    295299        $object::method();
     
    650654}
    651655
    652 require 'require.php';
    653 require_once 'require_once.php';
    654 include 'include.php';
    655 include_once 'include_once.php';
     656require 'devel/require.php';
     657require_once 'devel/require_once.php';
     658include 'devel/include.php';
     659include_once 'devel/include_once.php';
    656660echo __FILE__;
    657661#if PHP_VERSION >= 530
Note: See TracChangeset for help on using the changeset viewer.