Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is tab injection?

Tags:

php

standards

Reading on the zend framework coding standard I found this phrase:

Editors should be configured to treat tabs as spaces in order to prevent injection of tab characters into the source code.

And my question is: what is tab injection? I searched google but I did find this phrase in a lot of standards, so I 'm not really sure what it refers to.

like image 319
Iznogood Avatar asked Dec 07 '22 19:12

Iznogood


2 Answers

It's nothing special, just a fancy way of saying "we don't want tabs in our source code".

As stated on the link you provide, Zend coding standards mandate that whitespace in source files must not include tabs -- all indentation must be done with spaces.

like image 71
Jon Avatar answered Dec 10 '22 11:12

Jon


"Tab injection" means the insertion of a tab as an indentation character.

like image 43
Sean Bright Avatar answered Dec 10 '22 13:12

Sean Bright