Interesting bug in PHP

Posted by Bakhtiyor on Stack Overflow See other posts from Stack Overflow or by Bakhtiyor
Published on 2010-06-05T21:00:48Z Indexed on 2010/06/05 21:02 UTC
Read the original article Hit count: 292

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about php

Related posts about bugs