Forum Moderators: coopster

Message Too Old, No Replies

line of code stopped working

singleton constant?

         

pixeltierra

7:33 pm on Oct 23, 2008 (gmt 0)

10+ Year Member



This line of code which was working for over a year, suddenly started producing an error (below):

$service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME;

Note the same error occurs with a fake constant:

$service = Zend_Gdata_Calendar::FAKE_CONSTANT;

Parse error: syntax error, unexpected ';', expecting '(' in /path/event_calendar.php on line 26

Could this be the result of a php configuration change on the shared host? If so, how can I fix it

surrealillusions

9:47 am on Oct 24, 2008 (gmt 0)

10+ Year Member



Might be something as simple as wrapping stuff in brackets

$service = (Zend_Gdata_Calendar::AUTH_SERVICE_NAME);

henry0

10:58 am on Oct 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



in July 2008
IBM in its develperworks (integrate your php application...) section use the very same type of script line.
As such I do not think that it comes from your script
unless change made above that line are interacting with it?

pixeltierra

4:04 pm on Oct 24, 2008 (gmt 0)

10+ Year Member



This did not work:

$service = (Zend_Gdata_Calendar::AUTH_SERVICE_NAME);

Parse error: syntax error, unexpected ')', expecting '(' in /home/colawnc3/public_html/en/event_calendar.php on line x

It seems as if the parser is expecting a function. The following line look likes like this and produce no errors:

$client = Zend_Gdata_ClientLogin::getHttpClient($user,$pass,$service);