Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Re: weird parenth error (part II)


Message #1 by "Nikolai Devereaux" <yomama@u...> on Mon, 4 Feb 2002 23:35:37 -0800
oh, so anyway, the parse error is probably coming up because the parser will
expect a variable token.  All the characters up till the open paren are
probably being parsed as a T_VAR variable name and the first open paren
throws it a curve.  Its error message is pretty useful, in hindsight, since
chances are you hit shift-9 instead of shift-10 by accident.

nik


-----Original Message-----
From: Jaun Terblanché [mailto:jterblanche@a...]
Sent: Monday, February 04, 2002 10:57 PM
To: professional php
Subject: [pro_php] Re: weird parenth error


I tend to agree with Joel. I have tested this, and made sure I have all
parentheses right.
It seems as if the object's method call is not allowed in neither "empty"
nor "isset".
_______________________________
Jaun Terblanché
Chief Technology Officer
Aspivia (Pty) Ltd.

e-mail: jterblanche@a... <mailto:jterblanche@a...>

-----Original Message-----
From: Adam Lang [mailto:aalang@r...]
Sent: 04 February 2002 03:54
To: professional php
Subject: [pro_php] Re: weird parenth error


Only thing that comes to mind is that you missed a parentheses on a
preceding line.

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Joel Wickard" <jwickard@l...>
To: "professional php" <pro_php@p...>
Sent: Friday, February 01, 2002 8:31 PM
Subject: [pro_php] weird parenth error


> it seems that if I use this statement block:
>
> if(empty($myObject->getParam()))
>
> I get the following error:
>
> Parse error: parse error, expecting `')''
>
> this is an object created on another page, and registered as a session
> variable.  I have the class decleration included before I call
> session_start() so I don't thik I have a problem there.
>
> I know the object is valid, if I ditch the accessor method and just access
> the parameter, it works fine.
>
> anyone have any ideas?
>
>
>









  Return to Index