Changeset 1529 in svn


Ignore:
Timestamp:
2014-09-11T17:20:03Z (3 years ago)
Author:
Xuefer
Message:

update sample

Location:
trunk/devel
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/devel/sample.cpp.php

    r1527 r1529  
    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.