-
Notifications
You must be signed in to change notification settings - Fork 408
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
Comments before begin php tag returns json with garbage #569
Comments
So the reason why it's probably complain is because when you add My recommendation going forward would be to put your comments actually inside the |
To further add: it's not that comments written before This is by design and a great example of why is actually on the PHP wiki: <!DOCTYPE html>
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html> |
I already adjust all my PHP files, just a few for my first Flight API (and, in fact, my first ever PHP job) Thanks for the response. |
Congrats on your first job! I remember my first job and how exciting it was. Please keep in touch to see how we can help you be as successful as possible! |
When I add a comment before php begin tag (<?php), the json returned by Flight::json(...) includes the comment. For instance:
should return only :
but returns:
If the comment goes after <?php, it returns without garbage
In flight 2.0.2, with same php version (7.4), works fine
The text was updated successfully, but these errors were encountered: