为什么“戴维京角的海盗"出现在php_info()输出中? [英] Why does a "Viking with hat with horn" appears in php_info() output?

查看:91
本文介绍了为什么“戴维京角的海盗"出现在php_info()输出中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行 phpinfo() 时,右上角会出现一个奇怪的图像.是PHP徽标.

A strange image appeared in the top right when running phpinfo() Normally there was the PHP logo.

这是怎么回事?如何避免这种情况?

What is going on? How can I avoid this?

我的代码:

<?php
phpinfo();

推荐答案

这是

复活节彩蛋是故意的内在笑话,隐藏的消息或诸如计算机程序,视频游戏或DVD菜单屏幕之类的交互式作品中的功能.

An Easter egg is an intentional inside joke, hidden message, or feature in an interactive work such as a computer program, video game or DVD menu screen.

PHP源代码您可以找到这些行:

if (ta && (ta->tm_mon==3) && (ta->tm_mday==1)) {
    php_info_print(PHP_EGG_LOGO_DATA_URI "\" alt=\"PHP logo\" /></a>");
} else {
    php_info_print(PHP_LOGO_DATA_URI "\" alt=\"PHP logo\" /></a>");
}

在第四个月的第一天(4月1日),它对php_info()上的徽标进行了特殊处理". ;-)

On the first day of the fourth month (1th of April) it does "something special" to the logo on the php_info(). ;-)

为避免这些笑话" 使用expose_php=off配置PHP .

To avoid those "jokes" configure PHP with expose_php=off.

可以在 http://www.0php上找到一些历史悠久的PHP复活节彩蛋徽标的不错集合. .com/php_easter_egg.php

这篇关于为什么“戴维京角的海盗"出现在php_info()输出中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆