Arquivos
hhvm/hphp/test/vm/magic-get-set.php.exp
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
This change is mostly for FB internal organizational reasons.
Building is not effected beyond the fact that the target now
lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
2013-02-11 02:10:41 -08:00

72 linhas
773 B
Plaintext

set priv 1234
get priv
int(1234)
int(123)
object(C) (2) {
["priv":"C":private]=>
int(1234)
["pub"]=>
int(123)
}
set priv 6789
get priv
int(6789)
int(678)
object(C) (2) {
["priv":"C":private]=>
int(6789)
["pub"]=>
int(678)
}
******************************
__set foo
object(D) (1) {
["foo":protected]=>
NULL
}
__get foo
__set foo
object(D) (1) {
["foo":protected]=>
NULL
}
__get foo
__set foo
object(D) (1) {
["foo":protected]=>
NULL
}
******************************
object(E) (1) {
["foo"]=>
int(1)
}
__get foo
object(E) (1) {
["foo"]=>
int(1)
}
__get foo
object(E) (1) {
["foo"]=>
int(1)
}
******************************
__set foo
object(F) (0) {
}
object(F) (1) {
["foo"]=>
int(1)
}
object(F) (1) {
["foo"]=>
int(1)
}