From 4a25a7740d62c9ec0318001c3f6d6b3ae01d96ad Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 13 Sep 2011 13:29:35 +0000 Subject: Fixed ZE specific compile warnings (Bug #55629) --- sapi/cli/php_cli.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sapi/cli/php_cli.c') diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 9d8c1f1132..5c2725f28b 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -940,15 +940,15 @@ static int do_cli(int argc, char **argv TSRMLS_DC) /* {{{ */ file_handle.type = ZEND_HANDLE_FP; file_handle.opened_path = NULL; file_handle.free_filename = 0; - php_self = file_handle.filename; + php_self = (char*)file_handle.filename; /* before registering argv to module exchange the *new* argv[0] */ /* we can achieve this without allocating more memory */ SG(request_info).argc=argc-php_optind+1; arg_excp = argv+php_optind-1; arg_free = argv[php_optind-1]; - SG(request_info).path_translated = file_handle.filename; - argv[php_optind-1] = file_handle.filename; + SG(request_info).path_translated = (char*)file_handle.filename; + argv[php_optind-1] = (char*)file_handle.filename; SG(request_info).argv=argv+php_optind-1; if (php_request_startup(TSRMLS_C)==FAILURE) { -- cgit v1.2.1