Skip to content

Commit 9ba3c36

Browse files
committed
fix litespeed build
1 parent efe79e0 commit 9ba3c36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sapi/litespeed/lsapi_main.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ static int lsapi_execute_script(void)
649649
char *p;
650650
int len;
651651
zend_stream_init_filename(&file_handle, SG(request_info).path_translated);
652-
file_handle->primary_script = 1;
652+
file_handle.primary_script = true;
653653

654654
p = argv0;
655655
*p++ = ':';
@@ -1335,9 +1335,9 @@ static int cli_main( int argc, char * argv[] )
13351335
file_handle.opened_path = NULL;
13361336
ret = php_lint_script(&file_handle);
13371337
if (ret==SUCCESS) {
1338-
zend_printf("No syntax errors detected in %s\n", file_handle.filename);
1338+
zend_printf("No syntax errors detected in %s\n", ZSTR_VAL(file_handle.filename));
13391339
} else {
1340-
zend_printf("Errors parsing %s\n", file_handle.filename);
1340+
zend_printf("Errors parsing %s\n", ZSTR_VAL(file_handle.filename));
13411341
}
13421342

13431343
} else {

0 commit comments

Comments
 (0)