The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Bizarro PHP bug by MrTrick2007-07-09 21:05:50
  Silly me maybe but what happens if you add 11 to by Danu2007-07-09 21:13:40
    The array itself isn't altered. by MrTrick 2007-07-09 21:18:38
If you put 'var_dump($numbers);' after the rest of the code, it shows that.

It's only if you use the same inside variable name, and have the first being by reference and the second not.

$num, $num - no bug.
&$num, $num - BUG.
$num, &$num - no bug.
&$num, &$num - no bug.
&$num, $foo - no bug.
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)