logo       

[ phpeclipse-Bugs-1450608 ] Parser mistaking (Integer) casting in method ca: msg#00009

ide.eclipse.phpeclipse.devel

Subject: [ phpeclipse-Bugs-1450608 ] Parser mistaking (Integer) casting in method call for error.

Bugs item #1450608, was opened at 2006-03-15 12:56
Message generated for change (Comment added) made by lmpmbernardo
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=484801&aid=1450608&group_id=57621

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PHP Parser
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Rob (rbarreca)
Assigned to: Nobody/Anonymous (nobody)
Summary: Parser mistaking (Integer) casting in method call for error.

Initial Comment:
This line of code incorrectly gives a parser error.
I'm on Eclipse 3.1.2 and PHPeclipse CVS20060223.

Code:

phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(Integer)$CFG->cas_port,$CFG->cas_baseuri);

Error:

Parser error "')' expected in function call (phpCAS)."

----------------------------------------------------------------------

Comment By: Luis Bernardo (lmpmbernardo)
Date: 2006-04-07 00:28

Message:
Logged In: YES
user_id=137011

casting is done with (int) or (integer) but NOT (Integer).
see
http://www.php.net/manual/en/language.types.type-juggling.php.
I get the error you mention when using (Integer) but not
when using the other correct options. I don't think this is
a bug. It is true that php -l does not complain about the
syntax but I still think this is not a bug.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=484801&aid=1450608&group_id=57621


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise