News for hackers. Stuff that matters.
Re:Every C99.php shell is backdoored by ceejayoz on Tuesday June 24, 2014 @11:02AM (#7938123)
We typically handle that by having a $defaults array, then array_merge($defaults, $options) in the function.
Re:Every C99.php shell is backdoored by thefreeman on Tuesday June 24, 2014 @11:50AM (#7938405)
Yep, totally valid, and like I said basically a preference thing.

I personally like to work with explicit variables within the function rather then array indices. With your system I could easily call extract on your resulting array, but I also like defining the variables I want overridden explicitly in code so I my IDE doesn't think they are undefined (though JetBrains does a pretty good job of determining which variables are being created by extract in most scenarios anyway).