Zend_View :: _ run (), what does line 106 do?

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

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

What is the syntax of "zend.view: //"? I have never seen such a file as before. Appreciate your help, greetings!

+4
source share
1 answer

This is a regular stream implementation, possibly wrapper .

Streams were introduced with PHP 4.3.0 as a way to generalize a file, network, data compression, and other operations that share a common set of functions and applications. In its simplest definition, a stream is a resource object that exhibits stream behavior. That is, it can be read or written linearly and fseek () can use arbitrary locations in the stream.

Take a look at the calls to the stream_ family of functions and you will find where it was declared, and what exactly it does with the base file.

+8
source

Source: https://habr.com/ru/post/1344425/


All Articles