php4-beta | 200004
Date: 04/24/00
- Next message: Andi Gutmans: "[PHP4BETA] Re: [PHP-DEV] strchr()"
- Previous message: rubys <email protected>: "Re: [PHP4BETA] PHP as servlet using Win32"
- In reply to: Andrei Zmievski: "Re: [PHP4BETA] cvs: /php4/ext/standard file.c"
- Next in thread: Andrei Zmievski: "[PHP4BETA] cvs: /php4/ext/standard file.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Andrei Zmievski wrote:
>
> On Mon, 24 Apr 2000, Sterling Hughes wrote:
> > I think all that needs to be done is to register the constants. If you
> > use the third argument (in the C code), then the only thing that can be
> > used are SEEK_SET, SEEK_CUR and SEEK_END. Whereas with this
> > implementation SEEK_SET, SEEK_CUR and SEEK_END will all work, because
> >
> > fseek((FILE *)what, (*arg2)->value.lval, SEEK_CUR);
> >
> > is the same as:
> >
> > fseek((FILE *)what, (*arg2)->value.lval + SEEK_CUR, SEEK_SET);
> >
> > And you can also specify offsets which are not SEEK_CUR, SEEK_SET and
> > SEEK_END (I couldn't do this by using seekfrom as the third argument.)
>
> No, that will not work. What will you have as the value for SEEK_CUR?
> SEEK_CUR should be simply a constant that maps to C's fseek().
>
> -Andrei
>
>
Never mind, your right. SEEK_CUR is defined on my system
#define SEEK_CUR 2
And I somehow doubt that 2 is going to be the current position in the
file all of the time.
Sterling
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Andi Gutmans: "[PHP4BETA] Re: [PHP-DEV] strchr()"
- Previous message: rubys <email protected>: "Re: [PHP4BETA] PHP as servlet using Win32"
- In reply to: Andrei Zmievski: "Re: [PHP4BETA] cvs: /php4/ext/standard file.c"
- Next in thread: Andrei Zmievski: "[PHP4BETA] cvs: /php4/ext/standard file.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

