simbor / google-api-adwords-php

Automatically exported from code.google.com/p/google-api-adwords-php
Apache License 2.0
0 stars 0 forks source link

Parse error: syntax error CampaignFeedService.php #101

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Which version of the library are you using?
4.4.0
adword version 201306

Which version of PHP are you using?
5.4.4 windows7 64bit

What steps will reproduce the problem?
call $campaignFeedService = $user->getService('CampaignFeedService', 'v201306');

What is the expected output? 

What do you see instead?
i see "Parse error: syntax error, unexpected 'Function' (T_FUNCTION), expecting 
identifier (T_STRING) in CampaignFeedService.php on line 720".

Please provide any additional information below.

I think because 
"class Function {...}" in CampaignFeedService.php use php "function" reserved 
word.

Original issue reported on code.google.com by fatg...@gmail.com on 15 Jul 2013 at 7:41

GoogleCodeExporter commented 8 years ago
I'm having this issue as well, php 5.4.13 on RedHat Enterprise 6.4 64bit kernel 
2.6.32

I agree with the above posters hypothesis, 'function' is a reserved word in php.

Original comment by ryanjf...@gmail.com on 17 Jul 2013 at 12:40

GoogleCodeExporter commented 8 years ago
I'm looking into this, I'll update this ticket as soon as I have any further 
information.

Regards,

- Paul, AdWords API Team.

Original comment by api.pmat...@gmail.com on 22 Jul 2013 at 2:19

GoogleCodeExporter commented 8 years ago
This should be fixed in the latest version release (4.5.0).

Commit:
https://code.google.com/p/google-api-adwords-php/source/detail?r=1b1c5765ca5de8e
90063ca7b51e377a97ff50b98

Downloads:
https://code.google.com/p/google-api-adwords-php/downloads/list

Cheers,

- Paul, AdWords API Team.

Original comment by api.pmat...@gmail.com on 26 Jul 2013 at 12:39

GoogleCodeExporter commented 8 years ago
Thank you very much.

Original comment by fatg...@gmail.com on 27 Jul 2013 at 1:28