nalio / asterisk-voicemail-for-iphone

Automatically exported from code.google.com/p/asterisk-voicemail-for-iphone
0 stars 0 forks source link

php error #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. go to http://server/iphone/listen.php
2. print error Parse error: parse error, unexpected '&', expecting
T_VARIABLE or '$' in /var/www/iphone/i_functions.php on line 575
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
debian. asterisk 1.2

Please provide any additional information below.

Original issue reported on code.google.com by adriavi...@gmail.com on 9 Jul 2008 at 5:00

GoogleCodeExporter commented 9 years ago
line 575 in i_functions.php

foreach ($arrExtensions as &$strExtension) {

was broken for me till changed to

    foreach ($arrExtensions as $strExtension) {

same error into the same file some lines below

Original comment by adriavi...@gmail.com on 10 Jul 2008 at 11:35

GoogleCodeExporter commented 9 years ago
also line 628

Thanks @adriavidal

Original comment by 808blog...@gmail.com on 23 Jul 2008 at 6:16

GoogleCodeExporter commented 9 years ago
Turns out that PHP5 doesnt need those & signs so I removed them in v0.12
Now the application will be happy with both PHP4 and PHP5

Original comment by chris.ca...@gmail.com on 23 Sep 2008 at 3:44