php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67470 Php parser error, code execution in commentary
Submitted: 2014-06-19 04:36 UTC Modified: 2014-06-19 07:43 UTC
From: grillexx at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.4Git-2014-06-19 (snap) OS: All
Private report: No CVE-ID: None
 [2014-06-19 04:36 UTC] grillexx at gmail dot com
Description:
------------
// This bug is in the parser I“think :
// Execute code in commentary Example:

// php is for you ?> <? echo "YESSS"; exit();

// I found it when doing regex with : ".+?>"

#Thanks
#Yuri Grille


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-06-19 04:43 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2014-06-19 04:43 UTC] requinix@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



 [2014-06-19 07:43 UTC] nikic@php.net
-Status: Feedback +Status: Not a bug
 [2014-06-19 07:43 UTC] nikic@php.net
?> terminates single line comments. Primarily this is done to easy commenting in mixed PHP&HTML code.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 23:00:01 2026 UTC