|
@@ -3783,7 +3783,7 @@ class generator (ctx:context) =
|
|
|
output_string channel "<?php\n";
|
|
|
output_string channel uses;
|
|
|
output_string channel "\n";
|
|
|
- output_string channel ("set_include_path(__DIR__.'/" ^ (String.concat "/" self#get_lib_path) ^ "');\n");
|
|
|
+ output_string channel ("set_include_path(get_include_path().PATH_SEPARATOR.__DIR__.'/" ^ (String.concat "/" self#get_lib_path) ^ "');\n");
|
|
|
output_string channel "spl_autoload_register(\n";
|
|
|
output_string channel " function($class){\n";
|
|
|
output_string channel " $file = stream_resolve_include_path(str_replace('\\\\', '/', $class) .'.php');\n";
|