I just adjusted the program. I had a good program on the server, but an error occurred when I got to win.
After careful tuning, we found that it was a problem with set_include_path.
In Windows, if you want to include multiple paths, separate them with ";", but use ":" in linux ..
The include path setting in Zendframe is 11: 55ZF. In this example, the include_path does not work, and the existing settings are damaged. Therefore, it is better to set this:
// Include Path setting
Set_include_path (get_include_path (). PATH_SEPARATOR. _ APP_ROOT_PATH _. 'library '. DIRECTORY_SEPARATOR. 'zf'. DIRECTORY_SEPARATOR );
Require 'zend/Loader. php ';
Get_include_path () is the current inc_path of the system.
_ APP_ROOT_PATH _ is a constant set by myself, representing the current directory.
PATH_SEPARATOR: this can be said, because the path in WIN is separated by; (semicolon), but in LINUX, it is separated by: (colon, therefore, this constant is used to represent the delimiter.
After this setting, you can use both Windows and LINUX.