Home » PHP » PHP_Beautifier » Bug #7310
rewrite include/require to single quotes without ()
Details
| Request #7310 | rewrite include/require to single quotes without () |
|---|---|
| Submitted | 2006-04-05 12:01 UTC |
| From | pear at sebastianmendel dot de |
| Status | Bogus |
| Package | PHP_Beautifier |
| PHP Version | 5.1.2 |
| OS | Windows |
| Roadmaps | (Not assigned) |
Comments
[2006-04-05 12:01 UTC] pear at sebastianmendel dot de
Description:
------------
include("file"); becomes
include ("file"); but should become
include 'file'; following PEAR standard
Expected result:
----------------
include 'file';
Actual result:
--------------
incldue ("file");
[2006-06-06 03:42 UTC] clbustos at php dot net
Thank you for taking the time to write to us, but this is not
a bug.
If the developer use a expression inside the include or requiere, will be very tricky to compute where put the quotes or parenthesis.
Example:
include_once dirname(__FILE__)."/$test/".'nice';