PDA

View Full Version : A semicolon is missing in global.php



twolfram
Fri 30th Jun '00, 9:49pm
I'm using the latest vB 1.1.3 Beta 2 and I've just upgraded my PHP from version 4.0.0 to the latest 4.0.1pl2 (its compiled as a module into Apache 1.3.12; and running under HP-UX 10.20).
After restarting the server the vB forum greeted me with a PHP parse error in global.php, line 61, reason: a missing ';'. I checked it and there is indeed a semicolon missing:



// ###################### Start dovars #######################
function dovars($vartext) {
// parses replacement vars

global $DB_site // <-- here


Seems PHP 4.0.1pl2 is more strict or something.

twolfram
Fri 30th Jun '00, 10:00pm
Sorry for the old news. I didn't notice that it was already reported. (I searched for 'semicolon' in the forums before I was posting the message but of course it was reported before using only the ';' symbol...)