private static variable not running



I have the following codes,

<?
private static $instance;
?>

which fails at he private static line with the following error message:

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION
or T_FUNCTION or T_VAR or '}'

The above was run on linux with PHP 5.1, however the above codes run
fine on windows with the same PHP version. Any help please? I really
need to get my singleton running.

Thierry

.



Relevant Pages

  • session_start() fails
    ... I get the following error message. ... This php page runs okay on my desktop. ... get my laptop able to run the same web page but, as you can see, it fails. ... Bruce ...
    (comp.lang.php)
  • Re: Fortran77 & GUI
    ... But, assuming the user makes a mistake in the input file, ... he has to run the code first, check the error message that pops up on ... very familiar with developing similar codes. ... parameters are interacting (say, for large enough codes which address ...
    (comp.lang.fortran)
  • Re: Taking Ownership
    ... > have been able to determine is that the user id has the appropriate rights ... ostensibly on the language itself. ... When a function fails (and only if it ... fails so you need to check return codes or look at the EAX register if you ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Taking Ownership
    ... I have indeed been checking my return codes. ... The only one that fails is the ... > ostensibly on the language itself. ...
    (microsoft.public.dotnet.languages.vc)
  • RE: The field is too small to accept . . .
    ... Also you might be getting some non-printable ASCII characters that won't ... Also consider not using an input mask at all for the zipcode or phone ... Postal Codes in most countries look nothing like zip codes and won't fit the ... I tried everything to get this error message to stop. ...
    (microsoft.public.access.tablesdbdesign)