php-windows Digest 2 Dec 2010 17:59:10 -0000 Issue 3892

Topics (messages 30437 through 30442):

Re: win32service for PHP 5.1.6
        30437 by: Richard Quadling
        30438 by: Richard Quadling
        30439 by: Richard Quadling
        30440 by: Richard Quadling

Re: building binary libraries
        30441 by: Tommy Pham
        30442 by: Elizabeth M Smith

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
On 1 December 2010 21:09, Travis Veazey <travis.vea...@rogerspos.com> wrote:
> Hi all,
>
> First post to this list, so please forgive any inadvertent violations of
> decorum.
>
> I just today stumbled upon the win32service extension, which appears like it
> will do exactly everything that I've been looking toward external tools and
> utilities to do -- specifically, and unsurprisingly, installing a PHP script
> as a Windows service.
>
> However, PECL's page has no releases at all, and I can't seem to find the
> DLL for PHP 5.1.6; in fact, I've only seemed to find it for 5.2 and 5.3.
> Unfortunately, for reasons I'd rather not get into at the moment, upgrading
> my PHP version isn't an option right now; can anyone help me locate a DLL
> for this extension that will work for PHP 5.1.6?
>
> Thanks,
> Travis
>

Hello Travis.

I've done a lot of work on this extension recently. I'm only building
it for 5.3.4-dev. I've not got any tests for it either.

I don't have VC6 (only VC9 Express Edition), so I can't build it for
5.1.6. As it is really only of use in a CLI environment, it hasn't
been tested/compiled for ISAPI or a thread safe SAPI either.

As far as I know, the current code has never been compiled for 5.1.6.

Rather than upgrading PHP, why not just use 2 versions of PHP?

PHP5.3CLI+Win32Service+whatever extensions you need just for the
service side of things.

Keep it all in an un-PATH'd location.

Use registry to load separate ini file for PHP versions on the
services machine and be careful about using new functionality in your
code if it is going to be cross version.

-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--- End Message ---
--- Begin Message ---
On 1 December 2010 22:47, Richard Quadling <rquadl...@gmail.com> wrote:
> As far as I know, the current code has never been compiled for 5.1.6.

The dlls available from http://www.php.net/~pierre/ are going to be
for a very old version of the extension. It may be perfectly suitable.

Unfortunately, as there is no release, only trunk has been documented.
There is no changelog entries in phpdoc, but if you look at the commit
history on 
http://svn.php.net/viewvc/pecl/win32service/trunk/win32service.c?view=log
for revision 304478 onwards, you can see the additional work I've
completed.

If you don't need the later facilities, then the pre-compiled binaries
by Pierre would dictate which version of PHP you could use for the
services.

Richard.

-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--- End Message ---
--- Begin Message ---
On 1 December 2010 22:55, Travis Veazey <travis.vea...@rogerspos.com> wrote:
> Richard,
>
> Thanks for the response. I did, with help from Justin on this list, find a
> version that had been compiled against 5.1.6 on PHP's releases page, and am
> currently putting together a test script using it to see what happens. If
> this works, this seems like the simplest solution, but if not, a
> dual-version install is not a bad idea at all -- thanks for the tip!
>
> -Travis
>
> On Wed, Dec 1, 2010 at 13:47, Richard Quadling <rquadl...@gmail.com> wrote:
>>
>> On 1 December 2010 21:09, Travis Veazey <travis.vea...@rogerspos.com>
>> wrote:
>> > Hi all,
>> >
>> > First post to this list, so please forgive any inadvertent violations of
>> > decorum.
>> >
>> > I just today stumbled upon the win32service extension, which appears
>> > like it
>> > will do exactly everything that I've been looking toward external tools
>> > and
>> > utilities to do -- specifically, and unsurprisingly, installing a PHP
>> > script
>> > as a Windows service.
>> >
>> > However, PECL's page has no releases at all, and I can't seem to find
>> > the
>> > DLL for PHP 5.1.6; in fact, I've only seemed to find it for 5.2 and 5.3.
>> > Unfortunately, for reasons I'd rather not get into at the moment,
>> > upgrading
>> > my PHP version isn't an option right now; can anyone help me locate a
>> > DLL
>> > for this extension that will work for PHP 5.1.6?
>> >
>> > Thanks,
>> > Travis
>> >
>>
>> Hello Travis.
>>
>> I've done a lot of work on this extension recently. I'm only building
>> it for 5.3.4-dev. I've not got any tests for it either.
>>
>> I don't have VC6 (only VC9 Express Edition), so I can't build it for
>> 5.1.6. As it is really only of use in a CLI environment, it hasn't
>> been tested/compiled for ISAPI or a thread safe SAPI either.
>>
>> As far as I know, the current code has never been compiled for 5.1.6.
>>
>> Rather than upgrading PHP, why not just use 2 versions of PHP?
>>
>> PHP5.3CLI+Win32Service+whatever extensions you need just for the
>> service side of things.
>>
>> Keep it all in an un-PATH'd location.
>>
>> Use registry to load separate ini file for PHP versions on the
>> services machine and be careful about using new functionality in your
>> code if it is going to be cross version.

No problem. If you find anything not working, please report it.

If you need any help, then let me know. OOI, where was the
pre-compiled binary for 5.1.6?


-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--- End Message ---
--- Begin Message ---
On 1 December 2010 23:16, Travis Veazey <travis.vea...@rogerspos.com> wrote:
> Richard,
>
> From the Downloads page on PHP.net, the link to the Releases page is in the
> sidebar on the left, and it takes you to this page:
> http://us2.php.net/releases/ From here I scrolled down to 5.1.6, and
> downloaded the "Collection of PECL modules", which has all kinds of things
> in there; so far I've only done anything with the php_win32service.dll,
> which is working great on my XP Pro and XP Home systems. My next test is on
> a Win7 system, and then I'll have to track down a Win2k system -- if all of
> those work, then this should work for my needs! If not, I'll have to take a
> look at your more current work and dual-install PHP.
>
> -Travis

Aha. Thanks for the link. Good luck.


-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Pierre Joye [mailto:pierre....@gmail.com]
> Sent: Sunday, November 28, 2010 1:15 PM
> To: Tommy Pham
> Cc: php-wind...@lists.php.net
> Subject: Re: [PHP-WIN] building binary libraries
> 
> Using makefiles or custom scripts, depends on the library, see the docs
here
> (click on each lib):
> 
> http://wiki.php.net/internals/windows/libs
> 
> But why do you need to build them? We provide bins+devs files for every
> library used by PHP, or used upstream binaries when they are compatible.
> 

Hi Pierre,

It's more of a learning exercise and to test x64 on Windows.  I can't seem
to get libiconv and gettext to compile for a past few days, even the older
versions 1.11.1 and 1.15 , respectively, having the makefile.msvc.  I'll try
the support their respective support lists.

Thanks for your help,
Tommy

> On Sun, Nov 28, 2010 at 9:47 PM, Tommy Pham <tommy...@gmail.com>
> wrote:
> > Hi Pierre,
> >
> > Thanks for the response.  I did read the wiki prior to asking but I
> > saw some of the libraries didn't have a VS makefile or project file,
> > such as a current version of libiconv  [1].  In those cases, do you
> > then attempt to patch it to build purely in VS?
> >
> > Thanks,
> > Tommy
> >
> > [1] http://wiki.php.net/internals/windows/libs/libiconv
> >
> >> -----Original Message-----
> >> From: Pierre Joye [mailto:pierre....@gmail.com]
> >> Sent: Sunday, November 28, 2010 3:26 AM
> >> To: Tommy Pham
> >> Cc: php-wind...@lists.php.net
> >> Subject: Re: [PHP-WIN] building binary libraries
> >>
> >> hi,
> >>
> >> We don't use nor rely on cygwin or mingw. See:
> >>
> >> http://wiki.php.net/internals/windows/stepbystepbuild
> >>
> >> Cheers,
> >>
> >> On Sun, Nov 28, 2010 at 5:32 AM, Tommy Pham <tommy...@gmail.com>
> >> wrote:
> >> > Hi,
> >> >
> >> > What do you use to build the necessary binary libraries, such as
> > libiconv?
> >> > Cygwin? MinGW?
> >> >
> >> > Thanks,
> >> > Tommy
> >> >
> >> >
> >> > --
> >> > PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
> >> > http://www.php.net/unsub.php
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Pierre
> >>
> >> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
> >
> >
> 
> 
> 
> --
> Pierre
> 
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org


--- End Message ---
--- Begin Message ---

Hi Pierre,

It's more of a learning exercise and to test x64 on Windows.  I can't seem
to get libiconv and gettext to compile for a past few days, even the older
versions 1.11.1 and 1.15 , respectively, having the makefile.msvc.  I'll try
the support their respective support lists.

Thanks for your help,
Tommy

As far as I know libiconv and gettext both require patches to the source of current versions to get them to compile, they're also libraries that are VERY resistant to windows fixes being pushed upstream.

Good luck!

Thanks,
Elizabeth M Smith

--- End Message ---

Reply via email to