Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51483 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88094 invoked from network); 20 Feb 2011 15:42:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2011 15:42:32 -0000 Authentication-Results: pb1.pair.com header.from=martin.herrman@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=martin.herrman@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: martin.herrman@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:49768] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/EB-21930-766316D4 for ; Sun, 20 Feb 2011 10:42:32 -0500 Received: by wyf19 with SMTP id 19so823747wyf.29 for ; Sun, 20 Feb 2011 07:42:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=716rZzYCl9wGRMjGhoICRuspdCL8hZhtDPuR3k0tgmA=; b=rtGeDKHekAMxOO+Z7MQ/qU6e/xVyHL1E0t9VO7hGctFVs5RDoELoA58yU62Igbrn3+ 1M8cSTWOdk1x4VZrI8/gie89u317c0xXnFy0S4j0+0qWlQvVnrVC2ZJCZSBq/GW/W2Cs JJyBce0P1jx1aqmlGXOM9SLBrgMKeT9j2WP0s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=GUCoPnMQ2lFgmC0doFhTaeGg+XdlYhJdwOYoaMbkmgssn2gJ/YlzXJNXWRz3uLM6iu k8g18bbU1ak7SsX5ouzLa/ML+DbCoHOXr+/VEu1RD7Ei5VM2KSmyCL5aFzADN8NuGnwg 6Zdv7+IbLflvJVbBlqXLHUo2AP0t4HPupb5Fk= MIME-Version: 1.0 Received: by 10.216.58.130 with SMTP id q2mr369826wec.57.1298216548951; Sun, 20 Feb 2011 07:42:28 -0800 (PST) Sender: martin.herrman@gmail.com Reply-To: martin@herrman.nl Received: by 10.216.27.194 with HTTP; Sun, 20 Feb 2011 07:42:28 -0800 (PST) In-Reply-To: <4D612CBE.5040205@thelounge.net> References: <4D612CBE.5040205@thelounge.net> Date: Sun, 20 Feb 2011 16:42:28 +0100 X-Google-Sender-Auth: b6PxHUR8dRb2TMCxuBefHzY65Fo Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PHP for embedded device: reduce size From: martin@herrman.nl (Martin Herrman) 2011/2/20 Reindl Harald : > There are some more swicthes > --disable-all =A0 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 > __________________________________ > > =A0--disable-ipv6 =A0 =A0 =A0 =A0 =A0Disable IPv6 support > =A0--disable-libxml =A0 =A0 =A0 =A0Disable LIBXML support > =A0--disable-ctype =A0 =A0 =A0 =A0 Disable ctype functions > =A0--disable-inifile =A0 =A0 =A0 DBA: INI support (bundled) > =A0--disable-flatfile =A0 =A0 =A0DBA: FlatFile support (bundled) > =A0--disable-dom =A0 =A0 =A0 =A0 =A0 Disable DOM support > =A0--disable-fileinfo =A0 =A0 =A0Disable fileinfo support > =A0--disable-filter =A0 =A0 =A0 =A0Disable input filter support > =A0--disable-hash =A0 =A0 =A0 =A0 =A0Disable hash support > =A0--disable-json =A0 =A0 =A0 =A0 =A0Disable JavaScript Object Serializat= ion support > =A0--disable-mbregex =A0 =A0 =A0 MBSTRING: Disable multibyte regex suppor= t > =A0--disable-pdo =A0 =A0 =A0 =A0 =A0 Disable PHP Data Objects support > =A0--disable-phar =A0 =A0 =A0 =A0 =A0Disable phar support > =A0--disable-posix =A0 =A0 =A0 =A0 Disable POSIX-like functions > =A0--disable-session =A0 =A0 =A0 Disable session support > =A0--disable-simplexml =A0 =A0 Disable SimpleXML support > =A0--disable-tokenizer =A0 =A0 Disable tokenizer support > =A0--disable-xml =A0 =A0 =A0 =A0 =A0 Disable XML support > =A0--disable-xmlreader =A0 =A0 Disable XMLReader support > =A0--disable-xmlwriter =A0 =A0 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 :-)