curl-and-php
Re: --limit-rate function in PHP
Date: Wed, 14 Mar 2007 15:59:22 +0100
On 3/14/07, Gaetano Giunta <giunta.gaetano_at_sea-aeroportimilano.it> wrote:
> good!
>
> I was looking at the source for 5.2.1 and about to post, but you preceded me.
>
> The code is quite starightforward, with regards to curl constants, so it should not be too hard to patch it and send feedback to the php dev team.
> Just make sure you define the constants IIF the curl lib version is correct or bigger.
>
> my 2c
> Gaetano
Yeah i was guessing that..., but from which version does it works? 7.16.0?
I have just patched it without adding that IF codes and the constants work fine.
I also added 2 extra options to the switch where the actual function
is. But it's working a little bit weird now, because when i define it
manually, and set it to 10000 it does not limit to that speed, but it
limits itself to a speed not measurable, like 1bytes per second...
I added my php-5.2.1/ext/curl/interface.c file, so you can see what i
did. (search for tijnema and you will find what i added
Tijnema
>
> > -----Original Message-----
> > From: curl-and-php-bounces_at_cool.haxx.se
> > [mailto:curl-and-php-bounces_at_cool.haxx.se]On Behalf Of Tijnema !
> > Sent: Wednesday, March 14, 2007 3:34 PM
> > To: curl with PHP
> > Subject: Re: --limit-rate function in PHP
> >
> >
> > On 3/14/07, Michael Wallner <mike_at_iworks.at> wrote:
> > > Tijnema ! wrote:
> > > >
> > > >
> > > > On 3/12/07, *Daniel Stenberg* <daniel_at_haxx.se
> <mailto:daniel_at_haxx.se>>
> > > wrote:
> > >
> > > On Mon, 12 Mar 2007, Tijnema ! wrote:
> > >
> > > > I was referering to PHP/CURL, as this is the curl-and-php list, so
> > > do these
> > > > settings work with PHP?
> >
> > No, if there's no such PHP constant, this option is not supported by PHPs ext/curl.
> >
> > Regards,
> > --
> > Michael
>
> I see that you're probably right, i checked the PHP source/ext/curl
> and in interface.h the constants are not defined. As i'm a programmer
> i will have look at it and manually patch it to support it.
>
> Tijnema
> >
> > _______________________________________________
> > http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
> >
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
- application/octet-stream attachment: interface.c