Are you sure that's the function that is causing this? I compile it just fine.
FYI,
Do NOT use the prefix "sz" for something that is not a string. It makes your code extremely confusing! "sz" means "string, zero-terminated"
Your function should be tagged according to your return value. When you return true or false your function is a bool. AND, all your return values should be of the same type.
Unreachable code:
PHP Code:
return pEntity;
__________________