PHP İlginç bug [kapalı]

0 Cevap

Burada program, aşağıdaki blokta yerine 1 2 basar.

<?php
 f(0, $$var);
 $x = 1;
 $y = 2;
 echo $x;
 function f($a, $b) {}
?>

Any suggestions?
UPDATE 1
This information has been get from http://habrahabr.ru/blogs/php/95595
UPDATE 2
By posting this question mainly I just wanted to 1) inform others about this bug, 2) get ideas of different users about the reasons of why this happens.

0 Cevap