PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/php/pragmas/example.i

#
Swig | 31 lines | 22 code | 8 blank | 1 comment | 0 complexity | 5d24959d353aa69fae4b08e3a3ccdca5 MD5 | raw file
 1/* File : example.i */
 2%module example
 3
 4%init{
 5  zend_printf("This was %%init\n");
 6}
 7
 8%minit{
 9  zend_printf("This was %%minit\n");
10}
11
12%mshutdown{
13  zend_printf("This was %%shutdown\n");
14}
15
16%rinit{
17  zend_printf("This was %%rinit\n");
18}
19
20%rshutdown{
21  zend_printf("This was %%rshutdown\n");
22}
23
24%pragma(php) include="include.php";
25
26%pragma(php) code="
27# This code is inserted into example.php
28echo \"this was php code\\n\";
29"
30
31%pragma(php) phpinfo="php_info_print_table_start();"