File tree Expand file tree Collapse file tree 1 file changed +2
-26
lines changed
Expand file tree Collapse file tree 1 file changed +2
-26
lines changed Original file line number Diff line number Diff line change 55 >
66 <standard >
77 <![CDATA[
8- Debug functions should not be used in production code.
8+ Debug functions, like var_dump() and print_r(), should not be used in production code.
99 ]]>
1010 </standard >
11- <code_comparison >
12- <code title =" Valid: Not using debug functions." >
13- <![CDATA[
14- // Code without debug functions.
15- ]]>
16- </code >
17- <code title =" Invalid: Calling a debug function." >
18- <![CDATA[
19- <em>var_dump( $bar );</em>
20- ]]>
21- </code >
22- </code_comparison >
2311 <standard >
2412 <![CDATA[
25- Functions that can lead to full path disclosure should not be used.
13+ Functions that can lead to full path disclosure, like phpinfo(), should not be used.
2614 ]]>
2715 </standard >
28- <code_comparison >
29- <code title =" Valid: Not using functions that can lead to full path disclosure." >
30- <![CDATA[
31- // No full path disclosure functions.
32- ]]>
33- </code >
34- <code title =" Invalid: Using a function that can lead to full path disclosure." >
35- <![CDATA[
36- <em>phpinfo();</em>
37- ]]>
38- </code >
39- </code_comparison >
4016</documentation >
You can’t perform that action at this time.
0 commit comments