我似乎无法禁用在执行传统LAMP堆栈安装时默认启用的EXIF支持。
我无法想出任何比在php.ini文件中注释掉EXIF更好的东西。
;[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-unicode
;exif.encode_unicode = ISO-8859-15
虽然在注释掉[exif]
代码行并保存php.ini,停止服务器,然后再次启动服务器之后,我仍然收到phpinfo()函数信息,该信息表明EXIF确实仍然启用。 (见下图)