[wp-hackers] Have I gone mad?

Otto otto at ottodestruct.com
Mon Apr 29 12:05:06 UTC 2013


On Mon, Apr 29, 2013 at 2:46 AM, David Anderson <david at wordshell.net> wrote:
> How can that happen??

Well, short version is that it can't, and as far as I can tell, it doesn't.

$ php -v
PHP 5.3.6 (cli) (built: Jan  9 2012 16:07:22)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

$ cat test.php
<?php

$_POST = unserialize('a:3:{s:6:"action";s:15:"updraft_restore";s:16:"backup_timestamp";s:10:"1366984477";s:15:"updraft_restore";a:5:{i:0;s:7:"plugins";i:1;s:6:"themes";i:2;s:7:"uploads";i:3;s:6:"others";i:4;s:2:"db";}}');

if (!isset($_POST['updraft_restore']) || !is_array($_POST['updraft_restore'])) {
        echo 'yup';
} else {
        echo 'nope';
}

$ php test.php
nope



So, maybe find out what PHP version he has, and/or try some extra
parenths, or something along those lines.

-Otto


More information about the wp-hackers mailing list