• wilh

    (@wilh)


    This is from the 1.5 Strayhorn distrubution.

    In my wp-admin/upgrade-functions.php file, I’m getting a PHP error, that I’m not really sure is an error. (I’m not an expert with PHP.. yet 🙂 ) But I wanted to run it by you guys here before I report a bug with the PHPEclipse plugin which I’m using for my editing.

    Lines 412-417:

    412: if($tablefield->Default != $default_value)
    413: {
    414: // Add a query to change the column's default value
    415: $cqueries[] = "ALTER TABLE {$table} ALTER COLUMN {$tablefield->Field} SET DEFAULT '{$default_value}'";
    416: $for_update[$table.'.'.$tablefield->Field] = "Changed default value of {$table}.{$tablefield->Field} from {$tablefield-><strong>Default</strong>} to {$default_value}";
    417: }

    The bold instance of Default (on line 416) is causing an error, “String or variable token expected.” Is this really a problem, or is there a bug in the the PHPEclipse parsing engine?

    Thanks,

    Wil

Viewing 1 replies (of 1 total)
  • Thread Starter wilh

    (@wilh)

    Ok, well, after running an external parser on this file, I was able to convince myself that it was, indeed, valid PHP. Even more to my surprise, aften I did that, the error disappeared from Eclipse…. very sneaky if you ask me.

    In any case, not an issue now.

    Wil

Viewing 1 replies (of 1 total)
  • The topic ‘Parse Error in my PHP Editor <- Fixed’ is closed to new replies.