Fix issue with calling a unique, non-persistent method
[hiphop-php.git] / hphp / test / slow / locale / 173.php
blobd98ca4374f3756bb5132bc6d0253948c2d1d030f
1 <?php
3 class A {
4 public $a;
5 function __toString() {
6 return $this->a;
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]);