Re: PHP for embedded device: reduce size
| From: | Ferenc Kovacs | Date: | Sun, 20 Feb 2011 15:52:06 +0000 |
| Subject: | Re: PHP for embedded device: reduce size | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51485@lists.php.net to get a copy of this message | ||
On Sun, Feb 20, 2011 at 4:01 PM, Reindl Harald <h.reindl@thelounge.net>wrote:
>
>
> Am 20.02.2011 15:52, schrieb Martin Herrman:
> > 2011/2/20 Patrick E. <zenobic@googlemail.com>:
> >
> >> php-cgi 5.2.x = ~2.4mb "./configure" without :
> >> ...
> >> --without-iconv \
> >> --without-pear \
> >> --without-gd \
> >> --disable-bcmath \
> >> --disable-libxml --disable-dom --disable-simplexml --disable-xml
> >> --disable-xmlreader --disable-xmlwriter --without-pear \
> >> --with-sqlite \
> >> --without-pdo-sqlite
> >
> > For latest 5.3.x it still results in a 3+ MB php-cgi binary.
>
> There are some more swicthes
> --disable-all Disable all extensions which are enabled by default
>
> What about "--disable-all" followed by "--enable-feature" for all
> you want to have?
>
> The follwoing are not needed in most cases
> --disable-ipv6
> --disable-posix
> --disable-phar
> --disable-json
> __________________________________
>
> --disable-ipv6 Disable IPv6 support
> --disable-libxml Disable LIBXML support
> --disable-ctype Disable ctype functions
> --disable-inifile DBA: INI support (bundled)
> --disable-flatfile DBA: FlatFile support (bundled)
> --disable-dom Disable DOM support
> --disable-fileinfo Disable fileinfo support
> --disable-filter Disable input filter support
> --disable-hash Disable hash support
> --disable-json Disable JavaScript Object Serialization support
> --disable-mbregex MBSTRING: Disable multibyte regex support
> --disable-pdo Disable PHP Data Objects support
> --disable-phar Disable phar support
> --disable-posix Disable POSIX-like functions
> --disable-session Disable session support
> --disable-simplexml Disable SimpleXML support
> --disable-tokenizer Disable tokenizer support
> --disable-xml Disable XML support
> --disable-xmlreader Disable XMLReader support
> --disable-xmlwriter Disable XMLWriter support
>
>
did you bother to read his first email?
he exactly did that: --disable-all and --enable-cgi
Tyrael