repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix issue with calling a unique, non-persistent method
[hiphop-php.git]
/
hphp
/
test
/
slow
/
locale
/
173.php
blob
d98ca4374f3756bb5132bc6d0253948c2d1d030f
1
<
?php
2
3
class
A
{
4
public
$a
;
5
function
__toString
() {
6
return
$this
->
a
;
7
}
8
}
9
$a
=
new
A
;
10
$a
->
a
=
'a'
;
11
$b
=
new
A
;
12
$b
->
a
=
'b'
;
13
$arr
=
array
(
$a
,
$b
);
14
sort
(
$arr
,
SORT_REGULAR
);
15
print
((
string
)
$arr
[
0
]);