2 #include <php/Preprocessor.h>
3 #include <cpp/ext/ext.h>
6 ///////////////////////////////////////////////////////////////////////////////
10 Variant pm_php$
Preprocessor_php(bool incOnce
/* = false */, LVariableTable
* variables
/* = NULL */) {
11 FUNCTION_INJECTION(run_init::Preprocessor
.php
);
13 DECLARE_GLOBAL_VARIABLES(g
);
14 bool &alreadyRun
= g
->run_pm_php$Preprocessor_php
;
15 if (alreadyRun
) { if (incOnce
) return true;}
16 else alreadyRun
= true;
17 if (!variables
) variables
= g
;
19 DECLARE_GLOBAL_VARIABLES(g
);
20 LVariableTable
*gVariables
__attribute__((__unused__
)) = get_variable_table();
24 ///////////////////////////////////////////////////////////////////////////////