Re: [PHP-DEV] Streams are here!

2002-03-16 Thread Stefan Roehrich
On 2002-03-16 01:11:11, Wez Furlong wrote: Can you tell me which include files are needed to correct the build on your system? Then I can fix it :-) Your fix to the .h file helped (even without the (long) change). Maybe we can use a configure check for ptrdiff_t like in ext/bcmath/libbcmath,

Re: [PHP-DEV] Streams are here!

2002-03-16 Thread Wez Furlong
Yes; I'm not happy with (long). Apparently, some systems have ptrdiff_t in malloc.h rather than stddef.h. I'll see what I can do, but it's tricky when working blind like this :-/ --Wez. On 16/03/02, Stefan Roehrich [EMAIL PROTECTED] wrote: On 2002-03-16 01:11:11, Wez Furlong wrote: Can you

Re: [PHP-DEV] Streams are here!

2002-03-16 Thread Derick Rethans
Markus, please use tabs for indentation, and favor this: if (set) { function(); } above this: if (set) function(); this makes the PHP C source more consistent. Derick On Sat, 16 Mar 2002, Marcus Börger wrote: To have image.c work i had to correct the php_stream_seek and

Re: [PHP-DEV] Streams are here!

2002-03-16 Thread Sebastian Bergmann
Wez Furlong wrote: gd: functions that create images from files. In particular, try creating from wrapped files over http, ftp etc. ext/gd does not compile on Win32: gd.obj: error LNK2001: Unresolved external symbol: _php_stream_stdio_ops -- Sebastian Bergmann

[PHP-DEV] Streams are here!

2002-03-15 Thread Wez Furlong
Well, PHP finally supports fopen(https://...;) :-) Please please please test the following things in particular as I can't compile them or verify them here: hyperwave: hw_new_document_from_file gd: functions that create images from files. In particular, try creating from wrapped files over

Re: [PHP-DEV] Streams are here!

2002-03-15 Thread Stefan Roehrich
Hello! On 2002-03-15 21:12:36, Wez Furlong wrote: Please please please test the following things in particular as I can't compile them or verify them here: I can't compile, because it complains about `ptrdiff_t' undeclared in main/network.c. I think stddef.h or similar is needed in this file.

Re: [PHP-DEV] Streams are here!

2002-03-15 Thread Marcus Börger
on cygwin (but i cannot finr any definition for them) ?! ext/standard/http_fopen_wrapper.o(.text+0x17f):http_fopen_wrapper.c: undefined reference to `SOCK_FCLOSE' ext/standard/http_fopen_wrapper.o(.text+0x280):http_fopen_wrapper.c: undefined reference to `SOCK_WRITE'

Re: [PHP-DEV] Streams are here!

2002-03-15 Thread Marcus Börger
SORRY, had to reconfigure with --enable-php-streams now it compiles and works but getimagesize is broken for jpegs i will fix that tomorrow - think it's a problem of the latest features (argh) marcus At 22:53 15.03.2002, Marcus Börger wrote: on cygwin (but i cannot finr any definition for

Re: [PHP-DEV] Streams are here!

2002-03-15 Thread Philip Olson
Please please please test the following things in particular as I can't compile them or verify them here: I can't compile, because it complains about `ptrdiff_t' undeclared in main/network.c. I think stddef.h or similar is needed in this file. this also affects --enable-sockets, please

Re: [PHP-DEV] Streams are here!

2002-03-15 Thread Wez Furlong
Hmmm, There is no configure option any longer; but a make clean followed by a reconfigure and rebuild should fix most problems like that. I think you might need to look at the php_stream_seek stuff in image.c in particular. --Wez. On 16/03/02, Marcus Börger [EMAIL PROTECTED] wrote: SORRY,

Re: [PHP-DEV] Streams are here!

2002-03-15 Thread Wez Furlong
Can you tell me which include files are needed to correct the build on your system? Then I can fix it :-) --Wez. On 16/03/02, Stefan Roehrich [EMAIL PROTECTED] wrote: Hello! On 2002-03-15 21:12:36, Wez Furlong wrote: Please please please test the following things in particular as I

Re: [PHP-DEV] Streams are here!

2002-03-15 Thread Marcus Börger
To have image.c work i had to correct the php_stream_seek and php_stream_getc calls. Seek caals had wrong parameter arragement - but nowhere else in code... getc see below... I changed both functions later. in php_stream_getc i return buf 0xFF because otherwise i get 0xFFxx in return. in

Re: [PHP-DEV] Streams are here!

2002-03-15 Thread Marcus Börger
What do you think about havin php_stream_seek emulate other methods than forward seeking? We could do this by opening the stream again if something before current position has to be read... That would allow using streams in every file based function! Of cause we should have flags that we are

Re: [PHP-DEV] Streams are here!

2002-03-15 Thread Wez Furlong
I had thought about it, but it's making the streams abstraction do too much; it will have to remember too much information, and what if the data changes each time the stream is opened? If you really need to seek around in a stream that might not support it, you should open a temporary stream

Re: [PHP-DEV] Streams are here!

2002-03-15 Thread Marcus Börger
At 03:56 16.03.2002, Wez Furlong wrote: I had thought about it, but it's making the streams abstraction do too much; it will have to remember too much information, and what if the data changes each time the stream is opened? YES it has to remember much and YES streams may change on next open -