Parse error: syntax error, unexpected T_STRING
Posted: Sat Jul 24, 2010 10:29 pm
Hello,
I've just updated my PHP from 5.2 to 5.3.2 and got the following error:
Parse error: syntax error, unexpected T_STRING in /home/serendipity/include/functions_entries.inc.php on line 1433
On line 1433, the DELETE FROM lines have double quotes on four lines for $serendipity["dbPrefix"] where they should be $serendipity['dbPrefix']
serendipity_db_query("DELETE FROM {$serendipity["dbPrefix"]}entries WHERE i
serendipity_db_query("DELETE FROM {$serendipity["dbPrefix"]}entrycat WHERE
serendipity_db_query("DELETE FROM {$serendipity["dbPrefix"]}entryproperties
serendipity_db_query("DELETE FROM {$serendipity["dbPrefix"]}comments WHERE
serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}references WHER
serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}permalinks WHER
Oddly enough, this wasn't noticed by PHP 5.2
This is using serendipity 1.5.3 (tar.gz) from this website.
I've just updated my PHP from 5.2 to 5.3.2 and got the following error:
Parse error: syntax error, unexpected T_STRING in /home/serendipity/include/functions_entries.inc.php on line 1433
On line 1433, the DELETE FROM lines have double quotes on four lines for $serendipity["dbPrefix"] where they should be $serendipity['dbPrefix']
serendipity_db_query("DELETE FROM {$serendipity["dbPrefix"]}entries WHERE i
serendipity_db_query("DELETE FROM {$serendipity["dbPrefix"]}entrycat WHERE
serendipity_db_query("DELETE FROM {$serendipity["dbPrefix"]}entryproperties
serendipity_db_query("DELETE FROM {$serendipity["dbPrefix"]}comments WHERE
serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}references WHER
serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}permalinks WHER
Oddly enough, this wasn't noticed by PHP 5.2
This is using serendipity 1.5.3 (tar.gz) from this website.