You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Greetings. I observe strange behavior of the pie and reflection. when creating a class property using a php script with modifiers protected static - pie compiles in static as public and reflection points to this fact. is this a bug?
The text was updated successfully, but these errors were encountered:
This is by purpose; PHP static and .NET static behave differently. In PHP, a static property is static within the current request only. In .NET, static would be across all the requests.
To overcome this difference, PeachPie puts static properties into a nested class _statics, and creates a single instance for each request if needed.
Greetings. I observe strange behavior of the pie and reflection. when creating a class property using a php script with modifiers protected static - pie compiles in static as public and reflection points to this fact. is this a bug?
The text was updated successfully, but these errors were encountered: