Parse Error in my PHP Editor <- Fixed
-
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
- The topic ‘Parse Error in my PHP Editor <- Fixed’ is closed to new replies.