callback syntax not valid in phalanger tools for VS
Posted: March 10th, 2013, 7:26 pm
Hi there,
The following syntax is not valid neither for Phalanger nor PHP using the Phalanger Tools for VS (for VS2012) version 3.0.4069.
The error is:
Syntax error: unexpected token 'myCallbackFunction'
Is the same for either PHP or Phalanger Console Application project.
Is this a bug in the PHP tools or are PHP callbacks not supported?
Thanks
Carlos
The following syntax is not valid neither for Phalanger nor PHP using the Phalanger Tools for VS (for VS2012) version 3.0.4069.
- Code: Select all
<?php
echo "Hello World!\n";
fgets(STDIN);
$callback = function myCallbackFunction()
{
echo "callback achieved";
}
call_user_func($callback);
?>
The error is:
Syntax error: unexpected token 'myCallbackFunction'
Is the same for either PHP or Phalanger Console Application project.
Is this a bug in the PHP tools or are PHP callbacks not supported?
Thanks
Carlos