Scenario: In the same parent directory of yaf, two projects support one namespace and one does not. However, when a php. iniyaf. use_namespace0PHP_INI_SYSTEM is enabled, Yaf registers its own class using the namespace method. For example, Yaf_Application will become Ya... scenario:
Yaf
In the same parent directory, two projects support one namespace and one does not.
HoweverPhp. ini
When yaf. use_namespace 0 PHP_INI_SYSTEM is enabled, Yaf registers its own class using the namespace method. For example, Yaf_Application will become Yaf \ Application.
Is it to enable two fpm and load different ini at startup?
Or can I configure it in fpm-conf?
Thank you ~
Reply content:
Scenario:
Yaf
In the same parent directory, two projects support one namespace and one does not.
HoweverPhp. ini
When yaf. use_namespace 0 PHP_INI_SYSTEM is enabled, Yaf registers its own class using the namespace method. For example, Yaf_Application will become Yaf \ Application.
Is it to enable two fpm and load different ini at startup?
Or can I configure it in fpm-conf?
Thank you ~
Two methods,
1. Use ini_set to change the namespance value at the program entry.
2. Start two php-fpm instances.-C
The parameter specifies the php. ini to load,-Y
The parameter specifies the php-fpm.conf to enable different listening ports in either of the two methods you are talking about.