andersonvom

Untitled

Jun 13th, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. class SomeObj {
  2.   public function test(&$foo) {
  3.     $foo++;
  4.   }
  5. }
  6.  
  7. // ...
  8.  
  9. $bar = 10;
  10. $someObj->test($bar);
  11. assert($bar == 10); // why is this not failing??? :(
Advertisement
Add Comment
Please, Sign In to add comment