Php fix for enum value of '\0'
This commit is contained in:
parent
7339de974d
commit
539aca58a5
1 changed files with 3 additions and 2 deletions
|
|
@ -1904,7 +1904,7 @@ done:
|
|||
enumvalue = GetChar(n, "enumvalueex");
|
||||
}
|
||||
|
||||
if (enumvalue) {
|
||||
if (enumvalue && *Char(enumvalue)) {
|
||||
// Check for a simple constant expression which is valid in PHP.
|
||||
// If we find one, initialise the const member with it; otherwise
|
||||
// we initialise it using the C/C++ wrapped constant.
|
||||
|
|
@ -1916,7 +1916,8 @@ done:
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (!*p) set_to = enumvalue;
|
||||
if (!*p)
|
||||
set_to = enumvalue;
|
||||
}
|
||||
|
||||
if (wrapping_member_constant) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue