Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51707 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38643 invoked from network); 15 Mar 2011 23:40:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2011 23:40:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=olivier@phppro.fr; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=olivier@phppro.fr; sender-id=unknown Received-SPF: error (pb1.pair.com: domain phppro.fr from 209.85.213.170 cause and error) X-PHP-List-Original-Sender: olivier@phppro.fr X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:59291] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/F2-19768-5D8FF7D4 for ; Tue, 15 Mar 2011 18:40:06 -0500 Received: by yxi11 with SMTP id 11so474620yxi.29 for ; Tue, 15 Mar 2011 16:40:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.90.19.40 with SMTP id 40mr694200ags.77.1300232402191; Tue, 15 Mar 2011 16:40:02 -0700 (PDT) Received: by 10.90.91.6 with HTTP; Tue, 15 Mar 2011 16:40:02 -0700 (PDT) In-Reply-To: References: <50863.5626b73e.1300221859.nsm@avilys.eik.lt> Date: Wed, 16 Mar 2011 00:40:02 +0100 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=0016362836fe7544f0049e8df2ab Subject: Re: [PHP-DEV] Package php binaries + php script into one single executable file From: olivier@phppro.fr (Olivier Hoareau) --0016362836fe7544f0049e8df2ab Content-Type: text/plain; charset=ISO-8859-1 Found one interesting tool named PHPACK : http://winbinder.org/forum/viewtopic.php?f=8&t=1148 (windows only) Tool is no more supported (ended mid-2010), but seems to be working with PHP 5.3. What it does : package php5ts.dll + custom php scripts into one .exe (windows only). Tested with my phar file generated a 3Mb exe file (not that big). But limited support for extension (few statically linked extension). I have not yet tested the exe file on a blank box (i.e. where php not already installed). Seems to be an interesting solution for my windows users. Other ideas ? oha 2011/3/15 Olivier Hoareau > Hi Tomas ! > > Thanks for your proposals. > > >> Create .deb package and make it dependent on PHP for Debian/Ubuntu. Debian >> has docs and tools that allow to do that. PHP is in standard Debian/Ubuntu >> software repository. >> > > This solution does not provide me one of the goal I need to reach : that my > users be able to use the tool even if they already have PHP installed on > their system but with a version not compatible with the tool. > Let me explain why : the goal of the tool is to provide command line > actions for team (dev team) members, such as the ones (but not only) > provided by tools like zf / sf / maven (but not sticked to a specific > framework and working with all frameworks), so the targeted users are > already using PHP but with specific version of PHP (depending on the need > for the application they are currently developing). I would like to be able > to provide all the features my tool provide to those teams BUT without the > need for these team to "upgrade" the version of PHP they are using on their > desktop (mostly PHP 5.2) > > >> Distribute .phar package alone for users who already have PHP. List PHP >> extensions your package depends on. >> > > This solution is already in use, but not perfect, for the problem I > described above, at least, because a small percentage of my targetted users > (at this moment) are using PHP 5.3+ > > >> Create automated installer for Windows which downloads PHP from the >> network. See microsoft web platform installer for more ideas. >> > > This is a possible solution if installing PHP in a custom directory without > system-wide installation and if 2 version of PHP can coexist on the same > filesystem without conflicts on extensions/php.ini/system variables, do you > have links ? (I will google it) > > IMHO your package license is not compatible with PHP license. You can't >> distribute PHP with BSD license. >> > > OK, I was not aware of this limitation. > It is not a problem to modify the license of the tool to one that is > compatible with PHP license, my purpose is to share something, not to sell > it. Do you (are others) have advice on this specific points ? > > Thanks ! > > Olivier H. > > >> >> >> -- >> >> Tomas >> >> >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> --0016362836fe7544f0049e8df2ab--