Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zend_View::_run(), what does line 106 do?

can someone provide a brief explanation of what this line does:

include 'zend.view://' . func_get_arg(0);

What's with the "zend.view://" syntax? I've never seen a file included like this before. Appreciate your help, cheers!

like image 729
blacktie24 Avatar asked Feb 25 '23 18:02

blacktie24


1 Answers

That's a custom stream implementation, probably a wrapper.

Streams were introduced with PHP 4.3.0 as a way of generalizing file, network, data compression, and other operations which share a common set of functions and uses. In its simplest definition, a stream is a resource object which exhibits streamable behavior. That is, it can be read from or written to in a linear fashion, and may be able to fseek() to an arbitrary locations within the stream.

Take a look around for calls to the stream_ family of functions, and you'll find where it's declared and exactly what it's doing to the underlying file.

like image 86
Charles Avatar answered Mar 07 '23 15:03

Charles