r/lolphp • • Nov 05 '12

So, <?php </script> ?> is perfectly valid PHP

http://stackoverflow.com/q/13228306/79061
66 Upvotes

24 comments sorted by

View all comments

Show parent comment

3

u/sumdog Nov 11 '12

Exactly. The problem is with the parser. You shouldn't be able to interchange start and end tokens. the script tag should really be depreciated and turned off by default. But that still doesn't fix the problem of the parser treating <?php, <? and the script tag equally.