Resolve __CLASS__ at compile time.
All checks were successful
The build was successful.

Ticket: #45: __CLASS__ constant must be resolved at compile time, not run time. Otherwise it returns incorrect data.
This commit is contained in:
2018-08-22 09:59:10 +02:00
parent 3e18a5b8e8
commit dbe373d537
2 changed files with 22 additions and 2 deletions

View File

@@ -1100,7 +1100,6 @@ static void PH7_static_Const(ph7_value *pVal, void *pUserData) {
}
/*
* self
* __CLASS__
* Expand the name of the current class. NULL otherwise.
*/
static void PH7_self_Const(ph7_value *pVal, void *pUserData) {
@@ -1274,7 +1273,6 @@ static const ph7_builtin_constant aBuiltIn[] = {
{"EXTR_PREFIX_IF_EXISTS", PH7_EXTR_PREFIX_IF_EXISTS_Const},
{"static", PH7_static_Const },
{"self", PH7_self_Const },
{"__CLASS__", PH7_self_Const },
{"parent", PH7_parent_Const }
};
/*