├── www
├── .hhconfig
├── index.php
├── xhp
│ ├── php-lib
│ │ ├── init.php
│ │ ├── html.php
│ │ └── core.php
│ ├── tests
│ │ ├── logical-op.phpt
│ │ ├── whitespace-03.phpt
│ │ ├── whitespace-02.phpt
│ │ ├── whitespace-07.phpt
│ │ ├── attr-blank.phpt
│ │ ├── whitespace-04.phpt
│ │ ├── whitespace-06.phpt
│ │ ├── attr-entity.phpt
│ │ ├── whitespace-01.phpt
│ │ ├── whitespace-05.phpt
│ │ ├── attr-float.phpt
│ │ ├── presumptous.phpt
│ │ ├── attr-callable.phpt
│ │ ├── attr-quotes.phpt
│ │ ├── class.phpt
│ │ ├── script-fastpath.php
│ │ ├── stack-balance-fail.phpt
│ │ ├── apos-fastpath.phpt
│ │ ├── array-constant.phpt
│ │ ├── idx-01.phpt
│ │ ├── class-constants.phpt
│ │ ├── json_array.phpt
│ │ ├── reflection-01.phpt
│ │ ├── xhp-function-param.phpt
│ │ ├── reflection-02.phpt
│ │ ├── trait.phpt
│ │ ├── lineno-02.phpt
│ │ ├── reflection-07.phpt
│ │ ├── attributes.phpt
│ │ ├── reflection-06.phpt
│ │ ├── syntax-error-lineno.phpt
│ │ ├── xhp_preprocess_code.phpt
│ │ ├── lineno-01.phpt
│ │ ├── reflection-05.phpt
│ │ ├── reflection-03.phpt
│ │ ├── reflection-04.phpt
│ │ ├── yield-03.phpt
│ │ ├── anonymous_function.phpt
│ │ ├── yield-01.phpt
│ │ ├── new_call.phpt
│ │ ├── finally.phpt
│ │ ├── reflection-08.phpt
│ │ ├── yield-02.phpt
│ │ ├── array-types.phpt
│ │ ├── idx-04.phpt
│ │ ├── xhp_comment.phpt
│ │ ├── lib.php
│ │ ├── idx-03.phpt
│ │ ├── heredoc.phpt
│ │ └── idx-02.phpt
│ ├── Makefile.frag
│ ├── config.m4
│ ├── xhp
│ │ ├── Makefile
│ │ ├── xhp_preprocess.hpp
│ │ ├── code_rope.hpp
│ │ ├── fastpath.hpp
│ │ ├── xhpize.cpp
│ │ ├── xhp_preprocess.cpp
│ │ ├── code_rope.cpp
│ │ ├── xhp.hpp
│ │ ├── fastpath.re
│ │ └── scanner.l
│ ├── INSTALL
│ ├── ext.hpp
│ ├── LICENSE.ZEND
│ ├── LICENSE.PHP
│ ├── README.textile
│ └── ext.cpp
├── hello
│ └── index.php
├── collections
│ └── index.php
├── type-checker
│ └── index.php
├── attributes
│ └── index.php
├── promotion
│ └── index.php
├── types
│ └── index.php
└── hhxhp
│ └── index.php
├── .gitignore
├── conf
├── php.ini
├── nginx-fastcgi
└── config.hdf
├── Vagrantfile
└── README.md
/www/.hhconfig:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .vagrant
2 |
--------------------------------------------------------------------------------
/www/index.php:
--------------------------------------------------------------------------------
1 | ;
7 | --EXPECT--
8 | 1
9 |
--------------------------------------------------------------------------------
/www/xhp/tests/whitespace-03.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Whitespace 03
3 | --FILE--
4 | {'a'} ;
7 | --EXPECT--
8 | a
9 |
--------------------------------------------------------------------------------
/www/xhp/tests/whitespace-02.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Whitespace 02
3 | --FILE--
4 | {'a'};
7 | --EXPECT--
8 | a
9 |
--------------------------------------------------------------------------------
/www/xhp/tests/whitespace-07.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Whitespace 07
3 | --FILE--
4 | a{ 'b' }c ;
7 | --EXPECT--
8 | abc
9 |
--------------------------------------------------------------------------------
/www/xhp/tests/attr-blank.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Blank attribute
3 | --FILE--
4 | ;
7 | echo "pass";
8 | --EXPECT--
9 | pass
10 |
--------------------------------------------------------------------------------
/www/xhp/tests/whitespace-04.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Whitespace 04
3 | --FILE--
4 | {'a'} ;
7 | --EXPECT--
8 | a
9 |
--------------------------------------------------------------------------------
/www/xhp/tests/whitespace-06.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Whitespace 06
3 | --FILE--
4 | a { 'b' } c ;
7 | --EXPECT--
8 | a b c
9 |
--------------------------------------------------------------------------------
/www/xhp/tests/attr-entity.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Entities in attributes
3 | --FILE--
4 | c;
7 | echo "pass";
8 | --EXPECT--
9 | pass
10 |
--------------------------------------------------------------------------------
/www/xhp/tests/whitespace-01.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Whitespace 01
3 | --FILE--
4 |
7 |
8 | .
9 | ;
10 | --EXPECT--
11 | .
12 |
--------------------------------------------------------------------------------
/www/xhp/tests/whitespace-05.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Whitespace 05
3 | --FILE--
4 |
8 | foo
9 | ;
10 | --EXPECT--
11 | foo
12 |
--------------------------------------------------------------------------------
/www/xhp/tests/attr-float.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Float attribute parsing
3 | --FILE--
4 | hi>;
7 | echo "pass";
8 | --EXPECT--
9 | pass
10 |
--------------------------------------------------------------------------------
/www/xhp/tests/attr-callable.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Callable attribute parsing
3 | --FILE--
4 | c;
8 | --EXPECT--
9 | c
10 |
--------------------------------------------------------------------------------
/www/xhp/tests/class.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | XHP Classes
3 | --FILE--
4 | bar;');
7 | echo isset($foo['new_code']);
8 | --EXPECT--
9 | 1
10 |
--------------------------------------------------------------------------------
/www/xhp/tests/stack-balance-fail.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Stack Balance Fail
3 | --FILE--
4 | ;
7 | function f() {}
8 | echo 'pass';
9 | --EXPECT--
10 | pass
11 |
--------------------------------------------------------------------------------
/www/xhp/tests/apos-fastpath.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Apostrophe Fastpath
3 | --FILE--
4 | Her\'s;foo(\'\');');
7 | echo isset($foo['new_code']);
8 | --EXPECT--
9 | 1
10 |
--------------------------------------------------------------------------------
/www/xhp/tests/array-constant.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Constant in Array
3 | --FILE--
4 | :foo::bar);
9 | echo $foo['etc'];
10 | --EXPECT--
11 | pass
12 |
--------------------------------------------------------------------------------
/www/xhp/tests/idx-01.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | XHP idx Expression 01
3 | --INI--
4 | xhp.idx_expr=1
5 | --FILE--
6 | 'etc',
10 | );
11 | }
12 | echo foo()['bar'];
13 | --EXPECT--
14 | etc
15 |
--------------------------------------------------------------------------------
/www/xhp/Makefile.frag:
--------------------------------------------------------------------------------
1 | XHP_SHARED_DEPENDENCIES = $(srcdir)/xhp/libxhp.a
2 | XHP_SHARED_LIBADD := ${XHP_SHARED_LIBADD}
3 | $(srcdir)/ext.cpp: $(srcdir)/xhp/libxhp.a
4 | $(srcdir)/xhp/libxhp.a: FORCE
5 | $(MAKE) $(MFLAGS) -C $(srcdir)/xhp libxhp.a
6 |
7 | FORCE:
8 |
--------------------------------------------------------------------------------
/www/xhp/tests/class-constants.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | XHP Class Attributes
3 | --FILE--
4 |
7 | --FILE--
8 | getDocComment();
8 | exit;
9 | ;
10 | --EXPECT--
11 | /** b */
12 |
--------------------------------------------------------------------------------
/www/xhp/tests/xhp-function-param.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | XHP Function Call Param
3 | --FILE--
4 | )->exist();
10 | echo 'pass';
11 | --EXPECT--
12 | pass
13 |
--------------------------------------------------------------------------------
/www/xhp/tests/reflection-02.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Reflection API 02
3 | --FILE--
4 | getDocComment();
8 | exit;
9 | ;
10 | --EXPECT--
11 | /** d */
12 |
--------------------------------------------------------------------------------
/www/xhp/tests/trait.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | PHP5.4 Traits work
3 | --FILE--
4 | var;
16 | --EXPECT--
17 | 5
--------------------------------------------------------------------------------
/www/hello/index.php:
--------------------------------------------------------------------------------
1 |
8 |
9 | {$hello}!
10 |
11 |
12 | {$hello}
13 |
14 |