Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51711 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80736 invoked from network); 16 Mar 2011 07:47:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2011 07:47:35 -0000 Authentication-Results: pb1.pair.com header.from=olivier@phppro.fr; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=olivier@phppro.fr; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain phppro.fr from 74.125.83.42 cause and error) X-PHP-List-Original-Sender: olivier@phppro.fr X-Host-Fingerprint: 74.125.83.42 mail-gw0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:62135] helo=mail-gw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/12-61232-51B608D4 for ; Wed, 16 Mar 2011 02:47:35 -0500 Received: by gwb17 with SMTP id 17so585679gwb.29 for ; Wed, 16 Mar 2011 00:47:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.90.19.40 with SMTP id 40mr1046082ags.77.1300261651184; Wed, 16 Mar 2011 00:47:31 -0700 (PDT) Received: by 10.90.91.6 with HTTP; Wed, 16 Mar 2011 00:47:31 -0700 (PDT) In-Reply-To: References: <50863.5626b73e.1300221859.nsm@avilys.eik.lt> <06.04.19768.955008D4@pb1.pair.com> Date: Wed, 16 Mar 2011 08:47:31 +0100 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=0016362836fed57db7049e94c184 Subject: [PHP-DEV] Package php binaries + php script into one singleexecutable file From: olivier@phppro.fr (Olivier Hoareau) --0016362836fed57db7049e94c184 Content-Type: text/plain; charset=ISO-8859-1 Hi ! > I actually wrote that. I never imagined someone would actually find that > useful! > Thanks for the effort ;) > If you don't mind having a few external dlls, you can use dl (ick!) to load > the extensions. > OK. I prefer to have the maximum of extensions packaged with the binary but it is interesting to be able to load more extensions that are not self contained. > I gave up supporting that because compiling the custom lightweight stubs > took more work than I cared for. I am considering reviving the project and > this time not writing in PHP (PHP should really not be used for GUIs IMO). > OK. > If you can wait a bit. I can setup my code (Visual C++ projects mostly) on > GitHub so you can clone and compile whatever stubs you want. > That would be great, thanks ! > If you cannot wait, or want to tinker, here is a thread I wrote that talks > about making a static/stub exe: > I was in the process of trying to follow these steps. > http://winbinder.org/forum/viewtopic.php?f=10&t=1178 > > Good luck! > Thanks ! > > Alec Gorge > > > On 3/15/2011 7:40 PM, Olivier Hoareau wrote: > >> 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 >>>> >>>> >>>> >> > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --0016362836fed57db7049e94c184--