Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with old versions of PHP from 5.2.17 (inclusively). #3

Open
jackka opened this issue Mar 7, 2014 · 0 comments
Open

Comments

@jackka
Copy link

jackka commented Mar 7, 2014

Hello Alex,
Your fork it is great extension for the initial code and I use just it with pleasure. But I've faced with 5.2.17 PHP incompatibility when I tried to trace some big project which was written with an old PHP version. I thought that debugging tools have to have maximum of compatibility, because we do not know how ancient their bugs will be. :)
Do you agree with me? :)

If you want, you can see how I worked around the issue here jackka@9820700. But it just quick fix and this variant would be nicer if the anonymous functions will be rewritten in old style like functions which have names and without closure. If I'll have time, I do it myself. But unfortunately I'm not sure.

Thanks in advance.

P.S.
Addition info.
Error messages were the following:
"Parse error: syntax error, unexpected T_FUNCTION in C:\apache\Apache2\htdocs\xdebug-trace-gui\noutrace.class.php on line 77"
and then:
"Parse error: syntax error, unexpected T_FUNCTION in C:\apache\Apache2\htdocs\xdebug-trace-gui\trace.config.php on line 34"

Links with explanations where I've got an info for my quick fix:

  1. Suggestion how to increase compatibility with create_function using: http://stackoverflow.com/questions/4949573/parse-error-syntax-error-unexpected-t-function-line-10-help
  2. Short example how to use create_function:
    http://stackoverflow.com/questions/13362606/parse-error-syntax-error-unexpected-t-function-in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant