PHP threads: the difference between parameters and parameters

Two key concepts in PHP threads are parameters and context parameters . What is the difference between & laquo; option & raquo; and "parameter <

The documentation about the former is pretty simple. It seems that the option is a protocol-specific parameter, for example. the "method" (get, post, put ...) if you use HTTP or the "callback function that will be called when the document is inserted" in MongoDB.

Which parameter? The help page stream_context_set_params()contains a rare link to the supported parameters: "notification" and "parameters" (options?). The Context Settings page mentions a “notice”, as if they had big plans for the future when PHP / 4.3.0 was released, but they never bloomed.

+4
source share
1 answer

Update:

I did some research and found out that the code is really old, it was entered by fixing e1d0a1479and saved more or less since then it has not changed. (2003/04/10)

The author of this code was Wez Furlong. I would ask him, since I am afraid that no one will be able to give a better answer. (Find your email address on github )


IMHO ( atm), , .

stream_context_set_params(): notification ( ) ( ) options, - , stream_context_set_options().

, stream_context_set_params() , atm. .

+2

All Articles