On 2/20/11 7:42 AM, Martin Herrman wrote: > 2011/2/20 Reindl Harald <h.rei...@thelounge.net>: > >> 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 > > I already had --disabled-all. I have now tested with -Os instead of > -O2 which results in a 2.8MB executable. So that helps a bit :-)
2.8M? My php binary with just about everything compiled in is around 1MB. Do this: file php See how it says "not stripped" ? That means you have left all the debugging symbols in. Now do this: strip php Then check the file size. Magic! -Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php