>> Ok, nice solution, but I still don't see why json_encode ignores
>> protected/private class members. I mean,  why we need this feature.
>
> Because, in theory, it shouldn't even be able to see those members?
>

Stefan's right. Unless you are in the local scope or inheriting the
object you shouldn't be able to see those variables. And I have yet to
see

classs Name extends json_decode($jsonValues) { }

That's the point in having access modifiers. Unless I'm mistaking
there's no bug there.



-- 
Slan,
David

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to