Skip to content

Commit f771ad7

Browse files
committed
sapi/was/main: call was_sapi_module.startup() before --system-id
Without this, the zend_system_id variable is not yet initialized and an empty string will be printed.
1 parent 1d47469 commit f771ad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/was/was_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ int main(int argc, char *argv[])
724724
if (was_sapi_module.startup(&was_sapi_module) == FAILURE) {
725725
php_module_shutdown();
726726
php_ini_builder_deinit(&command_line.ini_builder);
727-
return EXIT_SUCCESS;
727+
return EXIT_FAILURE;
728728
}
729729

730730
if (command_line.print_system_id) {

0 commit comments

Comments
 (0)