Answer the question
In order to leave comments, you need to log in
How to run PHPDaemon on php 5.4?
I used the instruction https://daemon.io/docs/ru/#intro but unfortunately the daemon launch
failed on line 69" as far as I know, this is due to a conflict between php versions (I have 5.4 installed and 5.6 is required).
Can you tell me where can I install the daemon for php 5.4? or how else to get around the version conflict.
I am very new to the server setup, for this reason I cannot fully install php 5.6, and the project really needs to be closed.
Thank you very much if you help.
Answer the question
In order to leave comments, you need to log in
I contacted the authors of the documentation and they advised to use the version before March 2nd
Link to those who also face this problem. https://github.com/kakserpom/phpdaemon/tree/fefc90...
The whole problem is in the multiple arguments of the function.
You have 2 options, either move to PHP 5.6, or rewrite all functions that use a variable number of arguments using func_num_args(), func_get_arg() and func_get_args().
But of course, I would switch to 5.6 because 5.4 is no longer relevant, and besides, if you rewrite these functions, then it’s not a fact that other errors will not come out
PHP 5.4 has been out of support for a long time. The minimum fully supported PHP version is 5.6, older versions are dangerous to use.
But if you need to use 5.4 and you understand all the consequences (this is doubtful, otherwise you would have made the transition), then simply specify in composer.json the old version of PHPDaemon, which still supported 5.4.
well, put 5.6
, it's obvious that the level is to rewrite the code from 5.6 to 5.4 and you don't have a month of full-time work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question