Streams
| From: | (Marcus Boerger) | Date: | Sat, 16 Mar 2002 21:24:56 +0000 |
| Subject: | Streams | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-81363@lists.php.net to get a copy of this message | ||
Hi Wez,
i tried the streams and memory streams now in ext/exif.
What i do is check whether a stream is an stdio stream and if not
copy it to a memory stream and work with that. But before going
on using it i close/free the original stream.
I tested with http:... and the wrapper has destroy set to NULL.
But when closing the destroy is not NULL????
To have it work i set it to NULL before closing it.
Do you have any ideas?
Test command for CLI was:
php -r 'foreach(exif_read_data("http://marcus-boerger.de/php/ext/exif/test/kodak-dc210.jpg","",true) as $sect=>$data) foreach($data as $key=>$val) echo "$sect.$key: $val\n";'
Besides that it is working.
regards
marcus
have to go to party again now.....
--------->>> mailto:marcus.boerger@post.rwth-aachen.de <<<------------
"Wir sind allzumal Tiere unter Tieren, Kinder der Materie wie sie,
nur wehrloser. Doch da wir im Unterschied zu den Tieren wissen,
dass wir sterben muessen, wollen wir uns auf jenen Augenblick vorbereiten,
indem wir das Leben geniessen, das uns durch Zufall und vom Zufall gegeben ist."
Umberto Eco, Die Insel des vorigen Tages--------------->>> http://www.marcus-boerger.de <<<------------------- ---------->>> Tel. 0241 / 874 09-7 ### 0179 / 29 14 980 <<<----------