Interesting bug in PHP
- by Bakhtiyor
Here in the following block of program it prints 2 instead of 1.
<?php
f(0, $$var);
$x = 1;
$y = 2;
echo $x;
function f($a, $b) {}
?>
Any suggestions?
UPDATED
This information has been get from http://habrahabr.ru/blogs/php/95595