Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35809 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11296 invoked by uid 1010); 26 Feb 2008 20:49:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 11280 invoked from network); 26 Feb 2008 20:49:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Feb 2008 20:49:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=eugenesan@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=eugenesan@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.153 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: eugenesan@gmail.com X-Host-Fingerprint: 72.14.220.153 fg-out-1718.google.com Received: from [72.14.220.153] ([72.14.220.153:42327] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6C/83-28805-A3B74C74 for ; Tue, 26 Feb 2008 15:49:00 -0500 Received: by fg-out-1718.google.com with SMTP id 22so1698987fge.23 for ; Tue, 26 Feb 2008 12:48:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; bh=bZpOUzlFSEyc6C71OTg5bQIDPtug9owG7pj007u2evU=; b=LW1gxKGNAly4LRQTe9bIwpdL2tmx63pqnyBobwzfZLPXR1CANXkng/tzAQGW2ZiCq4vaYBcnTP7fsBYfLU9HqwHTK7caegYi6Rk6L+Osa0DAAX1BKzHuHPVziffehUcXjma3o7mV1t4W7/wbkQd62u5ALdm37T2X14TisX3WlnE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=pQXaN+D2ojWiK0Tx1Cr2FF/v3WexURIIJkdeUnOHoOK+hiTD3kL/gpjRPapQsBgXWPVhtvfLYSMW4uM+GozlnmXxmt5UJf7AuBiiZfeyaAmWJkvdRX8rW5gtjLvPaInGvybDFFbR8Xmm8JjmBxHYMQISPwomk0VIhW8inpvEzQ8= Received: by 10.86.74.15 with SMTP id w15mr5050331fga.37.1204058935742; Tue, 26 Feb 2008 12:48:55 -0800 (PST) Received: from ?192.168.1.112? ( [84.108.16.112]) by mx.google.com with ESMTPS id d4sm6562053fga.2.2008.02.26.12.48.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 26 Feb 2008 12:48:53 -0800 (PST) Message-ID: <47C47B26.9000701@gmail.com> Date: Tue, 26 Feb 2008 22:48:38 +0200 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: PHP Developers Mailing List Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: PHP footprint and sharing code among SAPI binaries From: eugenesan@gmail.com (Eugene San) Hi all, I want to raise a discussion on subject that is very important for PHP usage on Embedded platforms. I am myself working on projects where we use PHP to manage embedded devices. Everything was fine but lately the need to work from flash memory appeared. We discovered that PHP binaries are linked statically with whole PHP functionality and there is huge overhead when several SAPI modules used on same system. I have few question I hope to get answers on or ideas for: 1) Is there any reason to link all PHP SAPI modules statically with all PHP objects? 2) Is it possible to extract all shared functionality to shared object and links all SAPI modules against it? 3) Next issue is XML with DOM support, we where using LIBXML2 but that costs ~2.5MB are there there options for supporting that? Maybe someone already addressed footprint problem and has any kind of solutions for that? Please, any kind of information will helpful here. Thanks ahead. Eugene San