为什么开启 debug 选项编译的 PHP 会比不开的大小小那么多?不合乎常理哦
ubt@ubt:/mnt/disk$ php7WithDebug/bin/php -i | grep configure
Configure Command => './configure' '--prefix=/mnt/disk/php7WithDebug' '--with-config-file-path=/mnt/disk/php7WithDebug/etc' '--enable-debug' '--disable-all'
ubt@ubt:/mnt/disk$ php7WithoutDebug/bin/php -i | grep configure
Configure Command => './configure' '--prefix=/mnt/disk/php7WithoutDebug' '--with-config-file-path=/mnt/disk/php7WithoutDebug/etc' '--disable-debug' '--disable-all'
ubt@ubt:/mnt/disk$ ls -ush php7WithDebug/bin/php
9.3M php7WithDebug/bin/php
ubt@ubt:/mnt/disk$ ls -ush php7WithoutDebug/bin/php
17M php7WithoutDebug/bin/php
这个我知道了,呵呵,关闭吧
推荐文章: