On 11/4/03 3:42 PM, Adam Dickmeiss wrote:
Adam Dickmeiss wrote:

Christian Stocker wrote:

Just as an update to this question

According to Adam, the stream-wrapper support in ext/xsl seems to have the same possibilities as the schemes support in the former sablotron extension. But he will further look into it and keep us/me updated about the outcome ;)

I've wrapped made a stream class with methods stream_open, stream_read, stream_tell, stream_eof, stream_seek, stream_stat, stream_close. When I use this handler from within XSLT I get :
*Warning*: xsltprocessor::importStylesheet() [function.importStylesheet <http://peanut:8080/tkl5/function.importStylesheet>]: tkl_file_stream::url_stat is not implemented! in */home/adam/proj/httpd/htdocs/tkl5/xsl-ex2.php* on line *70*
What's url_stat supposed to do? Prototype?


Looking at the PHP source, I decided to use:
   function url_stat ($path)
   {
       return array();
   }
with satisfactory results, so far.

Yep, it's supposed to have the same format as the array returned by fstat(). But an empty array is ok ;)


chregu


-- Adam






-- Adam




-- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | [EMAIL PROTECTED] | gnupg-keyid 0x5CE1DECB

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to