Home  >  Article  >  php教程  >  PHP 中的BOM BUG

PHP 中的BOM BUG

WBOY
WBOYOriginal
2016-06-06 19:47:481821browse

对于PHP,一个小小让我不敢置信的事情很多,包括引用变量哪么迟钝,普通变量哪么牛B我己经很意外,甚至现在竟然出现了BOM头的BUG。 在PHP中,会引用很多小文件,include或require,哪么比如你require了一个源文件有BOM,哪么输出结果都会有BOM。这很不理智,

  对于PHP,一个小小让我不敢置信的事情很多,包括引用变量哪么迟钝,普通变量哪么牛B我己经很意外,甚至现在竟然出现了BOM头的BUG。

    在PHP中,会引用很多小文件,include或require,哪么比如你require了一个源文件有BOM,哪么输出结果都会有BOM。这很不理智,我觉得应该第一个文件决定有木有BOM。我觉得不可能会是哪样,PHP又一次挑战了我的底线,尼马的BAGA,浪费了一下午时间!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:jsp与php混用的漏洞Next article:php常用内置函数