[wp-hackers] Corrupt Plugin files
Iain Cambridge
wackiebackie at gmail.com
Tue Dec 7 10:14:28 UTC 2010
It just throws a fatal error if a non array variable is put into the
function. I have no idea why I use it tho.
Example http://codepad.org/zNIoJIg7
Iain
On Tue, Dec 7, 2010 at 10:08 AM, Ozh <ozh at ozh.org> wrote:
>> > 19 function wpsqt_functions_send_mail( array $results ){
>> Remove "array" there and it'll function as expected.
>>
>
> I didn't know about this parameter type casting...
> Is it equivalent to:
> myfunc( $result = array() ) {
> $result = (array)$result;
> ...
> }
>
> ?
>
> Ozh
>
> --
> http://ozh.org/
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list